Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 3.77 KB

Installation.md

File metadata and controls

73 lines (59 loc) · 3.77 KB
title category parentDoc order hnameden
Installation
5f9705393c689a065c409b23
6370c9e2441a4504d6bca3bd
1
false

Adding appsflyer-unity-plugin to your project

Adding the SDK to your project

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-plugin by 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*.unitypackage will automatically import all the assets required for both the AppsFlyer SDK and the External Dependency Manager for Unity.

Using unitypackage

  1. Clone / download the plugin repository.
  2. Import the appsflyer-unity-plugin-*.unitypackage into your Unity project.
  3. Go to Assets >> Import Package >> Custom Package.
  4. Select the appsflyer-unity-plugin-*.unitypackage file.

Note: If you do not wish to include The External Dependency Manager for Unity, refer to the steps of this installation.

Using Unity Package Manager

  1. Go to your packages folder, and open manifest.json
  2. Add Google game package registery fpr the external dependency Manager.
  "scopedRegistries": [
    {
      "name": "Game Package Registry by Google",
      "url": "https://unityregistry-pa.googleapis.com",
      "scopes": [
        "com.google"
      ]
    }
  ]

Note: If you do not wish to include The External Dependency Manager for Unity, refer to steps 2 & 3 here.

  1. Add appsflyer-unity-plugin in the dependency : Add this line for the regular mode
 "appsflyer-unity-plugin": "https://github.com/AppsFlyerSDK/appsflyer-unity-plugin.git#upm"

Or this line for Strict mode :

 "appsflyer-unity-plugin": "https://github.com/AppsFlyerSDK/appsflyer-unity-plugin.git#Strict-upm"

Installation without unity-jar-resolver

  1. import appsflyer-unity-plugin.v*.unitypackage to your project but make sure to uncheck the EDM4U dependencies.

  1. Download and add the required Android dependencies to the Assets/Plugins/Android folder:
    1. AppsFlyer Android SDK
    2. AppsFlyer Unity Wrapper
    3. Google Installreferrer library
  2. Download and add the required iOS dependencies to the Assets/Plugins/iOS/AppsFlyer folder:
    1. Download the iOS SDK as a static library
    2. Unzip the file you downloaded
    3. Drag & drop all the files into the Assets/Plugins/iOS/AppsFlyer folder