| title | Installation |
|---|---|
| category | 5f9705393c689a065c409b23 |
| parentDoc | 6370c9e2441a4504d6bca3bd |
| order | 0 |
| hnameden | false |
In order to add the plugin to your project, you can either add the unitypackage or use Unity Package Manager.
Note: The plugin is built with The External Dependency Manager for Unity (EDM4U) (formerly Play Services Resolver / Jar Resolver)
- The External Dependency Manager for Unity is distributed with the
appsflyer-unity-pluginby default. - This will ease the integration process, by resolving dependency conflicts between your plugin and other plugins in your project.
- Adding the
appsflyer-unity-plugin.v*.unitypackagewill automatically import all the assets required for both the AppsFlyer SDK and the External Dependency Manager for Unity.
- Clone / download the plugin repository.
- Import the
appsflyer-unity-plugin-*.unitypackageorappsflyer-unity-plugin-strict-mode.*.unitypackagefile from thestrict-mode-sdkfolder for the Strict version of the plugin, into your Unity project. - Go to Assets >> Import Package >> Custom Package.
- Select the
appsflyer-unity-plugin-*.unitypackagefile or theappsflyer-unity-plugin-strict-mode.*.unitypackagefile from thestrict-mode-sdkfolder for the Strict version of the plugin.
Note: If you do not wish to include The External Dependency Manager for Unity, refer to the steps of this installation.
-
Follow Google's guide in order to integrate UPM (Unity Package Manager). Note: If you do not wish to include The External Dependency Manager for Unity, refer to steps 2 & 3 here.
-
Add appsflyer-unity-plugin in the dependency : Add this line for the latest version of the regular mode
"appsflyer-unity-plugin": "https://github.com/AppsFlyerSDK/appsflyer-unity-plugin.git#upm"
Or this line for latest version of the Strict mode :
"appsflyer-unity-plugin": "https://github.com/AppsFlyerSDK/appsflyer-unity-plugin.git#Strict-upm"
- Download the External Dependency Manager for Unity to be able to resolve our Android / iOS dependencies.
Note: To choose an earlier version and not the latest, you can replace the upm or Strict-upm with the specific version, v6.10.30 for the regular version of 6.10.30 or Strict-v6.10.30 for the Strict version of 6.10.30.
- If you do not wish to include The External Dependency Manager for Unity then follow these steps:
- import
appsflyer-unity-plugin.v*.unitypackageto your project but make sure to uncheck theEDM4Udependencies.
- Download and add the required Android dependencies to the Assets/Plugins/Android folder:
- AppsFlyer Android SDK
- AppsFlyer Unity Wrapper — Billing Library 7, or unity-wrapper-6.17.91 for Billing Library 8
- Google Installreferrer library
- Download and add the required iOS dependencies to the Assets/Plugins/iOS/AppsFlyer folder:
- Download the iOS SDK as a static library
AppsFlyerLib.xcframework.zip - Unzip the file you downloaded
- Drag & drop all the files into the
Assets/Plugins/iOS/AppsFlyerfolder
- Download the iOS SDK as a static library
