IOS package build procedure
Please be created in accordance with the following procedure.
- Create a xcodeproj
- Add Adapter
- Build Settings settings
- If you are introduced manually
1. Create a xcodeproj
- Choose> Build Settings - of the menu bar File.
- Select the iOS of the Platform.
- PlayServicesResolver-> Editor-> Please describe the ADNW to be used to GNDependencies. * (Please delete every iosPods tag if you do not want to use the cocoapods)
<iosPods>
<iosPod name="AdColony" version="~> 3.3.5" />
<iosPod name="AppLovinSDK" version="~> 5.1.1" />
<iosPod name="MaioSDK" version="~> 1.4.0" />
<iosPod name="NendSDK_iOS" version="~> 5.0.2" />
<iosPod name="TapjoySDK" version="~> 12.0.0" />
<iosPod name="UnityAds" version="~> 2.3.0" />
<iosPod name="VungleSDK-iOS" version="~> 6.2.0" />
<iosPod name="Bytedance-UnionAD" version="~> 2.4.6.7" />
<iosPod name="Geniee-iOS-SDK" />
</iosPods>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- If you have not edited the like Bundle Identifier, press the
Player Settings
, please edit the setting you want.- Configuration -> Target You can select the
Device SDK
orSimulator SDK
in the SDK. Please be switched in response to the execution environment. - Target minimum Please be set to
9.0
or more iOS Version.
- Configuration -> Target You can select the
Press the Build
.- (If you use the cocoapods) Run in the dir with xcode project
pod update
- ensure that it is the library is downloaded to the bottom of the Pods / Pods open the Xcode project side of xcworkspece side (if you are using cocoapods).
2. Add Adapter
(Xcworkspece if it is cocoapods use, non-cocoapods is xcodeproj) project, depending on the framework of the added ad network, please add drag-and-drop to the adapter to the folder.
Adapter, please obtained from the following uri.
https://github.com/geniee-ssp/Geniee-iOS-SDK/tree/master/rewardMediation
- In the case of UnityAds
- GNSAdapterUnityAdsRewardVideoAd.h
- GNSAdapterUnityAdsRewardVideoAd.m
- In the case of AdColony
- GNSAdapterAdColonyRewardVideoAd.h
- GNSAdapterAdColonyRewardVideoAd.m
- In the case of Maio
- GNSAdapterMaioRewardVideoAd.h
- GNSAdapterMaioRewardVideoAd.m
- In the case of AppLovin
- GNSAdapterAppLovinRewardVideoAd.h
- GNSAdapterAppLovinRewardVideoAd.m
- In the case of CAReward
- GNSAdapterCARewardRewardVideoAd.h
- GNSAdapterCARewardRewardVideoAd.m
- In the case of Tapjoy
- GNSAdapterTapjoyRewardVideoAd.h
- GNSAdapterTapjoyRewardVideoAd.m
- In the case of Vungle
- GNSAdapterVungleRewardVideoAd.h
- GNSAdapterVungleRewardVideoAd.m
- In the case of Nend
- GNSAdapterNendRewardVideoAd.h
- GNSAdapterNendRewardVideoAd.m
- In the case of Amoad
- GNSAdapterAmoadRewardVideoAd.h
- GNSAdapterAmoadRewardVideoAd.m
- In the case of TikTok
- GNSAdapterTikTokRewardVideoAd.h
- GNSAdapterTikTokRewardVideoAd.m
Please add drag-and-drop the rewardMediation directory directly under the project to enable all.
2-1. Info.plist editing (if you use the AppLovin only)
If you want to use the AppLovin only, please add the following to the Info.plist (Open as> Source Code) (with respect to the value of XXXXXX please contact us to Geniee charge).
<key>AppLovinSdkKey</key>
<string>XXXXXX</string>
2
3
2-2. Video ad screen orientation setting (if you use the CAReward only)
Set the CAReward video ad screen orientation to suit the application screen orientation of the following portion of the adapter file GNSAdapterCARewardRewardVideoAd.m.
- Portrait: portrait
- Landscape: Landscape
- (id<GNSAdNetworkExtras>)networkExtrasParameter:
(GNSAdNetworkExtraParams *) parameter
{
...
// Please set orientation to "portrait" or "landscape" with your app's orientation
extra.orientation = @"portrait";
...
}
2
3
4
5
6
7
8
9
2-3. Info.plist editing (if you use the Tapjoy only)
Please add the following to the <app name>
Info.plist (Open as> Source Code) file of your Xcode project:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsLocalNetworking</key>
<true/>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
2
3
4
5
6
7
8
This is because the SDK of Tapjoy to be able to display the content that has been cached on the device. If you do not include this, SDK of Tapjoy will need to stream all of the content from the server of Tapjoy.
3. Target -> Build Settings (All)
Enable Modules (C and Objective-C)
Please set to YES.
introduction in Cocoapods will be more.
- CAReward, because AMoAd we become with the corresponding non-Cocoapods, introduction, please refer to the introduction in the manual below.