The sample app is ready for use but you need to build an iOS project to test it.
Please follow step 4 - 7 in order to build the project.
If you want test the Chartboost integration please refer to the Chartboost section in the end of this readme file.
Using Applicasa - iOS Unity
You need Xcode in order to build your project. (Download Xcode from the app store https://developer.apple.com/xcode/).
- Download Unity SDK (http://main.applicasa.com).
- Unzip Applicasa_Unity_X.zip & Copy folders to main project root.
- Unzip ApplicasaFramework.zip from Assest/Plugins/iOS/.
- Make sure you edit your bundle Identifier in the Build Setting-> iOS-> Player Setting.
- If you use Facebook please refer to the Applicasa Facebook guide now (in the end of this readme file).
- Click “Build & Run” in unity and then cancel when it reaches Xcode.
- Copy the 3 folders from Assest/Plugins/iOS/ (ApplicasaFramework, ApplicasaSDK, ApplicasaUnity) to your Xcode project under classes folder (Make sure you drag/copy the files to Xcode and not in finder, then select “Copy files” option).
- Go to: Target -> Build Phases -> Link Binary with Libraries -> "+" -> Choose StoreKit.framework and libsqlite3.0.dylib.
- Go to: Build settings -> search ”other linker flags” - > "+" -> Add -ObjC -all_load.
####Done! Run the project!
-
Check the Xcode log to see that everything is ready. Good luck!
LiLog 11:29:39.530: ENABLE_SANDBOX = YES: sandbox.applicasa.com LiLog 11:29:39.530: Applicasa Debug OFF ... LiLog 11:29:40.395: Finished Initialize Applicasa LiLog 11:29:47.532: Finished Initialize Applicasa with In App Purchase LiLog 11:29:47.532: Applicasa session start LiLog 11:29:47.616: Checking promo For Event userReturnSession = 1201 LiLog 11:29:47.621: Checking promo For Event appStart = 1100
Don’t forget: When you re-build your Unity project ALWAYS CHOOSE APPEND and NOT REPLACE.
##Facebook:
-
Open the file /Assets/Editor/ApplicasaPostProcess.cs.
-
Change the contents of the constant “FACEBOOKID” to your own application’s facebook App Id.
- This will automatically setup facebook connect into your xcode project in your next build.
##Chartboost
You can use Chartboost messages in Applicasa’s promotion, you just need a Chartboost account and set one of your promotion to “Chartboost” type.
- Download & unzip both Applicasa’s Chartboost framework (https://s3.amazonaws.com/applicasamaterials/LiChartboost.framework.zip) and Chartboost library (https://help.chartboost.com/downloads/ios) and drag and drop the folders to your xCode project under ApplicasaFramework folder. (Select Copy files option)
- If you use the sample app both files are located in the project under Assets/Plugins/iOS/ApplicasaFramework/LiChartboost.framework
-
Open Classes/ApplicasaSDK/LiManager/LiConfig.h.
-
Edit the file:
define ENABLE_CHARTBOOST 1
define CHARTBOOST_ID @"App ID" (Chartboost sample app id for test:4f21c409cd1cb2fb7000001b)
define CHARTBOOST_SIGNATURE @"App signature" (sample for test: 92e2de2fd7070327bdeb54c15a5295309c6fcd2d)
- Go to: Target -> Build Phases -> Link Binary with Libraries -> "+" -> Choose adSupport and set it as optional.