Skip to content

Commit

Permalink
add SDK Ver 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nkws committed Jul 28, 2017
1 parent 5ff5552 commit 8070203
Show file tree
Hide file tree
Showing 48 changed files with 1,112 additions and 190 deletions.
Binary file modified FluctSDK/FluctSDK.framework/FluctSDK
Binary file not shown.
13 changes: 13 additions & 0 deletions FluctSDK/FluctSDK.framework/Headers/FSSNativeTableViewCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// FSSNativeTableViewCell.h
// FluctSDK
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface FSSNativeTableViewCell : UITableViewCell

- (void)loadAdWithGroupID:(NSString *)groupID unitID:(NSString *)unitID;
@end
43 changes: 43 additions & 0 deletions FluctSDK/FluctSDK.framework/Headers/FSSNativeView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
//
// FSSNativeView.h
// FluctSDK
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, FSSErrorType) {
FSSErrorTypeNoAd,
FSSErrorTypeBadRequest,
FSSErrorTypeNetworkConnection,
FSSErrorTypeServerError,
FSSErrorTypeOther
};

typedef NS_ENUM(NSInteger, FSSNativeViewCallbackType) {
FSSNativeViewCallbackTypeLoadFinish,
FSSNativeViewCallbackTypeTap
};

@protocol FSSNativeViewDelegate;

@interface FSSNativeView : UIView <UIWebViewDelegate>

NS_ASSUME_NONNULL_BEGIN
@property (nullable, nonatomic, weak) id<FSSNativeViewDelegate> delegate;

- (id)init __attribute__((unavailable("FSSNativeView's init is not available")));
- (id)initWithFrame:(CGRect)frame;
- (id)initWithFrame:(CGRect)frame groupID:(NSString *)groupID unitID:(NSString *)unitID;

- (void)setGroupID:(NSString *)groupID unitID:(NSString *)unitID;
- (void)loadRequest;
@end

@protocol FSSNativeViewDelegate <NSObject>
@optional
- (void)nativeView:(FSSNativeView *)nativeView callbackType:(FSSNativeViewCallbackType)callbackType;
- (void)nativeView:(FSSNativeView *)nativeView callbackErrorType:(FSSErrorType)callbackErrorType;
@end
NS_ASSUME_NONNULL_END
2 changes: 2 additions & 0 deletions FluctSDK/FluctSDK.framework/Headers/FluctSDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#import "FSSBannerView.h"
#import "FSSInterstitialView.h"
#import "FSSNativeTableViewCell.h"
#import "FSSNativeView.h"
#import "FluctBannerView.h"
#import "FluctInterstitialView.h"
#import <UIKit/UIKit.h>
Expand Down
2 changes: 1 addition & 1 deletion FluctSDK/FluctSDK.framework/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>4.5.0</string>
<string>4.6.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ FluctSDK-iOSの[Wiki](https://github.com/voyagegroup/FluctSDK-iOS/wiki)を参照

# FluctSDK Release Note

## v4.6.0 2017/07/28
* ネイティブ広告対応
* ネイティブ広告用クラスの追加
* ネイティブ広告表示用カスタムセルの追加
* ネイティブ広告のサンプルコード及びドキュメントの追加

## v4.5.0 2017/04/04
* サポートバージョンをiOS7.0以上に変更
* FSSBannerViewのコールバックの種類を追加
Expand Down
66 changes: 52 additions & 14 deletions SampleApp/Objective-C/SampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
3ACE35AF1C3BA25C002E6E22 /* GSMMovieResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3ACE35AD1C3BA25C002E6E22 /* GSMMovieResources.bundle */; };
9614D1BF1DF7E89200AC935E /* BannerTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 9614D1BE1DF7E89200AC935E /* BannerTableViewCell.m */; };
9614D1C21DF7E8A800AC935E /* BannerTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9614D1C11DF7E8A800AC935E /* BannerTableViewController.m */; };
96ABC5C01F2579CB00C2A078 /* NativeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96ABC5BF1F2579CB00C2A078 /* NativeViewController.m */; };
96ABC5C31F2579DC00C2A078 /* NativeTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 96ABC5C21F2579DC00C2A078 /* NativeTableViewController.m */; };
A3418CB318D999C5003E302C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A3418CB118D999C5003E302C /* InfoPlist.strings */; };
A3418CB518D999C5003E302C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A3418CB418D999C5003E302C /* main.m */; };
A3418CB918D999C5003E302C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A3418CB818D999C5003E302C /* AppDelegate.m */; };
Expand Down Expand Up @@ -56,6 +58,10 @@
9614D1BE1DF7E89200AC935E /* BannerTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BannerTableViewCell.m; sourceTree = "<group>"; };
9614D1C01DF7E8A800AC935E /* BannerTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BannerTableViewController.h; sourceTree = "<group>"; };
9614D1C11DF7E8A800AC935E /* BannerTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BannerTableViewController.m; sourceTree = "<group>"; };
96ABC5BE1F2579CB00C2A078 /* NativeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NativeViewController.h; sourceTree = "<group>"; };
96ABC5BF1F2579CB00C2A078 /* NativeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NativeViewController.m; sourceTree = "<group>"; };
96ABC5C11F2579DC00C2A078 /* NativeTableViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NativeTableViewController.h; sourceTree = "<group>"; };
96ABC5C21F2579DC00C2A078 /* NativeTableViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NativeTableViewController.m; sourceTree = "<group>"; };
A3418CA518D999C5003E302C /* SampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
A3418CA818D999C5003E302C /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
A3418CAA18D999C5003E302C /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -120,6 +126,45 @@
path = FluctSDK;
sourceTree = "<group>";
};
96C87E711F15FEA800D90AC3 /* Banner */ = {
isa = PBXGroup;
children = (
A3418CE018D9A040003E302C /* BannerViewController.h */,
A3418CE118D9A040003E302C /* BannerViewController.m */,
A3418CEF18D9AA25003E302C /* ManyBannerViewController.h */,
A3418CF018D9AA25003E302C /* ManyBannerViewController.m */,
3A24EC9F1D810B600014B706 /* BannerTabBarController.h */,
3A24ECA01D810B600014B706 /* BannerTabBarController.m */,
3A24ECA21D81207E0014B706 /* BannerNavigationController.h */,
3A24ECA31D81207E0014B706 /* BannerNavigationController.m */,
9614D1BD1DF7E89200AC935E /* BannerTableViewCell.h */,
9614D1BE1DF7E89200AC935E /* BannerTableViewCell.m */,
9614D1C01DF7E8A800AC935E /* BannerTableViewController.h */,
9614D1C11DF7E8A800AC935E /* BannerTableViewController.m */,
);
path = Banner;
sourceTree = "<group>";
};
96C87E721F15FEB000D90AC3 /* Interstitial */ = {
isa = PBXGroup;
children = (
A3E7215118DAEFA900A3ABF1 /* InterstitialViewController.h */,
A3E7215218DAEFA900A3ABF1 /* InterstitialViewController.m */,
);
path = Interstitial;
sourceTree = "<group>";
};
96C87E731F15FEB900D90AC3 /* Native */ = {
isa = PBXGroup;
children = (
96ABC5BE1F2579CB00C2A078 /* NativeViewController.h */,
96ABC5BF1F2579CB00C2A078 /* NativeViewController.m */,
96ABC5C11F2579DC00C2A078 /* NativeTableViewController.h */,
96ABC5C21F2579DC00C2A078 /* NativeTableViewController.m */,
);
path = Native;
sourceTree = "<group>";
};
A3418C9C18D999C5003E302C = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -165,25 +210,14 @@
A3418CAE18D999C5003E302C /* SampleApp */ = {
isa = PBXGroup;
children = (
96C87E731F15FEB900D90AC3 /* Native */,
96C87E721F15FEB000D90AC3 /* Interstitial */,
96C87E711F15FEA800D90AC3 /* Banner */,
A3418CB718D999C5003E302C /* AppDelegate.h */,
A3418CB818D999C5003E302C /* AppDelegate.m */,
A3418CBA18D999C5003E302C /* Main.storyboard */,
A3418CC018D999C5003E302C /* ViewController.h */,
A3418CC118D999C5003E302C /* ViewController.m */,
A3418CE018D9A040003E302C /* BannerViewController.h */,
A3418CE118D9A040003E302C /* BannerViewController.m */,
A3418CEF18D9AA25003E302C /* ManyBannerViewController.h */,
A3418CF018D9AA25003E302C /* ManyBannerViewController.m */,
A3E7215118DAEFA900A3ABF1 /* InterstitialViewController.h */,
A3E7215218DAEFA900A3ABF1 /* InterstitialViewController.m */,
3A24EC9F1D810B600014B706 /* BannerTabBarController.h */,
3A24ECA01D810B600014B706 /* BannerTabBarController.m */,
3A24ECA21D81207E0014B706 /* BannerNavigationController.h */,
3A24ECA31D81207E0014B706 /* BannerNavigationController.m */,
9614D1BD1DF7E89200AC935E /* BannerTableViewCell.h */,
9614D1BE1DF7E89200AC935E /* BannerTableViewCell.m */,
9614D1C01DF7E8A800AC935E /* BannerTableViewController.h */,
9614D1C11DF7E8A800AC935E /* BannerTableViewController.m */,
A3418CC318D999C5003E302C /* Images.xcassets */,
3ACE35AB1C3BA25C002E6E22 /* FluctSDK */,
A3418CAF18D999C5003E302C /* Supporting Files */,
Expand Down Expand Up @@ -318,13 +352,15 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
96ABC5C01F2579CB00C2A078 /* NativeViewController.m in Sources */,
3A24ECA11D810B600014B706 /* BannerTabBarController.m in Sources */,
3A24ECA41D81207E0014B706 /* BannerNavigationController.m in Sources */,
A3418CF118D9AA25003E302C /* ManyBannerViewController.m in Sources */,
9614D1BF1DF7E89200AC935E /* BannerTableViewCell.m in Sources */,
A3418CE218D9A040003E302C /* BannerViewController.m in Sources */,
A3418CC218D999C5003E302C /* ViewController.m in Sources */,
A3418CB918D999C5003E302C /* AppDelegate.m in Sources */,
96ABC5C31F2579DC00C2A078 /* NativeTableViewController.m in Sources */,
9614D1C21DF7E8A800AC935E /* BannerTableViewController.m in Sources */,
A3E7215318DAEFA900A3ABF1 /* InterstitialViewController.m in Sources */,
A3418CB518D999C5003E302C /* main.m in Sources */,
Expand Down Expand Up @@ -468,6 +504,7 @@
"TEST_SERVER_REQUEST=1",
);
INFOPLIST_FILE = "SampleApp/SampleApp-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "jp.co.voyagegroup.fluct.${PRODUCT_NAME:rfc1034identifier}";
Expand All @@ -487,6 +524,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "SampleApp/SampleApp-Prefix.pch";
INFOPLIST_FILE = "SampleApp/SampleApp-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "jp.co.voyagegroup.fluct.${PRODUCT_NAME:rfc1034identifier}";
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// FSSNativeTableViewCell.h
// FluctSDK
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface FSSNativeTableViewCell : UITableViewCell

- (void)loadAdWithGroupID:(NSString *)groupID unitID:(NSString *)unitID;
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
//
// FSSNativeView.h
// FluctSDK
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, FSSErrorType) {
FSSErrorTypeNoAd,
FSSErrorTypeBadRequest,
FSSErrorTypeNetworkConnection,
FSSErrorTypeServerError,
FSSErrorTypeOther
};

typedef NS_ENUM(NSInteger, FSSNativeViewCallbackType) {
FSSNativeViewCallbackTypeLoadFinish,
FSSNativeViewCallbackTypeTap
};

@protocol FSSNativeViewDelegate;

@interface FSSNativeView : UIView <UIWebViewDelegate>

NS_ASSUME_NONNULL_BEGIN
@property (nullable, nonatomic, weak) id<FSSNativeViewDelegate> delegate;

- (id)init __attribute__((unavailable("FSSNativeView's init is not available")));
- (id)initWithFrame:(CGRect)frame;
- (id)initWithFrame:(CGRect)frame groupID:(NSString *)groupID unitID:(NSString *)unitID;

- (void)setGroupID:(NSString *)groupID unitID:(NSString *)unitID;
- (void)loadRequest;
@end

@protocol FSSNativeViewDelegate <NSObject>
@optional
- (void)nativeView:(FSSNativeView *)nativeView callbackType:(FSSNativeViewCallbackType)callbackType;
- (void)nativeView:(FSSNativeView *)nativeView callbackErrorType:(FSSErrorType)callbackErrorType;
@end
NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#import "FSSBannerView.h"
#import "FSSInterstitialView.h"
#import "FSSNativeTableViewCell.h"
#import "FSSNativeView.h"
#import "FluctBannerView.h"
#import "FluctInterstitialView.h"
#import <UIKit/UIKit.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>4.5.0</string>
<string>4.6.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand Down
12 changes: 12 additions & 0 deletions SampleApp/Objective-C/SampleApp/Native/NativeTableViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// NativeTableViewController.h
// SampleApp
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NativeTableViewController : UITableViewController

@end
46 changes: 46 additions & 0 deletions SampleApp/Objective-C/SampleApp/Native/NativeTableViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// NativeTableViewController.m
// SampleApp
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import "NativeTableViewController.h"
@import FluctSDK;

@interface NativeTableViewController ()
@property (nonatomic) FSSNativeTableViewCell *cell;
@end

@implementation NativeTableViewController

- (void)viewDidLoad {
[super viewDidLoad];
self.tableView.estimatedRowHeight = 50;
// storyboardでreuse identifierを設定しない場合に設定
// [self.tableView registerClass:FSSNativeTableViewCell.class forCellReuseIdentifier:@"native"];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 50;
}

- (FSSNativeTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 0) {
self.cell = [tableView dequeueReusableCellWithIdentifier:@"native" forIndexPath:indexPath];
[self.cell loadAdWithGroupID:@"1000076934" unitID:@"1000115021"];
} else if (indexPath.row == 20) {
// ※ 広告の更新を行うため広告のインプレッションが発生します
self.cell = [tableView dequeueReusableCellWithIdentifier:@"native" forIndexPath:indexPath];
[self.cell loadAdWithGroupID:@"1000076934" unitID:@"1000115021"];
} else if (indexPath.row == 40) {
self.cell = [tableView dequeueReusableCellWithIdentifier:@"native" forIndexPath:indexPath];
[self.cell loadAdWithGroupID:@"1000076934" unitID:@"1000115021"];
} else {
UITableViewCell *otherCell = [tableView dequeueReusableCellWithIdentifier:@"other"];
return otherCell;
}
return self.cell;
}

@end
12 changes: 12 additions & 0 deletions SampleApp/Objective-C/SampleApp/Native/NativeViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// NativeViewController.h
// SampleApp
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NativeViewController : UIViewController

@end
21 changes: 21 additions & 0 deletions SampleApp/Objective-C/SampleApp/Native/NativeViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// NativeViewController.m
// SampleApp
//
// Copyright © 2017年 fluct, Inc. All rights reserved.
//

#import "NativeViewController.h"
@import FluctSDK;

@implementation NativeViewController

- (void)viewDidLoad {
[super viewDidLoad];

FSSNativeView *nativeView = [[FSSNativeView alloc] initWithFrame:CGRectMake(0, 100, 320, 50) groupID: @"1000076934" unitID: @"1000115021"];
[nativeView loadRequest];
[self.view addSubview:nativeView];
}

@end
Loading

0 comments on commit 8070203

Please sign in to comment.