Skip to content

Commit

Permalink
add SDK Ver 4.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nkws committed Jan 25, 2017
1 parent ce0333e commit 9d39faf
Show file tree
Hide file tree
Showing 29 changed files with 527 additions and 129 deletions.
Binary file modified FluctSDK/FluctSDK.framework/FluctSDK
Binary file not shown.
7 changes: 5 additions & 2 deletions FluctSDK/FluctSDK.framework/Headers/FSSBannerView.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,19 @@ typedef NS_ENUM(NSInteger, FSSBannerViewCallbackType) {
@class BannerWebView;
@interface FSSBannerView : UIView

@property (nonatomic, weak) id<FSSBannerViewDelegate> delegate;
NS_ASSUME_NONNULL_BEGIN
@property (nullable, nonatomic, weak) id<FSSBannerViewDelegate> delegate;
@property (nonatomic, getter=isSizeAdjust) IBInspectable BOOL sizeAdjust;
- (id)init __attribute__((unavailable("FSSBannerView's init is not available")));
- (id)initWithFrame:(CGRect)frame sizeAdjust:(BOOL)sizeAdjust;

- (void)setMediaID:(NSString *)mediaID;
- (void)setRootViewController:(UIViewController *)rootViewController;
- (void)refreshBanner;
@end

@protocol FSSBannerViewDelegate <NSObject>
@optional
- (void)bannerView:(FSSBannerView *)bannerView callbackType:(FSSBannerViewCallbackType)callbackType;
@end
@end
NS_ASSUME_NONNULL_END
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.4.2</string>
<string>4.4.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ FluctSDK-iOSの[Wiki](https://github.com/voyagegroup/FluctSDK-iOS/wiki)を参照

# FluctSDK Release Note

## v4.4.3 2017/01/25
* UITableViewにバナー広告を実装したサンプルコード及びドキュメントの追加

## v4.4.2 2016/11/08
* 名前衝突対策のため一部定数名を変更

Expand Down
12 changes: 12 additions & 0 deletions SampleApp/Objective-C/SampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
3A24ECA41D81207E0014B706 /* BannerNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A24ECA31D81207E0014B706 /* BannerNavigationController.m */; };
3ACE35AE1C3BA25C002E6E22 /* FluctSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3ACE35AC1C3BA25C002E6E22 /* FluctSDK.framework */; };
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 */; };
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 @@ -50,6 +52,10 @@
8B84B68A19F8BF0A006BA6B3 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
8B84B68C19F8BF18006BA6B3 /* Social.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Social.framework; path = System/Library/Frameworks/Social.framework; sourceTree = SDKROOT; };
8B84B68D19F8BF18006BA6B3 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
9614D1BD1DF7E89200AC935E /* BannerTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BannerTableViewCell.h; sourceTree = "<group>"; };
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>"; };
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 @@ -174,6 +180,10 @@
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 @@ -311,9 +321,11 @@
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 */,
9614D1C21DF7E8A800AC935E /* BannerTableViewController.m in Sources */,
A3E7215318DAEFA900A3ABF1 /* InterstitialViewController.m in Sources */,
A3418CB518D999C5003E302C /* main.m in Sources */,
);
Expand Down
13 changes: 13 additions & 0 deletions SampleApp/Objective-C/SampleApp/BannerTableViewCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// BannerTableViewCell.h
// SampleApp
//
// Fluct SDK
// Copyright (c) 2016 fluct, Inc. All rights reserved.

#import <UIKit/UIKit.h>
@import FluctSDK;

@interface BannerTableViewCell : UITableViewCell
@property(weak, nonatomic) IBOutlet FSSBannerView *banner;
@end
12 changes: 12 additions & 0 deletions SampleApp/Objective-C/SampleApp/BannerTableViewCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// BannerTableViewCell.m
// SampleApp
//
// Fluct SDK
// Copyright (c) 2016 fluct, Inc. All rights reserved.

#import "BannerTableViewCell.h"

@implementation BannerTableViewCell

@end
12 changes: 12 additions & 0 deletions SampleApp/Objective-C/SampleApp/BannerTableViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// BannerTableViewController.h
// SampleApp
//
// Fluct SDK
// Copyright (c) 2016 fluct, Inc. All rights reserved.

#import <UIKit/UIKit.h>

@interface BannerTableViewController : UITableViewController

@end
50 changes: 50 additions & 0 deletions SampleApp/Objective-C/SampleApp/BannerTableViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
//
// BannerTableViewController.m
// SampleApp
//
// Fluct SDK
// Copyright (c) 2016 fluct, Inc. All rights reserved.

#import "BannerTableViewCell.h"
#import "BannerTableViewController.h"

@interface BannerTableViewController ()

@end

@implementation BannerTableViewController

- (void)viewDidLoad {
[super viewDidLoad];
self.tableView.estimatedRowHeight = 70;
}

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

- (BannerTableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
BannerTableViewCell *cell = [[BannerTableViewCell alloc] init];

if (indexPath.row == 0) {
cell = [tableView dequeueReusableCellWithIdentifier:@"banner"];
[cell.banner setMediaID:(@"0000005617")];
} else if (indexPath.row == 15) {
// 再利用時に広告を更新する場合
// ※ 広告の更新を行うごとに広告のインプレッションが発生します
cell = [tableView dequeueReusableCellWithIdentifier:@"banner"];
[cell.banner refreshBanner];
} else if (indexPath.row == 29) {
// 再利用時にメディアIDを変更する場合
cell = [tableView dequeueReusableCellWithIdentifier:@"banner"];
[cell.banner setMediaID:(@"0000005732")]; // 異なるメディアIDを設定してください
[cell.banner refreshBanner];
} else {
cell = [tableView dequeueReusableCellWithIdentifier:@"other"];
}

return cell;
}
@end
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,19 @@ typedef NS_ENUM(NSInteger, FSSBannerViewCallbackType) {
@class BannerWebView;
@interface FSSBannerView : UIView

@property (nonatomic, weak) id<FSSBannerViewDelegate> delegate;
NS_ASSUME_NONNULL_BEGIN
@property (nullable, nonatomic, weak) id<FSSBannerViewDelegate> delegate;
@property (nonatomic, getter=isSizeAdjust) IBInspectable BOOL sizeAdjust;
- (id)init __attribute__((unavailable("FSSBannerView's init is not available")));
- (id)initWithFrame:(CGRect)frame sizeAdjust:(BOOL)sizeAdjust;

- (void)setMediaID:(NSString *)mediaID;
- (void)setRootViewController:(UIViewController *)rootViewController;
- (void)refreshBanner;
@end

@protocol FSSBannerViewDelegate <NSObject>
@optional
- (void)bannerView:(FSSBannerView *)bannerView callbackType:(FSSBannerViewCallbackType)callbackType;
@end
@end
NS_ASSUME_NONNULL_END
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.4.2</string>
<string>4.4.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "736h",
"scale" : "3x"
},
{
"orientation" : "landscape",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "736h",
"scale" : "3x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "667h",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
Expand Down
2 changes: 2 additions & 0 deletions SampleApp/Objective-C/SampleApp/SampleApp-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>Main</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIMainStoryboardFile~ipad</key>
Expand Down
Loading

0 comments on commit 9d39faf

Please sign in to comment.