Preface :
1. Make sure that the MonoDevelop
Target Framework for compilation is Mono / .NET 3.5
.
2. GooglePlayServices version must be at least 8.1.
3. The plugin will work from Appoxee Android SDK 2.6.1 and onwards.
Integration Instructions :
Phase 1
- Download the Appoxee Android Unity Plugin Zip file for the Download Page.
- Extract the zip file to path :
UnityProjectName/Assets
- Make sure this is the directory structure :
- UnityProjectName/Assets/Plugins/AppoxeeAndroidBridge.cs
- UnityProjectName/Assets/Plugins/IAppoxeeCallable.cs
- UnityProjectName/Assets/Plugins/Android/appoxee-sdk.jar
- UnityProjectName/Assets/Plugins/Android/appoxee-unity-plugin.jar
- UnityProjectName/Assets/Plugins/Android/AppoxeeSDK
- UnityProjectName/Assets/Plugins/Android/AppoxeeSDK/AndroidManifest.xml
- UnityProjectName/Assets/Plugins/Android/AppoxeeSDK/project.properties
- UnityProjectName/Assets/Plugins/Android/AppoxeeSDK/libs
- UnityProjectName/Assets/Plugins/Android/AppoxeeSDK/res
- UnityProjectName/Assets/Plugins/Android/google-play-services_lib
- Make sure that you replace in AndroidManifest.xml the "YOUR_PACKAGE_NAME" placeholder to your reverse-domain package name as you set in the Unity IDE
- Open your Unity project.
Phase 2
- In your main Script, declare a variable from the type AppoxeeAndroidBridge
- In your main script , in your onEnable() method , init the AppoxeeAndroidBridge using :
AppoxeePlugin = AppoxeeAndroidBridge.CreateAppoxeeAndroidBridge(this, "YOUR_SDK_KEY", "YOUR_SECRET_KEY");
- API Samples can be seen in the following link