Menambahkan appsflyer-unity-plugin ke proyek Anda

Menambahkan SDK ke proyek Anda

Untuk menambahkan plugin ke proyek Anda, Anda dapat menambahkan unitypackage atau menggunakan Pengelola Paket Unity.

Catatan: Plugin dibuat dengan The External Dependency Manager for Unity (EDM4U) (sebelumnya Play Services Resolver/Jar Resolver)

  • External Dependency Manager for Unity didistribusikan appsflyer-unity-plugin secara default.
  • Hal ini memudahkan proses integrasi dengan menyelesaikan konflik ketergantungan antara plugin Anda dan plugin lain dalam proyek Anda.
  • Menambahkan appsflyer-unity-plugin.v*.unitypackage akan secara otomatis mengimpor semua aset yang diperlukan untuk AppsFlyer SDK dan the External Dependency Manager for Unity.

Menggunakan unitypackage

  1. Klon/unduh repositori plugin.
  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. Buka 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.

Catatan: Jika Anda tidak ingin menyertakan External Dependency Manager for Unity, lihat langkah-langkah penginstalan ini.

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


Penginstalan tanpa unity-jar-resolver

  1. Impor appsflyer-unity-plugin.v*.unitypackage untuk proyek Anda, tapi pastikan agar tidak mencentang EDM4U dependensi.

  2. Unduh dan tambahkan dependensi Android yang diperlukan ke folder Aset/Plugin/Android:

    1. SDK Android AppsFlyer
    2. AppsFlyer Unity Wrapper
    3. Pustaka Google Installreferrer
  3. Unduh dan tambahkan dependensi iOS yang diperlukan ke folder Aset/ Plugin/iOS/AppsFlyer:

    1. Unduh SDK iOS sebagai pustaka statis AppsFlyerLib.xcframework.zip
    2. Ekstrak file yangsudah Anda unduh
    3. Seret & lepas semua file ke Assets/Plugins/iOS/AppsFlyer folder