diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6885e85 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +### https://raw.github.com/github/gitignore/be3333655bffe9507d66cc864aee95ed6052b4ed/Objective-C.gitignore + +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated +build/ +DerivedData + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata + +## Other +*.xccheckout +*.moved-aside +*.xcuserstate +*.xcscmblueprint + +## Obj-C/Swift specific +*.hmap +*.ipa diff --git a/FluctSDK/FluctSDK.framework/FluctSDK b/FluctSDK/FluctSDK.framework/FluctSDK new file mode 100644 index 0000000..badc057 Binary files /dev/null and b/FluctSDK/FluctSDK.framework/FluctSDK differ diff --git a/FluctSDK/FluctSDK.framework/Headers/FluctBannerView.h b/FluctSDK/FluctSDK.framework/Headers/FluctBannerView.h new file mode 100644 index 0000000..6a0028b --- /dev/null +++ b/FluctSDK/FluctSDK.framework/Headers/FluctBannerView.h @@ -0,0 +1,55 @@ +// +// FluctBannerView.h +// +// Fluct SDK +// Copyright 2011-2014 fluct, Inc. All rights reserved. +// + +/* + * バナー広告表示を行う + * 事前にFluctSDKで表示設定処理を行う必要があります + */ + +#import + +/** + コールバックタイプ + */ +typedef NS_ENUM(NSInteger, FluctBannerViewCallbackType) +{ + FluctBannerLoad = 0, + FluctBannerTap = 1, + FluctBannerOffline = 2, + FluctBannerMediaIdError = 3, + FluctBannerNoConfig = 4, + FluctBannerGetConfigError = 5, + FluctBannerOtherError = 100 +}; + +@protocol FluctBannerViewDelegate; + +@class BannerWebView; + +@interface FluctBannerView : UIView +{ +@private + BannerWebView *_bannerWebView; + BOOL _initialized; +} + +@property (nonatomic, retain) BannerWebView *bannerWebView; +@property (nonatomic, assign) id delegate; + +- (void)setMediaID:(NSString *)mediaID; +- (void)setRootViewController:(UIViewController*)rootViewController; +- (void)scrollViewDidScroll; +- (void)playMovie; +- (void)pauseMovie; + +@end + +@protocol FluctBannerViewDelegate +@optional +- (void)fluctBannerView:(FluctBannerView *)bannerView + callbackValue:(NSInteger)callbackValue; +@end diff --git a/FluctSDK/FluctSDK.framework/Headers/FluctInterstitialView.h b/FluctSDK/FluctSDK.framework/Headers/FluctInterstitialView.h new file mode 100644 index 0000000..d78cbc1 --- /dev/null +++ b/FluctSDK/FluctSDK.framework/Headers/FluctInterstitialView.h @@ -0,0 +1,45 @@ +// +// FluctInterstitialView.h +// +// Fluct SDK +// Copyright 2013-2014 fluct, Inc. All rights reserved. +// + +#import + +typedef NS_ENUM(NSInteger, FluctInterstitialViewCallbackType) +{ + FluctInterstitialShow = 0, + FluctInterstitialTap = 1, + FluctInterstitialClose = 2, + FluctInterstitialCancel = 3, + FluctInterstitialOffline = 4, + FluctInterstitialMediaIDError = 5, + FluctInterstitialNoConfig = 6, + FluctInterstitialSizeError = 7, + FluctInterstitialGetConfigError = 8, + FluctInterstitialOtherError = 100, +}; + +@protocol FluctInterstitialViewDelegate; + +@interface FluctInterstitialView : UIView + +- (id)init; +- (id)initWithMediaID:(NSString *)mediaID; +@property (nonatomic, copy, readwrite) NSString *mediaID; + +- (void)showInterstitialAd; +- (void)showInterstitialAdWithHexColor:(NSString *)hexColorString; +- (void)dismissInterstitialAd; +@property (nonatomic, copy, readwrite) NSString *hexColorString; + +@property (nonatomic, assign, readwrite) id delegate; + +@end + +@protocol FluctInterstitialViewDelegate +@optional +- (void)fluctInterstitialView:(FluctInterstitialView *)interstitialView + callbackValue:(NSInteger)callbackValue; +@end diff --git a/FluctSDK/FluctSDK.framework/Headers/FluctSDK.h b/FluctSDK/FluctSDK.framework/Headers/FluctSDK.h new file mode 100644 index 0000000..0d5f5f6 --- /dev/null +++ b/FluctSDK/FluctSDK.framework/Headers/FluctSDK.h @@ -0,0 +1,44 @@ +// +// FluctSDK.h +// +// Fluct SDK +// Copyright 2011-2014 fluct, Inc. All rights reserved. +// + +/* + * SDKの各処理を行う + * ・広告表示設定 (表示処理はFluctBannerViewにて行われる) + * ・コンバージョン通知処理 + */ + +#import +#import +#import + +@interface FluctSDK : NSObject + +@property (nonatomic, copy) NSString* applicationId; ++ (FluctSDK *)sharedInstance; + +/* + * setBannerConfiguration + * 広告表示設定を行う + * FluctBannerViewのインスタンス生成前にコールします + * + * arguments: + * (NSString*)mediaId : メディアID + * (NSString*)orientationType : 未使用(v2.0.0未満との互換性用) + */ +-(void)setBannerConfiguration:(NSString*)mediaId orientationType:(NSString*)orientationType; + +/* + * setBannerConfiguration + * 広告表示設定を行う + * FluctBannerViewのインスタンス生成前にコールします + * + * arguments: + * (NSString*)mediaId : メディアID + */ +-(void)setBannerConfiguration:(NSString*)mediaId; + +@end diff --git a/FluctSDK/FluctSDK.framework/Resources/Info.plist b/FluctSDK/FluctSDK.framework/Resources/Info.plist new file mode 100644 index 0000000..979d92f --- /dev/null +++ b/FluctSDK/FluctSDK.framework/Resources/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + ja_JP + CFBundleExecutable + FluctSDK + CFBundleIdentifier + jp.fluct.FluctSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FluctSDK + CFBundlePackageType + FMWK + CFBundleShortVersionString + 4.3.1 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + MinimumOSVersion + 5.1.1 + NSHumanReadableCopyright + Copyright (c) fluct, Inc. All rights reserved. + UIDeviceFamily + + 1 + + + diff --git a/FluctSDK/GSMMovieResources.bundle/Root.plist b/FluctSDK/GSMMovieResources.bundle/Root.plist new file mode 100644 index 0000000..fa98306 --- /dev/null +++ b/FluctSDK/GSMMovieResources.bundle/Root.plist @@ -0,0 +1,61 @@ + + + + + PreferenceSpecifiers + + + Title + Group + Type + PSGroupSpecifier + + + AutocapitalizationType + None + AutocorrectionType + No + DefaultValue + + IsSecure + + Key + name_preference + KeyboardType + Alphabet + Title + Name + Type + PSTextFieldSpecifier + + + DefaultValue + + Key + enabled_preference + Title + Enabled + Type + PSToggleSwitchSpecifier + + + DefaultValue + 0.5 + Key + slider_preference + MaximumValue + 1 + MaximumValueImage + + MinimumValue + 0 + MinimumValueImage + + Type + PSSliderSpecifier + + + StringsTable + Root + + diff --git a/FluctSDK/GSMMovieResources.bundle/btn_close.png b/FluctSDK/GSMMovieResources.bundle/btn_close.png new file mode 100644 index 0000000..6f0fb49 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_close.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_close@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_close@2x.png new file mode 100644 index 0000000..b527eb5 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_close@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_close@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_close@3x.png new file mode 100644 index 0000000..fb9d72b Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_close@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_detail.png b/FluctSDK/GSMMovieResources.bundle/btn_detail.png new file mode 100644 index 0000000..7e42396 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_detail.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_detail@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_detail@2x.png new file mode 100644 index 0000000..51feeee Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_detail@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_detail@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_detail@3x.png new file mode 100644 index 0000000..64e4791 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_detail@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_line.png b/FluctSDK/GSMMovieResources.bundle/btn_line.png new file mode 100644 index 0000000..5c841b7 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_line.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_line@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_line@2x.png new file mode 100644 index 0000000..7a4feb6 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_line@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_line@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_line@3x.png new file mode 100644 index 0000000..709298d Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_line@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_mute.png b/FluctSDK/GSMMovieResources.bundle/btn_mute.png new file mode 100644 index 0000000..d865d7f Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_mute.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_mute@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_mute@2x.png new file mode 100644 index 0000000..70aea8e Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_mute@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_mute@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_mute@3x.png new file mode 100644 index 0000000..02e9097 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_mute@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_pause.png b/FluctSDK/GSMMovieResources.bundle/btn_pause.png new file mode 100644 index 0000000..a2a6da1 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_pause.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_pause@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_pause@2x.png new file mode 100644 index 0000000..a21cafc Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_pause@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_pause@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_pause@3x.png new file mode 100644 index 0000000..3dcf550 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_pause@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_play.png b/FluctSDK/GSMMovieResources.bundle/btn_play.png new file mode 100644 index 0000000..5839eb2 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_play.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_play@2.png b/FluctSDK/GSMMovieResources.bundle/btn_play@2.png new file mode 100644 index 0000000..88a18cd Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_play@2.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_play@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_play@3x.png new file mode 100644 index 0000000..116af31 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_play@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_replay.png b/FluctSDK/GSMMovieResources.bundle/btn_replay.png new file mode 100644 index 0000000..5e1d6f5 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_replay.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_replay@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_replay@2x.png new file mode 100644 index 0000000..4987dc9 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_replay@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_replay@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_replay@3x.png new file mode 100644 index 0000000..d0045e0 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_replay@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_scaledown.png b/FluctSDK/GSMMovieResources.bundle/btn_scaledown.png new file mode 100644 index 0000000..330bcd6 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_scaledown.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_scaledown@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_scaledown@2x.png new file mode 100644 index 0000000..77c05b2 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_scaledown@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_scaledown@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_scaledown@3x.png new file mode 100644 index 0000000..8f6f2d1 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_scaledown@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_scaleup.png b/FluctSDK/GSMMovieResources.bundle/btn_scaleup.png new file mode 100644 index 0000000..3e07f5d Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_scaleup.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_scaleup@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_scaleup@2x.png new file mode 100644 index 0000000..270e417 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_scaleup@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_scaleup@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_scaleup@3x.png new file mode 100644 index 0000000..eeccca5 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_scaleup@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_skip.png b/FluctSDK/GSMMovieResources.bundle/btn_skip.png new file mode 100644 index 0000000..d6e2063 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_skip.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_skip@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_skip@2x.png new file mode 100644 index 0000000..a09df4a Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_skip@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_skip@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_skip@3x.png new file mode 100644 index 0000000..2d19952 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_skip@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_sound.png b/FluctSDK/GSMMovieResources.bundle/btn_sound.png new file mode 100644 index 0000000..4e01fff Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_sound.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_sound@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_sound@2x.png new file mode 100644 index 0000000..272c6c9 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_sound@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_sound@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_sound@3x.png new file mode 100644 index 0000000..40b60e3 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_sound@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_twitter.png b/FluctSDK/GSMMovieResources.bundle/btn_twitter.png new file mode 100644 index 0000000..1bc319e Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_twitter.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_twitter@2x.png b/FluctSDK/GSMMovieResources.bundle/btn_twitter@2x.png new file mode 100644 index 0000000..1d09334 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_twitter@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/btn_twitter@3x.png b/FluctSDK/GSMMovieResources.bundle/btn_twitter@3x.png new file mode 100644 index 0000000..d875123 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/btn_twitter@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/en.lproj/Root.strings b/FluctSDK/GSMMovieResources.bundle/en.lproj/Root.strings new file mode 100644 index 0000000..82baa7c Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/en.lproj/Root.strings differ diff --git a/FluctSDK/GSMMovieResources.bundle/icon_ad.png b/FluctSDK/GSMMovieResources.bundle/icon_ad.png new file mode 100644 index 0000000..cfa2088 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/icon_ad.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/icon_ad@2x.png b/FluctSDK/GSMMovieResources.bundle/icon_ad@2x.png new file mode 100644 index 0000000..c9c4294 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/icon_ad@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/icon_ad@3x.png b/FluctSDK/GSMMovieResources.bundle/icon_ad@3x.png new file mode 100644 index 0000000..32522e2 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/icon_ad@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/icon_pr.png b/FluctSDK/GSMMovieResources.bundle/icon_pr.png new file mode 100644 index 0000000..c5cd6b6 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/icon_pr.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/icon_pr@2x.png b/FluctSDK/GSMMovieResources.bundle/icon_pr@2x.png new file mode 100644 index 0000000..3482545 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/icon_pr@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/icon_pr@3x.png b/FluctSDK/GSMMovieResources.bundle/icon_pr@3x.png new file mode 100644 index 0000000..ae99b10 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/icon_pr@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/ja.lproj/Root.strings b/FluctSDK/GSMMovieResources.bundle/ja.lproj/Root.strings new file mode 100644 index 0000000..ec29248 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/ja.lproj/Root.strings differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_dot.png b/FluctSDK/GSMMovieResources.bundle/seekbar_dot.png new file mode 100644 index 0000000..51dd5c4 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_dot.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_dot@2x.png b/FluctSDK/GSMMovieResources.bundle/seekbar_dot@2x.png new file mode 100644 index 0000000..8e9aab3 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_dot@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_dot@3x.png b/FluctSDK/GSMMovieResources.bundle/seekbar_dot@3x.png new file mode 100644 index 0000000..eab09c5 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_dot@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_left.png b/FluctSDK/GSMMovieResources.bundle/seekbar_left.png new file mode 100644 index 0000000..7ce6e3f Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_left.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_left@2x.png b/FluctSDK/GSMMovieResources.bundle/seekbar_left@2x.png new file mode 100644 index 0000000..e0d40eb Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_left@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_left@3x.png b/FluctSDK/GSMMovieResources.bundle/seekbar_left@3x.png new file mode 100644 index 0000000..1c387aa Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_left@3x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_right.png b/FluctSDK/GSMMovieResources.bundle/seekbar_right.png new file mode 100644 index 0000000..779179c Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_right.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_right@2x.png b/FluctSDK/GSMMovieResources.bundle/seekbar_right@2x.png new file mode 100644 index 0000000..edab832 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_right@2x.png differ diff --git a/FluctSDK/GSMMovieResources.bundle/seekbar_right@3x.png b/FluctSDK/GSMMovieResources.bundle/seekbar_right@3x.png new file mode 100644 index 0000000..16f5f03 Binary files /dev/null and b/FluctSDK/GSMMovieResources.bundle/seekbar_right@3x.png differ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4f19194 --- /dev/null +++ b/LICENSE @@ -0,0 +1,61 @@ +Copyright fluct, Inc. All rights reserved. + + +GDataXML + +Copyright (c) 2007 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + +Reachability + + Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. + ("Apple") in consideration of your agreement to the following terms, and your + use, installation, modification or redistribution of this Apple software + constitutes acceptance of these terms. If you do not agree with these terms, + please do not use, install, modify or redistribute this Apple software. + + In consideration of your agreement to abide by the following terms, and subject + to these terms, Apple grants you a personal, non-exclusive license, under + Apple's copyrights in this original Apple software (the "Apple Software"), to + use, reproduce, modify and redistribute the Apple Software, with or without + modifications, in source and/or binary forms; provided that if you redistribute + the Apple Software in its entirety and without modifications, you must retain + this notice and the following text and disclaimers in all such redistributions + of the Apple Software. + Neither the name, trademarks, service marks or logos of Apple Inc. may be used + to endorse or promote products derived from the Apple Software without specific + prior written permission from Apple. Except as expressly stated in this notice, + no other rights or licenses, express or implied, are granted by Apple herein, + including but not limited to any patent rights that may be infringed by your + derivative works or by other works in which the Apple Software may be + incorporated. + + The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO + WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED + WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN + COMBINATION WITH YOUR PRODUCTS. + + IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR + DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF + CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF + APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + Copyright (C) 2010 Apple Inc. All Rights Reserved. + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..cfcb239 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# FluctSDK + +## Installation + +FluctSDK は [CocoaPods](http://cocoapods.org) から利用可能です + +利用するプロジェクトの`Podfile`に下記の記述を追加して下さい + +```ruby +pod "FluctSDK" +``` + +# FluctSDK Release Note + +## v4.3.1 2016/01/13 +* CocoaPodsに対応 +* SDKをframework化 + +## v4.3.0 以前の変更点について +* [fluct広告配信SDK導入仕様書(iOS).pdf](https://github.com/voyagegroup/FluctSDK-iOS/blob/master/fluct%E5%BA%83%E5%91%8A%E9%85%8D%E4%BF%A1SDK%E5%B0%8E%E5%85%A5%E4%BB%95%E6%A7%98%E6%9B%B8(iOS).pdf)をご確認下さい diff --git a/SampleApp/SampleApp.xcodeproj/project.pbxproj b/SampleApp/SampleApp.xcodeproj/project.pbxproj new file mode 100644 index 0000000..36fb3fe --- /dev/null +++ b/SampleApp/SampleApp.xcodeproj/project.pbxproj @@ -0,0 +1,613 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 3A94CFB11ABA5F2100A59094 /* MovieBannerScrollViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A94CFB01ABA5F2100A59094 /* MovieBannerScrollViewController.m */; }; + 3A94CFB41ABA60DD00A59094 /* MovieBannerTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A94CFB31ABA60DD00A59094 /* MovieBannerTableViewController.m */; }; + 3A94CFB71ABA611100A59094 /* MovieBannerTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A94CFB61ABA611100A59094 /* MovieBannerTableViewCell.m */; }; + 3ACE35AE1C3BA25C002E6E22 /* FluctSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3ACE35AC1C3BA25C002E6E22 /* FluctSDK.framework */; }; + 3ACE35AF1C3BA25C002E6E22 /* GSMMovieResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3ACE35AD1C3BA25C002E6E22 /* GSMMovieResources.bundle */; }; + 8B84B68519F8BEB1006BA6B3 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B84B68419F8BEB1006BA6B3 /* CoreTelephony.framework */; }; + 8B84B68719F8BEB7006BA6B3 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B84B68619F8BEB7006BA6B3 /* CFNetwork.framework */; }; + 8B84B68B19F8BF0A006BA6B3 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B84B68A19F8BF0A006BA6B3 /* CoreMedia.framework */; }; + 8B84B68E19F8BF18006BA6B3 /* Social.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B84B68C19F8BF18006BA6B3 /* Social.framework */; }; + 8B84B68F19F8BF18006BA6B3 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B84B68D19F8BF18006BA6B3 /* StoreKit.framework */; }; + A3418CA918D999C5003E302C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CA818D999C5003E302C /* Foundation.framework */; }; + A3418CAB18D999C5003E302C /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CAA18D999C5003E302C /* CoreGraphics.framework */; }; + A3418CAD18D999C5003E302C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CAC18D999C5003E302C /* UIKit.framework */; }; + 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 */; }; + A3418CBC18D999C5003E302C /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A3418CBA18D999C5003E302C /* Main_iPhone.storyboard */; }; + A3418CBF18D999C5003E302C /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A3418CBD18D999C5003E302C /* Main_iPad.storyboard */; }; + A3418CC218D999C5003E302C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A3418CC118D999C5003E302C /* ViewController.m */; }; + A3418CC418D999C5003E302C /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A3418CC318D999C5003E302C /* Images.xcassets */; }; + A3418CCB18D999C5003E302C /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CCA18D999C5003E302C /* XCTest.framework */; }; + A3418CCC18D999C5003E302C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CA818D999C5003E302C /* Foundation.framework */; }; + A3418CCD18D999C5003E302C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CAC18D999C5003E302C /* UIKit.framework */; }; + A3418CD518D999C5003E302C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A3418CD318D999C5003E302C /* InfoPlist.strings */; }; + A3418CD718D999C5003E302C /* SampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A3418CD618D999C5003E302C /* SampleAppTests.m */; }; + A3418CE218D9A040003E302C /* BannerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A3418CE118D9A040003E302C /* BannerViewController.m */; }; + A3418CEA18D9A366003E302C /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CE918D9A366003E302C /* SystemConfiguration.framework */; }; + A3418CEC18D9A377003E302C /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A3418CEB18D9A377003E302C /* libxml2.dylib */; }; + A3418CF118D9AA25003E302C /* ManyBannerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A3418CF018D9AA25003E302C /* ManyBannerViewController.m */; }; + A3CC8C011949B1AA005BF429 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3CC8C001949B1AA005BF429 /* AdSupport.framework */; }; + A3E7215318DAEFA900A3ABF1 /* InterstitialViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A3E7215218DAEFA900A3ABF1 /* InterstitialViewController.m */; }; + F38547171AFC63AC00144B08 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B84B68819F8BEFD006BA6B3 /* AVFoundation.framework */; }; + F3CCEE141AE7A50900124007 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3CCEE131AE7A50900124007 /* MediaPlayer.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + A3418CCE18D999C5003E302C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = A3418C9D18D999C5003E302C /* Project object */; + proxyType = 1; + remoteGlobalIDString = A3418CA418D999C5003E302C; + remoteInfo = SampleApp; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 3A94CFAF1ABA5F2100A59094 /* MovieBannerScrollViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MovieBannerScrollViewController.h; sourceTree = ""; }; + 3A94CFB01ABA5F2100A59094 /* MovieBannerScrollViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MovieBannerScrollViewController.m; sourceTree = ""; }; + 3A94CFB21ABA60DD00A59094 /* MovieBannerTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MovieBannerTableViewController.h; sourceTree = ""; }; + 3A94CFB31ABA60DD00A59094 /* MovieBannerTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MovieBannerTableViewController.m; sourceTree = ""; }; + 3A94CFB51ABA611100A59094 /* MovieBannerTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MovieBannerTableViewCell.h; sourceTree = ""; }; + 3A94CFB61ABA611100A59094 /* MovieBannerTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MovieBannerTableViewCell.m; sourceTree = ""; }; + 3ACE35AC1C3BA25C002E6E22 /* FluctSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = FluctSDK.framework; sourceTree = ""; }; + 3ACE35AD1C3BA25C002E6E22 /* GSMMovieResources.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = GSMMovieResources.bundle; sourceTree = ""; }; + 8B84B68419F8BEB1006BA6B3 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; + 8B84B68619F8BEB7006BA6B3 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 8B84B68819F8BEFD006BA6B3 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + 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; }; + 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; }; + A3418CAC18D999C5003E302C /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + A3418CB018D999C5003E302C /* SampleApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SampleApp-Info.plist"; sourceTree = ""; }; + A3418CB218D999C5003E302C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + A3418CB418D999C5003E302C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + A3418CB618D999C5003E302C /* SampleApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SampleApp-Prefix.pch"; sourceTree = ""; }; + A3418CB718D999C5003E302C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + A3418CB818D999C5003E302C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + A3418CC018D999C5003E302C /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + A3418CC118D999C5003E302C /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + A3418CC318D999C5003E302C /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + A3418CC918D999C5003E302C /* SampleAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SampleAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + A3418CCA18D999C5003E302C /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + A3418CD218D999C5003E302C /* SampleAppTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SampleAppTests-Info.plist"; sourceTree = ""; }; + A3418CD418D999C5003E302C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + A3418CD618D999C5003E302C /* SampleAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SampleAppTests.m; sourceTree = ""; }; + A3418CE018D9A040003E302C /* BannerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BannerViewController.h; sourceTree = ""; }; + A3418CE118D9A040003E302C /* BannerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BannerViewController.m; sourceTree = ""; }; + A3418CE918D9A366003E302C /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + A3418CEB18D9A377003E302C /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; }; + A3418CED18D9A380003E302C /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; }; + A3418CEF18D9AA25003E302C /* ManyBannerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ManyBannerViewController.h; sourceTree = ""; }; + A3418CF018D9AA25003E302C /* ManyBannerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ManyBannerViewController.m; sourceTree = ""; }; + A3CC8C001949B1AA005BF429 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; }; + A3E2EE3518E2CDB1004C511C /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/Main_iPad.storyboard; sourceTree = ""; }; + A3E2EE3918E2CDD0004C511C /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/Main_iPhone.storyboard; sourceTree = ""; }; + A3E7215118DAEFA900A3ABF1 /* InterstitialViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InterstitialViewController.h; sourceTree = ""; }; + A3E7215218DAEFA900A3ABF1 /* InterstitialViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InterstitialViewController.m; sourceTree = ""; }; + F3CCEE131AE7A50900124007 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; + F3CCEE181AE7A65100124007 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + A3418CA218D999C5003E302C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F38547171AFC63AC00144B08 /* AVFoundation.framework in Frameworks */, + F3CCEE141AE7A50900124007 /* MediaPlayer.framework in Frameworks */, + 8B84B68E19F8BF18006BA6B3 /* Social.framework in Frameworks */, + 8B84B68F19F8BF18006BA6B3 /* StoreKit.framework in Frameworks */, + 3ACE35AE1C3BA25C002E6E22 /* FluctSDK.framework in Frameworks */, + A3418CEA18D9A366003E302C /* SystemConfiguration.framework in Frameworks */, + 8B84B68B19F8BF0A006BA6B3 /* CoreMedia.framework in Frameworks */, + 8B84B68719F8BEB7006BA6B3 /* CFNetwork.framework in Frameworks */, + 8B84B68519F8BEB1006BA6B3 /* CoreTelephony.framework in Frameworks */, + A3CC8C011949B1AA005BF429 /* AdSupport.framework in Frameworks */, + A3418CEC18D9A377003E302C /* libxml2.dylib in Frameworks */, + A3418CAB18D999C5003E302C /* CoreGraphics.framework in Frameworks */, + A3418CAD18D999C5003E302C /* UIKit.framework in Frameworks */, + A3418CA918D999C5003E302C /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A3418CC618D999C5003E302C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A3418CCB18D999C5003E302C /* XCTest.framework in Frameworks */, + A3418CCD18D999C5003E302C /* UIKit.framework in Frameworks */, + A3418CCC18D999C5003E302C /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3ACE35AB1C3BA25C002E6E22 /* FluctSDK */ = { + isa = PBXGroup; + children = ( + 3ACE35AC1C3BA25C002E6E22 /* FluctSDK.framework */, + 3ACE35AD1C3BA25C002E6E22 /* GSMMovieResources.bundle */, + ); + path = FluctSDK; + sourceTree = ""; + }; + A3418C9C18D999C5003E302C = { + isa = PBXGroup; + children = ( + A3418CAE18D999C5003E302C /* SampleApp */, + A3418CD018D999C5003E302C /* SampleAppTests */, + A3418CA718D999C5003E302C /* Frameworks */, + A3418CA618D999C5003E302C /* Products */, + ); + sourceTree = ""; + }; + A3418CA618D999C5003E302C /* Products */ = { + isa = PBXGroup; + children = ( + A3418CA518D999C5003E302C /* SampleApp.app */, + A3418CC918D999C5003E302C /* SampleAppTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + A3418CA718D999C5003E302C /* Frameworks */ = { + isa = PBXGroup; + children = ( + F3CCEE181AE7A65100124007 /* QuartzCore.framework */, + F3CCEE131AE7A50900124007 /* MediaPlayer.framework */, + 8B84B68C19F8BF18006BA6B3 /* Social.framework */, + 8B84B68D19F8BF18006BA6B3 /* StoreKit.framework */, + 8B84B68A19F8BF0A006BA6B3 /* CoreMedia.framework */, + 8B84B68819F8BEFD006BA6B3 /* AVFoundation.framework */, + 8B84B68619F8BEB7006BA6B3 /* CFNetwork.framework */, + 8B84B68419F8BEB1006BA6B3 /* CoreTelephony.framework */, + A3CC8C001949B1AA005BF429 /* AdSupport.framework */, + A3418CED18D9A380003E302C /* libsqlite3.dylib */, + A3418CEB18D9A377003E302C /* libxml2.dylib */, + A3418CE918D9A366003E302C /* SystemConfiguration.framework */, + A3418CA818D999C5003E302C /* Foundation.framework */, + A3418CAA18D999C5003E302C /* CoreGraphics.framework */, + A3418CAC18D999C5003E302C /* UIKit.framework */, + A3418CCA18D999C5003E302C /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + A3418CAE18D999C5003E302C /* SampleApp */ = { + isa = PBXGroup; + children = ( + A3418CB718D999C5003E302C /* AppDelegate.h */, + A3418CB818D999C5003E302C /* AppDelegate.m */, + A3418CBA18D999C5003E302C /* Main_iPhone.storyboard */, + A3418CBD18D999C5003E302C /* Main_iPad.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 */, + 3A94CFAF1ABA5F2100A59094 /* MovieBannerScrollViewController.h */, + 3A94CFB01ABA5F2100A59094 /* MovieBannerScrollViewController.m */, + 3A94CFB21ABA60DD00A59094 /* MovieBannerTableViewController.h */, + 3A94CFB31ABA60DD00A59094 /* MovieBannerTableViewController.m */, + 3A94CFB51ABA611100A59094 /* MovieBannerTableViewCell.h */, + 3A94CFB61ABA611100A59094 /* MovieBannerTableViewCell.m */, + A3418CC318D999C5003E302C /* Images.xcassets */, + 3ACE35AB1C3BA25C002E6E22 /* FluctSDK */, + A3418CAF18D999C5003E302C /* Supporting Files */, + ); + path = SampleApp; + sourceTree = ""; + }; + A3418CAF18D999C5003E302C /* Supporting Files */ = { + isa = PBXGroup; + children = ( + A3418CB018D999C5003E302C /* SampleApp-Info.plist */, + A3418CB118D999C5003E302C /* InfoPlist.strings */, + A3418CB418D999C5003E302C /* main.m */, + A3418CB618D999C5003E302C /* SampleApp-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + A3418CD018D999C5003E302C /* SampleAppTests */ = { + isa = PBXGroup; + children = ( + A3418CD618D999C5003E302C /* SampleAppTests.m */, + A3418CD118D999C5003E302C /* Supporting Files */, + ); + path = SampleAppTests; + sourceTree = ""; + }; + A3418CD118D999C5003E302C /* Supporting Files */ = { + isa = PBXGroup; + children = ( + A3418CD218D999C5003E302C /* SampleAppTests-Info.plist */, + A3418CD318D999C5003E302C /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + A3418CA418D999C5003E302C /* SampleApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = A3418CDA18D999C5003E302C /* Build configuration list for PBXNativeTarget "SampleApp" */; + buildPhases = ( + A3418CA118D999C5003E302C /* Sources */, + A3418CA218D999C5003E302C /* Frameworks */, + A3418CA318D999C5003E302C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SampleApp; + productName = SampleApp; + productReference = A3418CA518D999C5003E302C /* SampleApp.app */; + productType = "com.apple.product-type.application"; + }; + A3418CC818D999C5003E302C /* SampleAppTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = A3418CDD18D999C5003E302C /* Build configuration list for PBXNativeTarget "SampleAppTests" */; + buildPhases = ( + A3418CC518D999C5003E302C /* Sources */, + A3418CC618D999C5003E302C /* Frameworks */, + A3418CC718D999C5003E302C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + A3418CCF18D999C5003E302C /* PBXTargetDependency */, + ); + name = SampleAppTests; + productName = SampleAppTests; + productReference = A3418CC918D999C5003E302C /* SampleAppTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + A3418C9D18D999C5003E302C /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0510; + ORGANIZATIONNAME = "fluct, Inc"; + TargetAttributes = { + A3418CC818D999C5003E302C = { + TestTargetID = A3418CA418D999C5003E302C; + }; + }; + }; + buildConfigurationList = A3418CA018D999C5003E302C /* Build configuration list for PBXProject "SampleApp" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = A3418C9C18D999C5003E302C; + productRefGroup = A3418CA618D999C5003E302C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + A3418CA418D999C5003E302C /* SampleApp */, + A3418CC818D999C5003E302C /* SampleAppTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + A3418CA318D999C5003E302C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A3418CBF18D999C5003E302C /* Main_iPad.storyboard in Resources */, + A3418CC418D999C5003E302C /* Images.xcassets in Resources */, + A3418CBC18D999C5003E302C /* Main_iPhone.storyboard in Resources */, + A3418CB318D999C5003E302C /* InfoPlist.strings in Resources */, + 3ACE35AF1C3BA25C002E6E22 /* GSMMovieResources.bundle in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A3418CC718D999C5003E302C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A3418CD518D999C5003E302C /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + A3418CA118D999C5003E302C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3A94CFB41ABA60DD00A59094 /* MovieBannerTableViewController.m in Sources */, + A3418CF118D9AA25003E302C /* ManyBannerViewController.m in Sources */, + A3418CE218D9A040003E302C /* BannerViewController.m in Sources */, + 3A94CFB71ABA611100A59094 /* MovieBannerTableViewCell.m in Sources */, + A3418CC218D999C5003E302C /* ViewController.m in Sources */, + A3418CB918D999C5003E302C /* AppDelegate.m in Sources */, + 3A94CFB11ABA5F2100A59094 /* MovieBannerScrollViewController.m in Sources */, + A3E7215318DAEFA900A3ABF1 /* InterstitialViewController.m in Sources */, + A3418CB518D999C5003E302C /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A3418CC518D999C5003E302C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A3418CD718D999C5003E302C /* SampleAppTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + A3418CCF18D999C5003E302C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = A3418CA418D999C5003E302C /* SampleApp */; + targetProxy = A3418CCE18D999C5003E302C /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + A3418CB118D999C5003E302C /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + A3418CB218D999C5003E302C /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + A3418CBA18D999C5003E302C /* Main_iPhone.storyboard */ = { + isa = PBXVariantGroup; + children = ( + A3E2EE3918E2CDD0004C511C /* en */, + ); + name = Main_iPhone.storyboard; + sourceTree = ""; + }; + A3418CBD18D999C5003E302C /* Main_iPad.storyboard */ = { + isa = PBXVariantGroup; + children = ( + A3E2EE3518E2CDB1004C511C /* en */, + ); + name = Main_iPad.storyboard; + sourceTree = ""; + }; + A3418CD318D999C5003E302C /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + A3418CD418D999C5003E302C /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + A3418CD818D999C5003E302C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; + ONLY_ACTIVE_ARCH = YES; + OTHER_LDFLAGS = "-ObjC"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + A3418CD918D999C5003E302C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.0; + ONLY_ACTIVE_ARCH = YES; + OTHER_LDFLAGS = "-ObjC"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + A3418CDB18D999C5003E302C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + "$(ARCHS_STANDARD)", + armv7s, + ); + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/SampleApp/FluctSDK"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SampleApp/SampleApp-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + "TEST_SERVER_REQUEST=1", + ); + INFOPLIST_FILE = "SampleApp/SampleApp-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/lib", + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + A3418CDC18D999C5003E302C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + "$(ARCHS_STANDARD)", + armv7s, + ); + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/SampleApp/FluctSDK"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SampleApp/SampleApp-Prefix.pch"; + INFOPLIST_FILE = "SampleApp/SampleApp-Info.plist"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/lib", + ); + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + A3418CDE18D999C5003E302C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SampleApp.app/SampleApp"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SampleApp/SampleApp-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "SampleAppTests/SampleAppTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + A3418CDF18D999C5003E302C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SampleApp.app/SampleApp"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SampleApp/SampleApp-Prefix.pch"; + INFOPLIST_FILE = "SampleAppTests/SampleAppTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + A3418CA018D999C5003E302C /* Build configuration list for PBXProject "SampleApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A3418CD818D999C5003E302C /* Debug */, + A3418CD918D999C5003E302C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A3418CDA18D999C5003E302C /* Build configuration list for PBXNativeTarget "SampleApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A3418CDB18D999C5003E302C /* Debug */, + A3418CDC18D999C5003E302C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A3418CDD18D999C5003E302C /* Build configuration list for PBXNativeTarget "SampleAppTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A3418CDE18D999C5003E302C /* Debug */, + A3418CDF18D999C5003E302C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = A3418C9D18D999C5003E302C /* Project object */; +} diff --git a/SampleApp/SampleApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SampleApp/SampleApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..2c451d7 --- /dev/null +++ b/SampleApp/SampleApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SampleApp/SampleApp/.DS_Store b/SampleApp/SampleApp/.DS_Store new file mode 100644 index 0000000..6e5794a Binary files /dev/null and b/SampleApp/SampleApp/.DS_Store differ diff --git a/SampleApp/SampleApp/AppDelegate.h b/SampleApp/SampleApp/AppDelegate.h new file mode 100644 index 0000000..05b4df2 --- /dev/null +++ b/SampleApp/SampleApp/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/SampleApp/SampleApp/AppDelegate.m b/SampleApp/SampleApp/AppDelegate.m new file mode 100644 index 0000000..0ee1fd9 --- /dev/null +++ b/SampleApp/SampleApp/AppDelegate.m @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import "AppDelegate.h" + +#import + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + + [[FluctSDK sharedInstance] setBannerConfiguration:@"0000000108"]; + + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/SampleApp/SampleApp/BannerViewController.h b/SampleApp/SampleApp/BannerViewController.h new file mode 100644 index 0000000..2211565 --- /dev/null +++ b/SampleApp/SampleApp/BannerViewController.h @@ -0,0 +1,13 @@ +// +// BannerViewController.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import + +@interface BannerViewController : UIViewController + +@end diff --git a/SampleApp/SampleApp/BannerViewController.m b/SampleApp/SampleApp/BannerViewController.m new file mode 100644 index 0000000..ebefc7e --- /dev/null +++ b/SampleApp/SampleApp/BannerViewController.m @@ -0,0 +1,64 @@ +// +// BannerViewController.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import "BannerViewController.h" + +#import + +@interface BannerViewController () + +@property (nonatomic) FluctBannerView *topBannerView; + +@end + +@implementation BannerViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (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.frame = topBannerFrame; + self.topBannerView.autoresizingMask = (UIViewAutoresizingFlexibleBottomMargin | + UIViewAutoresizingFlexibleLeftMargin | + UIViewAutoresizingFlexibleRightMargin); + [self.view addSubview:self.topBannerView]; +} + +- (void)viewWillLayoutSubviews +{ + CGFloat length = 0; + + if ([self respondsToSelector:@selector(topLayoutGuide)]) { + length = [[self topLayoutGuide] length]; + } + + CGRect frame = self.topBannerView.frame; + frame.origin.y = length; + self.topBannerView.frame = frame; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/FluctSDK b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/FluctSDK new file mode 100644 index 0000000..badc057 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/FluctSDK differ diff --git a/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctBannerView.h b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctBannerView.h new file mode 100644 index 0000000..6a0028b --- /dev/null +++ b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctBannerView.h @@ -0,0 +1,55 @@ +// +// FluctBannerView.h +// +// Fluct SDK +// Copyright 2011-2014 fluct, Inc. All rights reserved. +// + +/* + * バナー広告表示を行う + * 事前にFluctSDKで表示設定処理を行う必要があります + */ + +#import + +/** + コールバックタイプ + */ +typedef NS_ENUM(NSInteger, FluctBannerViewCallbackType) +{ + FluctBannerLoad = 0, + FluctBannerTap = 1, + FluctBannerOffline = 2, + FluctBannerMediaIdError = 3, + FluctBannerNoConfig = 4, + FluctBannerGetConfigError = 5, + FluctBannerOtherError = 100 +}; + +@protocol FluctBannerViewDelegate; + +@class BannerWebView; + +@interface FluctBannerView : UIView +{ +@private + BannerWebView *_bannerWebView; + BOOL _initialized; +} + +@property (nonatomic, retain) BannerWebView *bannerWebView; +@property (nonatomic, assign) id delegate; + +- (void)setMediaID:(NSString *)mediaID; +- (void)setRootViewController:(UIViewController*)rootViewController; +- (void)scrollViewDidScroll; +- (void)playMovie; +- (void)pauseMovie; + +@end + +@protocol FluctBannerViewDelegate +@optional +- (void)fluctBannerView:(FluctBannerView *)bannerView + callbackValue:(NSInteger)callbackValue; +@end diff --git a/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctInterstitialView.h b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctInterstitialView.h new file mode 100644 index 0000000..d78cbc1 --- /dev/null +++ b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctInterstitialView.h @@ -0,0 +1,45 @@ +// +// FluctInterstitialView.h +// +// Fluct SDK +// Copyright 2013-2014 fluct, Inc. All rights reserved. +// + +#import + +typedef NS_ENUM(NSInteger, FluctInterstitialViewCallbackType) +{ + FluctInterstitialShow = 0, + FluctInterstitialTap = 1, + FluctInterstitialClose = 2, + FluctInterstitialCancel = 3, + FluctInterstitialOffline = 4, + FluctInterstitialMediaIDError = 5, + FluctInterstitialNoConfig = 6, + FluctInterstitialSizeError = 7, + FluctInterstitialGetConfigError = 8, + FluctInterstitialOtherError = 100, +}; + +@protocol FluctInterstitialViewDelegate; + +@interface FluctInterstitialView : UIView + +- (id)init; +- (id)initWithMediaID:(NSString *)mediaID; +@property (nonatomic, copy, readwrite) NSString *mediaID; + +- (void)showInterstitialAd; +- (void)showInterstitialAdWithHexColor:(NSString *)hexColorString; +- (void)dismissInterstitialAd; +@property (nonatomic, copy, readwrite) NSString *hexColorString; + +@property (nonatomic, assign, readwrite) id delegate; + +@end + +@protocol FluctInterstitialViewDelegate +@optional +- (void)fluctInterstitialView:(FluctInterstitialView *)interstitialView + callbackValue:(NSInteger)callbackValue; +@end diff --git a/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctSDK.h b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctSDK.h new file mode 100644 index 0000000..0d5f5f6 --- /dev/null +++ b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Headers/FluctSDK.h @@ -0,0 +1,44 @@ +// +// FluctSDK.h +// +// Fluct SDK +// Copyright 2011-2014 fluct, Inc. All rights reserved. +// + +/* + * SDKの各処理を行う + * ・広告表示設定 (表示処理はFluctBannerViewにて行われる) + * ・コンバージョン通知処理 + */ + +#import +#import +#import + +@interface FluctSDK : NSObject + +@property (nonatomic, copy) NSString* applicationId; ++ (FluctSDK *)sharedInstance; + +/* + * setBannerConfiguration + * 広告表示設定を行う + * FluctBannerViewのインスタンス生成前にコールします + * + * arguments: + * (NSString*)mediaId : メディアID + * (NSString*)orientationType : 未使用(v2.0.0未満との互換性用) + */ +-(void)setBannerConfiguration:(NSString*)mediaId orientationType:(NSString*)orientationType; + +/* + * setBannerConfiguration + * 広告表示設定を行う + * FluctBannerViewのインスタンス生成前にコールします + * + * arguments: + * (NSString*)mediaId : メディアID + */ +-(void)setBannerConfiguration:(NSString*)mediaId; + +@end diff --git a/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Resources/Info.plist b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Resources/Info.plist new file mode 100644 index 0000000..979d92f --- /dev/null +++ b/SampleApp/SampleApp/FluctSDK/FluctSDK.framework/Resources/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + ja_JP + CFBundleExecutable + FluctSDK + CFBundleIdentifier + jp.fluct.FluctSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FluctSDK + CFBundlePackageType + FMWK + CFBundleShortVersionString + 4.3.1 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + MinimumOSVersion + 5.1.1 + NSHumanReadableCopyright + Copyright (c) fluct, Inc. All rights reserved. + UIDeviceFamily + + 1 + + + diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/Root.plist b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/Root.plist new file mode 100644 index 0000000..fa98306 --- /dev/null +++ b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/Root.plist @@ -0,0 +1,61 @@ + + + + + PreferenceSpecifiers + + + Title + Group + Type + PSGroupSpecifier + + + AutocapitalizationType + None + AutocorrectionType + No + DefaultValue + + IsSecure + + Key + name_preference + KeyboardType + Alphabet + Title + Name + Type + PSTextFieldSpecifier + + + DefaultValue + + Key + enabled_preference + Title + Enabled + Type + PSToggleSwitchSpecifier + + + DefaultValue + 0.5 + Key + slider_preference + MaximumValue + 1 + MaximumValueImage + + MinimumValue + 0 + MinimumValueImage + + Type + PSSliderSpecifier + + + StringsTable + Root + + diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close.png new file mode 100644 index 0000000..6f0fb49 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close@2x.png new file mode 100644 index 0000000..b527eb5 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close@3x.png new file mode 100644 index 0000000..fb9d72b Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_close@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail.png new file mode 100644 index 0000000..7e42396 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail@2x.png new file mode 100644 index 0000000..51feeee Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail@3x.png new file mode 100644 index 0000000..64e4791 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_detail@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line.png new file mode 100644 index 0000000..5c841b7 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line@2x.png new file mode 100644 index 0000000..7a4feb6 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line@3x.png new file mode 100644 index 0000000..709298d Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_line@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute.png new file mode 100644 index 0000000..d865d7f Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute@2x.png new file mode 100644 index 0000000..70aea8e Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute@3x.png new file mode 100644 index 0000000..02e9097 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_mute@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause.png new file mode 100644 index 0000000..a2a6da1 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause@2x.png new file mode 100644 index 0000000..a21cafc Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause@3x.png new file mode 100644 index 0000000..3dcf550 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_pause@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play.png new file mode 100644 index 0000000..5839eb2 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play@2.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play@2.png new file mode 100644 index 0000000..88a18cd Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play@2.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play@3x.png new file mode 100644 index 0000000..116af31 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_play@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay.png new file mode 100644 index 0000000..5e1d6f5 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay@2x.png new file mode 100644 index 0000000..4987dc9 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay@3x.png new file mode 100644 index 0000000..d0045e0 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_replay@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown.png new file mode 100644 index 0000000..330bcd6 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown@2x.png new file mode 100644 index 0000000..77c05b2 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown@3x.png new file mode 100644 index 0000000..8f6f2d1 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaledown@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup.png new file mode 100644 index 0000000..3e07f5d Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup@2x.png new file mode 100644 index 0000000..270e417 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup@3x.png new file mode 100644 index 0000000..eeccca5 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_scaleup@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip.png new file mode 100644 index 0000000..d6e2063 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip@2x.png new file mode 100644 index 0000000..a09df4a Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip@3x.png new file mode 100644 index 0000000..2d19952 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_skip@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound.png new file mode 100644 index 0000000..4e01fff Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound@2x.png new file mode 100644 index 0000000..272c6c9 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound@3x.png new file mode 100644 index 0000000..40b60e3 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_sound@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter.png new file mode 100644 index 0000000..1bc319e Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter@2x.png new file mode 100644 index 0000000..1d09334 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter@3x.png new file mode 100644 index 0000000..d875123 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/btn_twitter@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/en.lproj/Root.strings b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/en.lproj/Root.strings new file mode 100644 index 0000000..82baa7c Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/en.lproj/Root.strings differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad.png new file mode 100644 index 0000000..cfa2088 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad@2x.png new file mode 100644 index 0000000..c9c4294 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad@3x.png new file mode 100644 index 0000000..32522e2 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_ad@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr.png new file mode 100644 index 0000000..c5cd6b6 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr@2x.png new file mode 100644 index 0000000..3482545 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr@3x.png new file mode 100644 index 0000000..ae99b10 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/icon_pr@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/ja.lproj/Root.strings b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/ja.lproj/Root.strings new file mode 100644 index 0000000..ec29248 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/ja.lproj/Root.strings differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot.png new file mode 100644 index 0000000..51dd5c4 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot@2x.png new file mode 100644 index 0000000..8e9aab3 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot@3x.png new file mode 100644 index 0000000..eab09c5 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_dot@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left.png new file mode 100644 index 0000000..7ce6e3f Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left@2x.png new file mode 100644 index 0000000..e0d40eb Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left@3x.png new file mode 100644 index 0000000..1c387aa Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_left@3x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right.png new file mode 100644 index 0000000..779179c Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right@2x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right@2x.png new file mode 100644 index 0000000..edab832 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right@2x.png differ diff --git a/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right@3x.png b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right@3x.png new file mode 100644 index 0000000..16f5f03 Binary files /dev/null and b/SampleApp/SampleApp/FluctSDK/GSMMovieResources.bundle/seekbar_right@3x.png differ diff --git a/SampleApp/SampleApp/Images.xcassets/AppIcon.appiconset/Contents.json b/SampleApp/SampleApp/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..eeea76c --- /dev/null +++ b/SampleApp/SampleApp/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,73 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SampleApp/SampleApp/Images.xcassets/LaunchImage.launchimage/Contents.json b/SampleApp/SampleApp/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..6f870a4 --- /dev/null +++ b/SampleApp/SampleApp/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,51 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "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" : "2x" + }, + { + "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", + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/SampleApp/SampleApp/InterstitialViewController.h b/SampleApp/SampleApp/InterstitialViewController.h new file mode 100644 index 0000000..c1586c3 --- /dev/null +++ b/SampleApp/SampleApp/InterstitialViewController.h @@ -0,0 +1,13 @@ +// +// InterstitialViewController.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import + +@interface InterstitialViewController : UIViewController + +@end diff --git a/SampleApp/SampleApp/InterstitialViewController.m b/SampleApp/SampleApp/InterstitialViewController.m new file mode 100644 index 0000000..02f69b4 --- /dev/null +++ b/SampleApp/SampleApp/InterstitialViewController.m @@ -0,0 +1,125 @@ +// +// InterstitialViewController.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import "InterstitialViewController.h" + +#import + +@interface InterstitialViewController () + +@property (nonatomic) FluctInterstitialView *interstitialView; +- (void) recursiveRequest; +@end + +@implementation InterstitialViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (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 showInterstitialAd]; +} + +- (void)fluctInterstitialView:(FluctInterstitialView *)interstitialView + callbackValue:(NSInteger)callbackValue +{ + NSLog(@"Interstitial callback : %ld", (long)callbackValue); + + switch (callbackValue) { + case FluctInterstitialShow: + break; + case FluctInterstitialTap: + break; + case FluctInterstitialClose: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + case FluctInterstitialCancel: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + case FluctInterstitialOffline: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + case FluctInterstitialMediaIDError: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + case FluctInterstitialNoConfig: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + case FluctInterstitialSizeError: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + case FluctInterstitialGetConfigError: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + case FluctInterstitialOtherError: + { + self.interstitialView.delegate = nil; + self.interstitialView = nil; + break; + } + default: + break; + } +} + +- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration +{ + [self.interstitialView dismissInterstitialAd]; + self.interstitialView = nil; +} + +@end diff --git a/SampleApp/SampleApp/ManyBannerViewController.h b/SampleApp/SampleApp/ManyBannerViewController.h new file mode 100644 index 0000000..34259b6 --- /dev/null +++ b/SampleApp/SampleApp/ManyBannerViewController.h @@ -0,0 +1,13 @@ +// +// ManyBannerViewController.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import + +@interface ManyBannerViewController : UIViewController + +@end diff --git a/SampleApp/SampleApp/ManyBannerViewController.m b/SampleApp/SampleApp/ManyBannerViewController.m new file mode 100644 index 0000000..dc43db2 --- /dev/null +++ b/SampleApp/SampleApp/ManyBannerViewController.m @@ -0,0 +1,96 @@ +// +// ManyBannerViewController.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import "ManyBannerViewController.h" + +#import + +@interface ManyBannerViewController () + +@property (nonatomic) FluctBannerView *topBannerView; +@property (nonatomic) FluctBannerView *bottomBannerView; + +@end + +@implementation ManyBannerViewController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (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]; + + CGRect bottomBannerFrame = CGRectMake(0.0, 0.0, 320.0, 50.0); + bottomBannerFrame.origin.x = (CGRectGetWidth(self.view.bounds) - CGRectGetWidth(bottomBannerFrame)) / 2.0; + bottomBannerFrame.origin.y = CGRectGetMaxY(self.view.bounds) - CGRectGetHeight(bottomBannerFrame); + self.bottomBannerView = [[FluctBannerView alloc] initWithFrame:bottomBannerFrame]; + self.bottomBannerView.autoresizingMask = (UIViewAutoresizingFlexibleTopMargin | + UIViewAutoresizingFlexibleLeftMargin | + UIViewAutoresizingFlexibleRightMargin); + self.bottomBannerView.delegate = self; + self.bottomBannerView.tag = 200; + [self.view addSubview:self.bottomBannerView]; +} + +- (void)viewWillLayoutSubviews +{ + CGFloat length = 0; + + if ([self respondsToSelector:@selector(topLayoutGuide)]) { + length = [[self topLayoutGuide] length]; + } + + CGRect frame = self.topBannerView.frame; + frame.origin.y = length; + self.topBannerView.frame = frame; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +# 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; + } +} + +@end diff --git a/SampleApp/SampleApp/MovieBannerScrollViewController.h b/SampleApp/SampleApp/MovieBannerScrollViewController.h new file mode 100644 index 0000000..efefc40 --- /dev/null +++ b/SampleApp/SampleApp/MovieBannerScrollViewController.h @@ -0,0 +1,13 @@ +// +// MovieBannerScrollViewController.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2015年 fluct, Inc. All rights reserved. +// + +#import + +@interface MovieBannerScrollViewController : UIViewController + +@end diff --git a/SampleApp/SampleApp/MovieBannerScrollViewController.m b/SampleApp/SampleApp/MovieBannerScrollViewController.m new file mode 100644 index 0000000..a12ca6c --- /dev/null +++ b/SampleApp/SampleApp/MovieBannerScrollViewController.m @@ -0,0 +1,77 @@ +// +// MovieBannerScrollViewController.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2015年 fluct, Inc. All rights reserved. +// + +#import "MovieBannerScrollViewController.h" +#import + +@interface MovieBannerScrollViewController () + +@property UIScrollView *scrollView; +@property (nonatomic) FluctBannerView *bannerView; + +@end + +@implementation MovieBannerScrollViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. + self.scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame]; + self.scrollView.contentSize = CGSizeMake(self.scrollView.frame.size.width, 1500.0); + self.scrollView.delegate = self; + [self.view addSubview:self.scrollView]; + + + self.bannerView = [[FluctBannerView alloc] initWithFrame:CGRectMake(0.0, 700.0, 320.0, 170.0)]; + [self.bannerView setMediaID:@"0000005096"]; + self.bannerView.delegate = self; + [self.scrollView addSubview:self.bannerView]; + [self.bannerView setRootViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; + + UILabel *naviLabel = [[UILabel alloc] initWithFrame:CGRectMake((self.view.frame.size.width - 260.0)/2, + 100.0, + 260.0, + 50.0)]; + naviLabel.text = @"下方向にスクロールしてください"; + [self.scrollView addSubview:naviLabel]; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +# pragma mark FluctBannerView delegate method +- (void)fluctBannerView:(FluctBannerView *)bannerView + callbackValue:(NSInteger)callbackValue { + switch (callbackValue) { + case FluctBannerLoad: + // 広告が正常に読み込まれた場合の処理 + break; + case FluctBannerOffline: + case FluctBannerMediaIdError: + case FluctBannerNoConfig: + case FluctBannerGetConfigError: + case FluctBannerOtherError: + // いずれかの理由で広告表示ができない場合の処理 + break; + default: + break; + } +} + +#pragma mark UIScrollViewDelegate +- (void) scrollViewDidScroll:(UIScrollView *)scrollView +{ + if (self.bannerView) + [self.bannerView scrollViewDidScroll]; +} + + + +@end diff --git a/SampleApp/SampleApp/MovieBannerTableViewCell.h b/SampleApp/SampleApp/MovieBannerTableViewCell.h new file mode 100644 index 0000000..2946f17 --- /dev/null +++ b/SampleApp/SampleApp/MovieBannerTableViewCell.h @@ -0,0 +1,15 @@ +// +// MovieBannerTableViewCell.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2015年 fluct, Inc. All rights reserved. +// + +#import +#import + + +@interface MovieBannerTableViewCell : UITableViewCell +@property FluctBannerView *adView; +@end diff --git a/SampleApp/SampleApp/MovieBannerTableViewCell.m b/SampleApp/SampleApp/MovieBannerTableViewCell.m new file mode 100644 index 0000000..96e5872 --- /dev/null +++ b/SampleApp/SampleApp/MovieBannerTableViewCell.m @@ -0,0 +1,43 @@ +// +// MovieBannerTableViewCell.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2015年 fluct, Inc. All rights reserved. +// + +#import "MovieBannerTableViewCell.h" + +@implementation MovieBannerTableViewCell + +- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { + self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; + if (self) { + [self setup]; + } + return self; +} + +- (void)awakeFromNib { + // Initialization code + [self setup]; +} + +- (void)setSelected:(BOOL)selected animated:(BOOL)animated { + [super setSelected:selected animated:animated]; + + // Configure the view for the selected state +} + +- (void)setup { + self.adView = [[FluctBannerView alloc] initWithFrame:CGRectZero]; + [self.contentView addSubview:self.adView]; +} + +- (void)layoutSubviews +{ + [super layoutSubviews]; + self.adView.frame = CGRectMake(0, 0, 320, 110); + [self.adView setNeedsLayout]; +} +@end diff --git a/SampleApp/SampleApp/MovieBannerTableViewController.h b/SampleApp/SampleApp/MovieBannerTableViewController.h new file mode 100644 index 0000000..1980c67 --- /dev/null +++ b/SampleApp/SampleApp/MovieBannerTableViewController.h @@ -0,0 +1,13 @@ +// +// MovieBannerTableViewController.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2015年 fluct, Inc. All rights reserved. +// + +#import + +@interface MovieBannerTableViewController : UITableViewController + +@end diff --git a/SampleApp/SampleApp/MovieBannerTableViewController.m b/SampleApp/SampleApp/MovieBannerTableViewController.m new file mode 100644 index 0000000..5a3785b --- /dev/null +++ b/SampleApp/SampleApp/MovieBannerTableViewController.m @@ -0,0 +1,84 @@ +// +// MovieBannerTableViewController.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2015年 fluct, Inc. All rights reserved. +// + +#import "MovieBannerTableViewController.h" +#import "MovieBannerTableViewCell.h" + +@interface MovieBannerTableViewController () +@property NSMutableArray *dataArray; +@end + +@implementation MovieBannerTableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + self.tableView.rowHeight = 110; + self.dataArray = [NSMutableArray array]; + for (int i=0; i<20; i++) { + NSString *labelTxt; + if (i == 10) { + labelTxt = @"Banner"; + } else { + labelTxt = @"Sample"; + } + [self.dataArray addObject:[NSString stringWithFormat:@"%@%d", labelTxt, i]]; + } +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { + // Return the number of sections. + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + // Return the number of rows in the section. + return [self.dataArray count]; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + + UITableViewCell *cell; + if ([[self.dataArray objectAtIndex:indexPath.row] rangeOfString:@"Banner"].location != NSNotFound) { + MovieBannerTableViewCell *bannerCell = [tableView dequeueReusableCellWithIdentifier:@"bannerCellIdentifier"]; + if (!bannerCell) { + bannerCell = [[MovieBannerTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"bannerCellIdentifier"]; + [bannerCell.adView setMediaID:@"0000005096"]; + bannerCell.adView.delegate = self; + [bannerCell.adView setRootViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; + } + cell = bannerCell; + } else { + UITableViewCell *normalCell = [tableView dequeueReusableCellWithIdentifier:@"normalCellIdentifier"]; + if (!normalCell) { + normalCell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"normalCellIdentifier"]; + } + normalCell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row]; + cell = normalCell; + } + return cell; +} + +#pragma mark UIScrollViewDelegate +- (void) scrollViewDidScroll:(UIScrollView *)scrollView +{ + for (UITableViewCell *cell in self.tableView.visibleCells) { + if ([cell class] == [MovieBannerTableViewCell class]) { + [[(MovieBannerTableViewCell *)cell adView] scrollViewDidScroll]; + } + } +} + +@end diff --git a/SampleApp/SampleApp/SampleApp-Info.plist b/SampleApp/SampleApp/SampleApp-Info.plist new file mode 100644 index 0000000..1e6e1ab --- /dev/null +++ b/SampleApp/SampleApp/SampleApp-Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + jp.co.voyagegroup.fluct.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main_iPhone + UIMainStoryboardFile~ipad + Main_iPad + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/SampleApp/SampleApp/SampleApp-Prefix.pch b/SampleApp/SampleApp/SampleApp-Prefix.pch new file mode 100644 index 0000000..c000514 --- /dev/null +++ b/SampleApp/SampleApp/SampleApp-Prefix.pch @@ -0,0 +1,22 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif + +#ifdef DEBUG +# define NSLog(...) NSLog(__VA_ARGS__); +#else +# define NSLog(...) +#endif \ No newline at end of file diff --git a/SampleApp/SampleApp/ViewController.h b/SampleApp/SampleApp/ViewController.h new file mode 100644 index 0000000..3b00fcb --- /dev/null +++ b/SampleApp/SampleApp/ViewController.h @@ -0,0 +1,13 @@ +// +// ViewController.h +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + +@end diff --git a/SampleApp/SampleApp/ViewController.m b/SampleApp/SampleApp/ViewController.m new file mode 100644 index 0000000..fe9f258 --- /dev/null +++ b/SampleApp/SampleApp/ViewController.m @@ -0,0 +1,29 @@ +// +// ViewController.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/SampleApp/SampleApp/en.lproj/InfoPlist.strings b/SampleApp/SampleApp/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/SampleApp/SampleApp/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/SampleApp/SampleApp/en.lproj/Main_iPad.storyboard b/SampleApp/SampleApp/en.lproj/Main_iPad.storyboard new file mode 100644 index 0000000..b994a1f --- /dev/null +++ b/SampleApp/SampleApp/en.lproj/Main_iPad.storyboard @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SampleApp/SampleApp/en.lproj/Main_iPhone.storyboard b/SampleApp/SampleApp/en.lproj/Main_iPhone.storyboard new file mode 100644 index 0000000..988859c --- /dev/null +++ b/SampleApp/SampleApp/en.lproj/Main_iPhone.storyboard @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SampleApp/SampleApp/main.m b/SampleApp/SampleApp/main.m new file mode 100644 index 0000000..88c620b --- /dev/null +++ b/SampleApp/SampleApp/main.m @@ -0,0 +1,18 @@ +// +// main.m +// SampleApp +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/SampleApp/SampleAppTests/SampleAppTests-Info.plist b/SampleApp/SampleAppTests/SampleAppTests-Info.plist new file mode 100644 index 0000000..209ad3f --- /dev/null +++ b/SampleApp/SampleAppTests/SampleAppTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.voyagegroup.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/SampleApp/SampleAppTests/SampleAppTests.m b/SampleApp/SampleAppTests/SampleAppTests.m new file mode 100644 index 0000000..3d97851 --- /dev/null +++ b/SampleApp/SampleAppTests/SampleAppTests.m @@ -0,0 +1,34 @@ +// +// SampleAppTests.m +// SampleAppTests +// +// Fluct SDK +// Copyright (c) 2014 fluct, Inc. All rights reserved. +// + +#import + +@interface SampleAppTests : XCTestCase + +@end + +@implementation SampleAppTests + +- (void)setUp +{ + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown +{ + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/SampleApp/SampleAppTests/en.lproj/InfoPlist.strings b/SampleApp/SampleAppTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/SampleApp/SampleAppTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git "a/fluct\345\272\203\345\221\212\351\205\215\344\277\241SDK\345\260\216\345\205\245\344\273\225\346\247\230\346\233\270(iOS).pdf" "b/fluct\345\272\203\345\221\212\351\205\215\344\277\241SDK\345\260\216\345\205\245\344\273\225\346\247\230\346\233\270(iOS).pdf" new file mode 100644 index 0000000..6aa3460 Binary files /dev/null and "b/fluct\345\272\203\345\221\212\351\205\215\344\277\241SDK\345\260\216\345\205\245\344\273\225\346\247\230\346\233\270(iOS).pdf" differ