プロジェクトへ appsflyer-unity-plugin を追加する

プロジェクトへSDKを追加

プラグインをプロジェクトに追加するには、unitypackage を追加するUnity Package Manager を使用します。

注意: プラグインは、The External Dependency Manager for Unity(EDM4U(以前の Play Services Resolver / Jar Resolver)でビルドされています。

  • The External Dependency Manager for Unityは、デフォルトで appsflyer-unity-plugin と一緒に割り振られています。
  • これにより、プラグインとプロジェクト内の他のプラグイン間の依存関係の競合を解決し、実装プロセスが容易になります。
  • > appsflyer-unity-plugin.v*.unitypackage を追加することで、AppsFlyer SDKとThe External Dependency Manager for Unityの両方で必要なすべてのアセットを自動でインポートできます。

Unitypackageを使用する場合

  1. Clone / download the plugin repository.
  2. Import the appsflyer-unity-plugin-*.unitypackage or appsflyer-unity-plugin-strict-mode.*.unitypackage file from the strict-mode-sdk folder for the Strict version of the plugin, into your Unity project.
  3. Assets >> Import Package >> Custom Package へ移動します。
  4. Select the appsflyer-unity-plugin-*.unitypackage file or the appsflyer-unity-plugin-strict-mode.*.unitypackage file from the strict-mode-sdk folder for the Strict version of the plugin.

注意:The External Dependency Manager for Unityを含めない場合は、このインストールの手順を参照してください。

Unity Package Managerを使用する場合

  1. 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.

  2. 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"
  1. 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.


unity-jar-resolverを使用しない場合

  1. > appsflyer-unity-plugin.v*.unitypackage をプロジェクトにインポートし、 EDM4U ボックスのチェックを必ず外してください。

  2. 必要なAndroidの依存関係をダウンロードし、Assets / Plugins / Androidフォルダに追加してください:

    1. AppsFlyer Android SDK
    2. AppsFlyer Unity Wrapper
    3. Google Installreferrer library
  3. 必要なiOSの依存関係をダウンロードし、Assets/Plugins/iOS/AppsFlyerフォルダに追加してください:

    1. Static libraryとしてiOS SDKをダウンロードします。
    2. ダウンロードしたファイルを解凍します。
    3. すべてのファイルを Assets/Plugins/iOS/AppsFlyer フォルダにドラッグ&ドロップします。