実装
プロジェクトへ 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を使用する場合
- Clone / download the plugin repository.
- Import the
appsflyer-unity-plugin-*.unitypackage
orappsflyer-unity-plugin-strict-mode.*.unitypackage
file from thestrict-mode-sdk
folder for the Strict version of the plugin, into your Unity project. - Assets >> Import Package >> Custom Package へ移動します。
- Select the
appsflyer-unity-plugin-*.unitypackage
file or theappsflyer-unity-plugin-strict-mode.*.unitypackage
file from thestrict-mode-sdk
folder for the Strict version of the plugin.
注意:The External Dependency Manager for Unityを含めない場合は、このインストールの手順を参照してください。
Unity Package Managerを使用する場合
-
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.
unity-jar-resolverを使用しない場合
- The External Dependency Manager for Unityを含めない場合は、次の手順に従います:
-
>
appsflyer-unity-plugin.v*.unitypackage
をプロジェクトにインポートし、EDM4U
ボックスのチェックを必ず外してください。
-
必要なAndroidの依存関係をダウンロードし、Assets / Plugins / Androidフォルダに追加してください:
-
必要なiOSの依存関係をダウンロードし、Assets/Plugins/iOS/AppsFlyerフォルダに追加してください:
- Static libraryとしてiOS SDKをダウンロードします。
- ダウンロードしたファイルを解凍します。
- すべてのファイルを
Assets/Plugins/iOS/AppsFlyer
フォルダにドラッグ&ドロップします。
更新済 9日前