Skip to content

Commit 22f8375

Browse files
author
Takayuki Sei
committed
add SDK Ver 4.3.6
1 parent 63bd9cb commit 22f8375

File tree

164 files changed

+1279
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1279
-101
lines changed

FluctSDK/FluctSDK.framework/FluctSDK

-1.03 MB
Binary file not shown.

FluctSDK/FluctSDK.framework/Resources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.3.5</string>
18+
<string>4.3.6</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleSupportedPlatforms</key>

README.md

Lines changed: 3 additions & 0 deletions

SampleApp/SampleApp/AppDelegate.m renamed to SampleApp/Objective-C/SampleApp/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "AppDelegate.h"
1010

11-
#import <FluctSDK/FluctSDK.h>
11+
@import FluctSDK;
1212

1313
@implementation AppDelegate
1414

SampleApp/SampleApp/BannerViewController.m renamed to SampleApp/Objective-C/SampleApp/BannerViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import "BannerViewController.h"
1010

11-
#import <FluctSDK/FluctSDK.h>
11+
@import FluctSDK;
1212

1313
@interface BannerViewController ()
1414

SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Resources/Info.plist renamed to SampleApp/Objective-C/SampleApp/FluctSDK/FluctSDK.framework/Resources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.3.5</string>
18+
<string>4.3.6</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleSupportedPlatforms</key>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

SampleApp/SampleApp/Images.xcassets/LaunchImage.launchimage/Contents.json renamed to SampleApp/Objective-C/SampleApp/Images.xcassets/LaunchImage.launchimage/Contents.json

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,85 @@
22
"images" : [
33
{
44
"orientation" : "portrait",
5-
"idiom" : "iphone",
5+
"idiom" : "ipad",
6+
"extent" : "full-screen",
7+
"minimum-system-version" : "7.0",
8+
"scale" : "1x"
9+
},
10+
{
11+
"orientation" : "landscape",
12+
"idiom" : "ipad",
13+
"extent" : "full-screen",
14+
"minimum-system-version" : "7.0",
15+
"scale" : "1x"
16+
},
17+
{
18+
"orientation" : "portrait",
19+
"idiom" : "ipad",
20+
"extent" : "full-screen",
21+
"minimum-system-version" : "7.0",
22+
"scale" : "2x"
23+
},
24+
{
25+
"orientation" : "landscape",
26+
"idiom" : "ipad",
627
"extent" : "full-screen",
728
"minimum-system-version" : "7.0",
829
"scale" : "2x"
930
},
1031
{
1132
"orientation" : "portrait",
1233
"idiom" : "iphone",
13-
"subtype" : "retina4",
1434
"extent" : "full-screen",
15-
"minimum-system-version" : "7.0",
35+
"scale" : "1x"
36+
},
37+
{
38+
"orientation" : "portrait",
39+
"idiom" : "iphone",
40+
"extent" : "full-screen",
41+
"scale" : "2x"
42+
},
43+
{
44+
"orientation" : "portrait",
45+
"idiom" : "iphone",
46+
"extent" : "full-screen",
47+
"subtype" : "retina4",
1648
"scale" : "2x"
1749
},
50+
{
51+
"orientation" : "portrait",
52+
"idiom" : "ipad",
53+
"extent" : "to-status-bar",
54+
"scale" : "1x"
55+
},
1856
{
1957
"orientation" : "portrait",
2058
"idiom" : "ipad",
2159
"extent" : "full-screen",
22-
"minimum-system-version" : "7.0",
2360
"scale" : "1x"
2461
},
2562
{
2663
"orientation" : "landscape",
2764
"idiom" : "ipad",
28-
"extent" : "full-screen",
29-
"minimum-system-version" : "7.0",
65+
"extent" : "to-status-bar",
3066
"scale" : "1x"
3167
},
68+
{
69+
"orientation" : "portrait",
70+
"idiom" : "ipad",
71+
"extent" : "to-status-bar",
72+
"scale" : "2x"
73+
},
3274
{
3375
"orientation" : "portrait",
3476
"idiom" : "ipad",
3577
"extent" : "full-screen",
36-
"minimum-system-version" : "7.0",
3778
"scale" : "2x"
3879
},
3980
{
4081
"orientation" : "landscape",
4182
"idiom" : "ipad",
42-
"extent" : "full-screen",
43-
"minimum-system-version" : "7.0",
83+
"extent" : "to-status-bar",
4484
"scale" : "2x"
4585
}
4686
],

SampleApp/SampleApp/InterstitialViewController.m renamed to SampleApp/Objective-C/SampleApp/InterstitialViewController.m

Lines changed: 20 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88

99
#import "InterstitialViewController.h"
1010

11-
#import <FluctSDK/FluctSDK.h>
11+
@import FluctSDK;
1212

1313
@interface InterstitialViewController () <FluctInterstitialViewDelegate>
1414

1515
@property (nonatomic) FluctInterstitialView *interstitialView;
16-
- (void) recursiveRequest;
1716
@end
1817

1918
@implementation InterstitialViewController
@@ -30,96 +29,68 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
3029
- (void)viewDidLoad
3130
{
3231
[super viewDidLoad];
33-
// Do any additional setup after loading the view.
3432
}
3533

3634
- (void)didReceiveMemoryWarning
3735
{
3836
[super didReceiveMemoryWarning];
3937
// Dispose of any resources that can be recreated.
4038
}
41-
4239
- (IBAction)showInterstitial:(id)sender
4340
{
44-
[self performSelector:@selector(recursiveRequest) withObject:nil afterDelay:0.5f];
45-
}
46-
47-
- (void) recursiveRequest
48-
{
49-
if (!self.interstitialView) {
50-
self.interstitialView = [[FluctInterstitialView alloc] init];
51-
self.interstitialView.delegate = self;
52-
}
41+
self.interstitialView = [[FluctInterstitialView alloc] init];
42+
[self.interstitialView setMediaID: @"0000000108"];
43+
self.interstitialView.delegate = self;
5344
[self.interstitialView showInterstitialAd];
45+
// 背景色を設定してインタースティシャル広告を表示する場合
46+
// [self.interstitialView showInterstitialAdWithHexColor: @"#FF0000"];
5447
}
5548

56-
- (void)fluctInterstitialView:(FluctInterstitialView *)interstitialView
57-
callbackValue:(NSInteger)callbackValue
49+
- (void)fluctInterstitialView:(FluctInterstitialView *)interstitialView callbackValue:(NSInteger)callbackValue
5850
{
5951
NSLog(@"Interstitial callback : %ld", (long)callbackValue);
60-
52+
6153
switch (callbackValue) {
6254
case FluctInterstitialShow:
55+
NSLog(@"表示されました");
6356
break;
6457
case FluctInterstitialTap:
58+
NSLog(@"タップされました");
6559
break;
6660
case FluctInterstitialClose:
67-
{
68-
self.interstitialView.delegate = nil;
69-
self.interstitialView = nil;
61+
NSLog(@"閉じました");
7062
break;
71-
}
7263
case FluctInterstitialCancel:
73-
{
74-
self.interstitialView.delegate = nil;
75-
self.interstitialView = nil;
64+
NSLog(@"キャンセルされました");
7665
break;
77-
}
7866
case FluctInterstitialOffline:
79-
{
80-
self.interstitialView.delegate = nil;
81-
self.interstitialView = nil;
67+
NSLog(@"圏外です");
8268
break;
83-
}
8469
case FluctInterstitialMediaIDError:
85-
{
86-
self.interstitialView.delegate = nil;
87-
self.interstitialView = nil;
70+
NSLog(@"メディアIDが不正な値です");
8871
break;
89-
}
9072
case FluctInterstitialNoConfig:
91-
{
92-
self.interstitialView.delegate = nil;
93-
self.interstitialView = nil;
73+
NSLog(@"メディアIDに設定されていません");
9474
break;
95-
}
9675
case FluctInterstitialSizeError:
97-
{
98-
self.interstitialView.delegate = nil;
99-
self.interstitialView = nil;
76+
NSLog(@"表示する端末のサイズより広告が大きいです");
10077
break;
101-
}
10278
case FluctInterstitialGetConfigError:
103-
{
104-
self.interstitialView.delegate = nil;
105-
self.interstitialView = nil;
79+
NSLog(@"広告情報が取得出来ませんでした");
10680
break;
107-
}
10881
case FluctInterstitialOtherError:
109-
{
110-
self.interstitialView.delegate = nil;
111-
self.interstitialView = nil;
82+
NSLog(@"その他のエラーです");
11283
break;
113-
}
11484
default:
11585
break;
11686
}
87+
11788
}
11889

90+
// 画面の回転時にインタースティシャルを非表示にする
11991
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
12092
{
12193
[self.interstitialView dismissInterstitialAd];
122-
self.interstitialView = nil;
12394
}
12495

12596
@end

SampleApp/SampleApp/ManyBannerViewController.m renamed to SampleApp/Objective-C/SampleApp/ManyBannerViewController.m

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
#import "ManyBannerViewController.h"
1010

11-
#import <FluctSDK/FluctSDK.h>
11+
@import FluctSDK;
1212

1313
@interface ManyBannerViewController () <FluctBannerViewDelegate>
1414

15-
@property (nonatomic) FluctBannerView *topBannerView;
1615
@property (nonatomic) FluctBannerView *bottomBannerView;
16+
@property (weak, nonatomic) IBOutlet FluctBannerView *topBannerView;
1717

1818
@end
1919

@@ -31,13 +31,6 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
3131
- (void)viewDidLoad
3232
{
3333
[super viewDidLoad];
34-
// Do any additional setup after loading the view.
35-
self.topBannerView = [[FluctBannerView alloc] init];
36-
CGRect topBannerFrame = self.topBannerView.frame;
37-
topBannerFrame.origin.x = (CGRectGetWidth(self.view.bounds) - CGRectGetWidth(topBannerFrame)) / 2.0;
38-
self.topBannerView.autoresizingMask = (UIViewAutoresizingFlexibleBottomMargin |
39-
UIViewAutoresizingFlexibleLeftMargin |
40-
UIViewAutoresizingFlexibleRightMargin);
4134
self.topBannerView.delegate = self;
4235
self.topBannerView.tag = 100;
4336
[self.view addSubview:self.topBannerView];
@@ -74,23 +67,31 @@ - (void)didReceiveMemoryWarning
7467
}
7568

7669
# pragma mark FluctBannerView delegate method
77-
- (void)fluctBannerView:(FluctBannerView *)bannerView
78-
callbackValue:(NSInteger)callbackValue {
79-
switch (callbackValue) {
80-
case FluctBannerLoad:
81-
// 広告が正常に読み込まれた場合の処理
82-
NSLog(@"bannerView tag : %d", (int)bannerView.tag);
83-
break;
84-
case FluctBannerOffline:
85-
case FluctBannerMediaIdError:
86-
case FluctBannerNoConfig:
87-
case FluctBannerGetConfigError:
88-
case FluctBannerOtherError:
89-
// いずれかの理由で広告表示ができない場合の処理
90-
break;
91-
default:
92-
break;
93-
}
70+
- (void)fluctBannerView:(FluctBannerView *)bannerView callbackValue:(NSInteger)callbackValue
71+
{
72+
NSLog(@"bannerView : %ld", (long)callbackValue);
73+
switch (callbackValue) {
74+
case FluctBannerLoad:
75+
NSLog(@"読み込まれました");
76+
break;
77+
case FluctBannerOffline:
78+
NSLog(@"圏外です");
79+
break;
80+
case FluctBannerMediaIdError:
81+
NSLog(@"メディアIDが不正な値です");
82+
break;
83+
case FluctBannerNoConfig:
84+
NSLog(@"広告情報を取得出来ませんでした");
85+
break;
86+
case FluctBannerGetConfigError:
87+
NSLog(@"広告設定情報を取得出来ませんでした");
88+
break;
89+
case FluctBannerOtherError:
90+
NSLog(@"その他のエラーです");
91+
break;
92+
default:
93+
break;
94+
}
9495
}
9596

9697
@end

SampleApp/SampleApp/MovieBannerScrollViewController.m renamed to SampleApp/Objective-C/SampleApp/MovieBannerScrollViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "MovieBannerScrollViewController.h"
10-
#import <FluctSDK/FluctSDK.h>
10+
@import FluctSDK;
1111

1212
@interface MovieBannerScrollViewController () <FluctBannerViewDelegate, UIScrollViewDelegate>
1313

SampleApp/SampleApp/MovieBannerTableViewCell.h renamed to SampleApp/Objective-C/SampleApp/MovieBannerTableViewCell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import <UIKit/UIKit.h>
10-
#import <FluctSDK/FluctSDK.h>
10+
@import FluctSDK;
1111

1212

1313
@interface MovieBannerTableViewCell : UITableViewCell

SampleApp/SampleApp/SampleApp-Info.plist renamed to SampleApp/Objective-C/SampleApp/SampleApp-Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
<string>1.0</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
27+
<key>UILaunchStoryboardName</key>
28+
<string>Main_iPhone</string>
2729
<key>UIMainStoryboardFile</key>
2830
<string>Main_iPhone</string>
2931
<key>UIMainStoryboardFile~ipad</key>

0 commit comments

Comments
 (0)