Skip to content

Commit

Permalink
add SDK Ver 4.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Takayuki Sei committed Aug 4, 2016
1 parent 63bd9cb commit 22f8375
Show file tree
Hide file tree
Showing 164 changed files with 1,279 additions and 101 deletions.
Binary file modified FluctSDK/FluctSDK.framework/FluctSDK
Binary file not shown.
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.3.5</string>
<string>4.3.6</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 @@ -13,6 +13,9 @@ pod "FluctSDK"
```

# FluctSDK Release Note
## v4.3.6 2016/08/04
* Swiftのサンプルコード及びサンプルプロジェクトを追加

## v4.3.5 2016/06/27
* サポートバージョンをiOS6.0以上に変更

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "AppDelegate.h"

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

@implementation AppDelegate

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import "BannerViewController.h"

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

@interface BannerViewController ()

Expand Down
Binary file not shown.
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.3.5</string>
<string>4.3.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 6 additions & 0 deletions SampleApp/Objective-C/SampleApp/Images.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,85 @@
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"subtype" : "retina4",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"extent" : "to-status-bar",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"extent" : "to-status-bar",
"scale" : "2x"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@

#import "InterstitialViewController.h"

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

@interface InterstitialViewController () <FluctInterstitialViewDelegate>

@property (nonatomic) FluctInterstitialView *interstitialView;
- (void) recursiveRequest;
@end

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

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

- (IBAction)showInterstitial:(id)sender
{
[self performSelector:@selector(recursiveRequest) withObject:nil afterDelay:0.5f];
}

- (void) recursiveRequest
{
if (!self.interstitialView) {
self.interstitialView = [[FluctInterstitialView alloc] init];
self.interstitialView.delegate = self;
}
self.interstitialView = [[FluctInterstitialView alloc] init];
[self.interstitialView setMediaID: @"0000000108"];
self.interstitialView.delegate = self;
[self.interstitialView showInterstitialAd];
// 背景色を設定してインタースティシャル広告を表示する場合
// [self.interstitialView showInterstitialAdWithHexColor: @"#FF0000"];
}

- (void)fluctInterstitialView:(FluctInterstitialView *)interstitialView
callbackValue:(NSInteger)callbackValue
- (void)fluctInterstitialView:(FluctInterstitialView *)interstitialView callbackValue:(NSInteger)callbackValue
{
NSLog(@"Interstitial callback : %ld", (long)callbackValue);

switch (callbackValue) {
case FluctInterstitialShow:
NSLog(@"表示されました");
break;
case FluctInterstitialTap:
NSLog(@"タップされました");
break;
case FluctInterstitialClose:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"閉じました");
break;
}
case FluctInterstitialCancel:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"キャンセルされました");
break;
}
case FluctInterstitialOffline:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"圏外です");
break;
}
case FluctInterstitialMediaIDError:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"メディアIDが不正な値です");
break;
}
case FluctInterstitialNoConfig:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"メディアIDに設定されていません");
break;
}
case FluctInterstitialSizeError:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"表示する端末のサイズより広告が大きいです");
break;
}
case FluctInterstitialGetConfigError:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"広告情報が取得出来ませんでした");
break;
}
case FluctInterstitialOtherError:
{
self.interstitialView.delegate = nil;
self.interstitialView = nil;
NSLog(@"その他のエラーです");
break;
}
default:
break;
}

}

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

@end
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

#import "ManyBannerViewController.h"

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

@interface ManyBannerViewController () <FluctBannerViewDelegate>

@property (nonatomic) FluctBannerView *topBannerView;
@property (nonatomic) FluctBannerView *bottomBannerView;
@property (weak, nonatomic) IBOutlet FluctBannerView *topBannerView;

@end

Expand All @@ -31,13 +31,6 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.topBannerView = [[FluctBannerView alloc] init];
CGRect topBannerFrame = self.topBannerView.frame;
topBannerFrame.origin.x = (CGRectGetWidth(self.view.bounds) - CGRectGetWidth(topBannerFrame)) / 2.0;
self.topBannerView.autoresizingMask = (UIViewAutoresizingFlexibleBottomMargin |
UIViewAutoresizingFlexibleLeftMargin |
UIViewAutoresizingFlexibleRightMargin);
self.topBannerView.delegate = self;
self.topBannerView.tag = 100;
[self.view addSubview:self.topBannerView];
Expand Down Expand Up @@ -74,23 +67,31 @@ - (void)didReceiveMemoryWarning
}

# pragma mark FluctBannerView delegate method
- (void)fluctBannerView:(FluctBannerView *)bannerView
callbackValue:(NSInteger)callbackValue {
switch (callbackValue) {
case FluctBannerLoad:
// 広告が正常に読み込まれた場合の処理
NSLog(@"bannerView tag : %d", (int)bannerView.tag);
break;
case FluctBannerOffline:
case FluctBannerMediaIdError:
case FluctBannerNoConfig:
case FluctBannerGetConfigError:
case FluctBannerOtherError:
// いずれかの理由で広告表示ができない場合の処理
break;
default:
break;
}
- (void)fluctBannerView:(FluctBannerView *)bannerView callbackValue:(NSInteger)callbackValue
{
NSLog(@"bannerView : %ld", (long)callbackValue);
switch (callbackValue) {
case FluctBannerLoad:
NSLog(@"読み込まれました");
break;
case FluctBannerOffline:
NSLog(@"圏外です");
break;
case FluctBannerMediaIdError:
NSLog(@"メディアIDが不正な値です");
break;
case FluctBannerNoConfig:
NSLog(@"広告情報を取得出来ませんでした");
break;
case FluctBannerGetConfigError:
NSLog(@"広告設定情報を取得出来ませんでした");
break;
case FluctBannerOtherError:
NSLog(@"その他のエラーです");
break;
default:
break;
}
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "MovieBannerScrollViewController.h"
#import <FluctSDK/FluctSDK.h>
@import FluctSDK;

@interface MovieBannerScrollViewController () <FluctBannerViewDelegate, UIScrollViewDelegate>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

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


@interface MovieBannerTableViewCell : UITableViewCell
Expand Down
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_iPhone</string>
<key>UIMainStoryboardFile</key>
<string>Main_iPhone</string>
<key>UIMainStoryboardFile~ipad</key>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 22f8375

Please sign in to comment.