Skip to content

Commit cb80662

Browse files
committed
Add Zucks Ad Network SDK v5.0.2
1 parent 381e73e commit cb80662

30 files changed

+1092
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>BinaryPath</key>
9+
<string>ZucksAdNetworkSDK.framework/ZucksAdNetworkSDK</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64</string>
12+
<key>LibraryPath</key>
13+
<string>ZucksAdNetworkSDK.framework</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
</array>
18+
<key>SupportedPlatform</key>
19+
<string>ios</string>
20+
</dict>
21+
<dict>
22+
<key>BinaryPath</key>
23+
<string>ZucksAdNetworkSDK.framework/ZucksAdNetworkSDK</string>
24+
<key>LibraryIdentifier</key>
25+
<string>ios-arm64_x86_64-simulator</string>
26+
<key>LibraryPath</key>
27+
<string>ZucksAdNetworkSDK.framework</string>
28+
<key>SupportedArchitectures</key>
29+
<array>
30+
<string>arm64</string>
31+
<string>x86_64</string>
32+
</array>
33+
<key>SupportedPlatform</key>
34+
<string>ios</string>
35+
<key>SupportedPlatformVariant</key>
36+
<string>simulator</string>
37+
</dict>
38+
</array>
39+
<key>CFBundlePackageType</key>
40+
<string>XFWK</string>
41+
<key>XCFrameworkFormatVersion</key>
42+
<string>1.0</string>
43+
</dict>
44+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
//
2+
// ZADNBannerView.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import "ZADNPlatform.h"
9+
#import <UIKit/UIKit.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
@protocol ZADNBannerViewDelegate;
13+
14+
typedef NS_ENUM(NSInteger, ZADNBannerErrorType) {
15+
ZADNBannerErrorTypeOffline = 1, // オフライン
16+
ZADNBannerErrorTypeFrameIdUndefined, // frameIDエラー
17+
ZADNBannerErrorTypeSizeError, // サイズエラー
18+
ZADNBannerErrorTypeOtherError // その他エラー
19+
};
20+
21+
@interface ZADNBannerView : UIView
22+
23+
@property(nullable, copy, nonatomic) IBInspectable NSString *frameId;
24+
@property(nullable, weak, nonatomic) IBOutlet id<ZADNBannerViewDelegate> delegate;
25+
@property(nonatomic) ZADNPlatform *zucksPlatform;
26+
27+
+ (CGSize)adjustedBannerSize:(CGSize)baseSize;
28+
29+
- (instancetype)initWithFrame:(CGRect)frame
30+
frameId:(NSString *)frameId
31+
sizeAdjust:(BOOL)sizeAdjust;
32+
- (instancetype)initWithFrame:(CGRect)frame frameId:(NSString *)frameId;
33+
- (void)loadAd;
34+
35+
- (id)init __attribute__((unavailable("init is not available")));
36+
- (id)initWithFrame:(CGRect)frame
37+
__attribute__((unavailable("init is not available")));
38+
39+
@end
40+
41+
@protocol ZADNBannerViewDelegate<NSObject>
42+
@optional
43+
44+
- (void)bannerViewDidReceiveAd:(ZADNBannerView *)bannerView;
45+
- (void)bannerView:(ZADNBannerView *)bannerView
46+
didFailAdWithErrorType:(ZADNBannerErrorType)errorType;
47+
- (void)bannerViewDidTapAd:(ZADNBannerView *)bannerView;
48+
49+
@end
50+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//
2+
// ZADNFullScreenBannerView.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import "ZADNPlatform.h"
9+
#import <UIKit/UIKit.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
@protocol ZADNFullScreenBannerViewDelegate;
13+
14+
typedef NS_ENUM(NSInteger, ZADNFullScreenBannerErrorType) {
15+
ZADNFullScreenBannerErrorTypeOffline = 1, // オフライン
16+
ZADNFullScreenBannerErrorTypeFrameIdUndefined, // frameIDエラー
17+
ZADNFullScreenBannerErrorTypeSizeError, // サイズエラー
18+
ZADNFullScreenBannerErrorTypeAdOutOfStock, // 在庫切れ
19+
ZADNFullScreenBannerErrorTypeOtherError // その他エラー
20+
};
21+
22+
@interface ZADNFullScreenBannerView : UIView
23+
24+
@property(nullable, copy, nonatomic) IBInspectable NSString *frameId;
25+
@property(nullable, weak, nonatomic) IBOutlet id<ZADNFullScreenBannerViewDelegate> delegate;
26+
@property(nonatomic) ZADNPlatform *zucksPlatform;
27+
28+
- (instancetype)initWithFrame:(CGRect)frame frameId:(NSString *)frameId;
29+
- (void)loadAd;
30+
31+
- (id)init __attribute__((unavailable("init is not available")));
32+
- (id)initWithFrame:(CGRect)frame
33+
__attribute__((unavailable("init is not available")));
34+
@end
35+
36+
@protocol ZADNFullScreenBannerViewDelegate<NSObject>
37+
@optional
38+
39+
- (void)fullScreenBannerViewDidReceiveAd:
40+
(ZADNFullScreenBannerView *)fullScreenBannerView;
41+
- (void)fullScreenBannerView:(ZADNFullScreenBannerView *)fullScreenBannerView
42+
didFailAdWithErrorType:(ZADNFullScreenBannerErrorType)errorType;
43+
- (void)fullScreenBannerViewDidTapAd:
44+
(ZADNFullScreenBannerView *)fullScreenBannerView;
45+
46+
@end
47+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
//
2+
// ZADNFullScreenInterstitialView.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import "ZADNPlatform.h"
9+
#import <UIKit/UIKit.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
@protocol ZADNFullScreenInterstitialViewDelegate;
13+
14+
typedef NS_ENUM(NSInteger, ZADNFullScreenInterstitialLoadErrorType) {
15+
ZADNFullScreenInterstitialLoadErrorTypeOffline = 1, // オフライン
16+
ZADNFullScreenInterstitialLoadErrorTypeFrameIdUndefined, // frameIDエラー
17+
ZADNFullScreenInterstitialLoadErrorTypeAdOutOfStock, // 在庫切れ
18+
ZADNFullScreenInterstitialLoadErrorTypeOtherError // その他エラー
19+
};
20+
21+
typedef NS_ENUM(NSInteger, ZADNFullScreenInterstitialShowErrorType) {
22+
ZADNFullScreenInterstitialShowErrorTypeOffline = 1, // オフライン
23+
ZADNFullScreenInterstitialShowErrorTypeNoAdData, // 広告情報未取得
24+
ZADNFullScreenInterstitialShowErrorTypeLoading, // 広告情報ロード中
25+
ZADNFullScreenInterstitialShowErrorTypeAlreadyShowing, // 広告表示中
26+
ZADNFullScreenInterstitialShowErrorTypeOtherError // その他エラー
27+
};
28+
29+
@interface ZADNFullScreenInterstitialView : UIView
30+
31+
@property(nullable, copy, nonatomic) NSString *frameId;
32+
@property(nullable, weak, nonatomic) id<ZADNFullScreenInterstitialViewDelegate> delegate;
33+
@property(nonatomic) ZADNPlatform *zucksPlatform;
34+
35+
+ (instancetype)sharedInstance;
36+
- (void)loadAd;
37+
- (void)show;
38+
- (void)dismiss;
39+
40+
- (id)initWithFrame:(CGRect)frame
41+
__attribute__((unavailable("initWithFrame is not available")));
42+
43+
@end
44+
45+
@protocol ZADNFullScreenInterstitialViewDelegate<NSObject>
46+
@optional
47+
48+
- (void)fullScreenInterstitialViewDidReceiveAd;
49+
- (void)fullScreenInterstitialViewDidLoadFailAdWithErrorType:
50+
(ZADNFullScreenInterstitialLoadErrorType)errorType;
51+
- (void)fullScreenInterstitialViewDidShowAd;
52+
- (void)fullScreenInterstitialViewDidShowFailAdWithErrorType:
53+
(ZADNFullScreenInterstitialShowErrorType)errorType;
54+
- (void)fullScreenInterstitialViewCancelDisplayRate;
55+
- (void)fullScreenInterstitialViewDidTapAd;
56+
- (void)fullScreenInterstitialViewDidDismissAd;
57+
58+
@end
59+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
//
2+
// ZADNInterstitialView.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import "ZADNPlatform.h"
9+
#import <UIKit/UIKit.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
@protocol ZADNInterstitialViewDelegate;
13+
14+
typedef NS_ENUM(NSInteger, ZADNInterstitialLoadErrorType) {
15+
ZADNInterstitialLoadErrorTypeOffline = 1, // オフライン
16+
ZADNInterstitialLoadErrorTypeFrameIdUndefined, // frameIDエラー
17+
ZADNInterstitialLoadErrorTypeOtherError // その他エラー
18+
};
19+
20+
typedef NS_ENUM(NSInteger, ZADNInterstitialShowErrorType) {
21+
ZADNInterstitialShowErrorTypeOffline = 1, // オフライン
22+
ZADNInterstitialShowErrorTypeNoAdData, // 広告情報未取得
23+
ZADNInterstitialShowErrorTypeLoading, // 広告情報ロード中
24+
ZADNInterstitialShowErrorTypeAlreadyShowing, // 広告表示中
25+
ZADNInterstitialShowErrorTypeOtherError // その他エラー
26+
};
27+
28+
@interface ZADNInterstitialView : UIView
29+
30+
@property(nullable, copy, nonatomic) NSString *frameId;
31+
@property(nullable, weak, nonatomic) id<ZADNInterstitialViewDelegate> delegate;
32+
@property(nonatomic) ZADNPlatform *zucksPlatform;
33+
34+
+ (instancetype)sharedInstance;
35+
+ (BOOL)sharedInstanceExist;
36+
- (void)loadAd;
37+
- (void)show;
38+
- (void)dismiss;
39+
40+
- (id)initWithFrame:(CGRect)frame
41+
__attribute__((unavailable("initWithFrame is not available")));
42+
43+
@end
44+
45+
@protocol ZADNInterstitialViewDelegate<NSObject>
46+
@optional
47+
48+
- (void)interstitialViewDidReceiveAd;
49+
- (void)interstitialViewDidLoadFailAdWithErrorType:
50+
(ZADNInterstitialLoadErrorType)errorType;
51+
- (void)interstitialViewDidShowAd;
52+
- (void)interstitialViewDidShowFailAdWithErrorType:
53+
(ZADNInterstitialShowErrorType)errorType;
54+
- (void)interstitialViewCancelDisplayRate;
55+
- (void)interstitialViewDidTapAd;
56+
- (void)interstitialViewDidDismissAd;
57+
58+
@end
59+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//
2+
// ZADNNativeAd.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
NS_ASSUME_NONNULL_BEGIN
11+
@protocol ZADNNativeAdDelegate;
12+
13+
@interface ZADNNativeAd : NSObject
14+
15+
@property(nullable, weak, nonatomic) IBOutlet id<ZADNNativeAdDelegate> delegate;
16+
@property(nullable, nonatomic, readonly) NSURL *imageUrl;
17+
@property(nonatomic, readonly) CGSize imageSize;
18+
@property(nullable, nonatomic, readonly) NSString *title;
19+
@property(nullable, nonatomic, readonly) NSString *bodyText;
20+
@property(nullable, nonatomic, readonly) NSString *productName;
21+
@property(nullable, nonatomic, readonly) NSString *advertiserName;
22+
@property(nullable, nonatomic, readonly) NSString *linkButtonText;
23+
24+
- (void)apply:(UIView *)adView;
25+
26+
- (id)init __attribute__((unavailable("init is not available")));
27+
28+
@end
29+
30+
@protocol ZADNNativeAdDelegate<NSObject>
31+
@optional
32+
33+
- (void)nativeAdDidTapAd:(ZADNNativeAd *)nativeAd;
34+
35+
@end
36+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// ZADNNativeAdLoader.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import "ZADNPlatform.h"
9+
#import "ZADNNativeAd.h"
10+
#import <Foundation/Foundation.h>
11+
12+
NS_ASSUME_NONNULL_BEGIN
13+
14+
typedef NS_ENUM(NSInteger, ZADNNativeAdErrorType) {
15+
ZADNNativeAdErrorTypeOffline = 1, // オフライン
16+
ZADNNativeAdErrorTypeFrameIdUndefined, // frameIDエラー
17+
ZADNNativeAdErrorTypeAdOutOfStock, // 在庫切れ
18+
ZADNNativeAdErrorTypeOtherError // その他エラー
19+
};
20+
21+
typedef void (^ZADNNativeAdLoaderCompletionBlock)(
22+
ZADNNativeAd *_Nullable nativeAd, NSError *_Nullable error);
23+
24+
@interface ZADNNativeAdLoader : NSObject
25+
26+
@property(nullable, copy, nonatomic) IBInspectable NSString *frameId;
27+
@property(nonatomic) ZADNPlatform *zucksPlatform;
28+
29+
- (instancetype)initWithFrameId:(NSString *)frameId;
30+
- (void)loadAdWithCompletionHandler:(ZADNNativeAdLoaderCompletionBlock)block;
31+
32+
- (id)init __attribute__((unavailable("init is not available")));
33+
34+
@end
35+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// ZADNPlatform.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
typedef NS_ENUM(NSInteger, ZADNPlatformType) {
11+
ZADNPlatformTypeDefault = 0,
12+
ZADNPlatformTypeAdmob,
13+
ZADNPlatformTypeUnity,
14+
ZADNPlatformTypeCocos2dx
15+
};
16+
17+
@interface ZADNPlatform : NSObject
18+
19+
@property enum ZADNPlatformType zucksPlatformType;
20+
@property(copy, nonatomic) NSString *zucksPlatformVersion;
21+
@property(copy, nonatomic) NSString *bridgeVersion;
22+
23+
- (NSString *)zucksPlatformName;
24+
- (void)reset;
25+
26+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// ZADNSdk.h
3+
// ZucksAdNetworkSDK
4+
//
5+
// Copyright (C) 2015 Zucks, Inc.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
@interface ZADNSdk : NSObject
11+
12+
+ (instancetype)sharedInstance;
13+
+ (void)setDebug:(BOOL)isDebug;
14+
+ (BOOL)isDebug;
15+
16+
- (instancetype)init __attribute__((unavailable("init is not available")));
17+
18+
@end
Binary file not shown.

0 commit comments

Comments
 (0)