Instalação

Adicionando appsflyer-unity-plugin ao seu projeto

Adicionando o SDK ao seu projeto

Para adicionar o plug-in ao seu projeto, você pode adicionar o unitypackage ou usar o Unity Package Manager.

Observação: o plug-in é criado com o Gerenciador de dependência externa para Unity (EDM4U) (anteriormente Play Services Resolver / Jar Resolver)

  • O External Dependency Manager for Unity é distribuído com o appsflyer-unity-plugin por padrão.
  • Isso facilitará o processo de integração, resolvendo conflitos de dependência entre seu plug-in e outros plug-ins em seu projeto.
  • Adicionar o appsflyer-unity-plugin.v*.unitypackage importará automaticamente todos os ativos necessários para o SDK da AppsFlyer e o External Dependency Manager para o Unity.

Usando o unitypackage

  1. Copie/faça download do repositório de plug-ins.
  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. Vá para Ativos >> Pacote de Importação >> Pacote Personalizado.
  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.

Observação: se você não quer incluir o External Dependency Manager para o Unity, consulte as etapas desta instalação.

Usando o 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.


Instalação sem o unity-jar-resolver

  1. Importar appsflyer-unity-plugin.v*.unitypackage ao seu projeto, mas certifique-se de desmarcar as dependências EDM4U .

  2. Faça o download e adicione as dependências necessárias do Android à pasta Assets/Plugins/Android:

    1. SDK da AppsFlyer para Android
    2. AppsFlyer Unity Wrapper
    3. Biblioteca do Google InstallReferrer
  3. Faça o download e adicione as dependências necessárias do iOS à pasta Assets/Plugins/iOS/AppsFlyer:

    1. Faça download do SDK do iOS como uma biblioteca estática AppsFlyerLib.xcframework.zip
    2. Descompacte o arquivo que você baixou
    3. Arraste e solte todos os arquivos na pasta Assets/Plugins/iOS/AppsFlyer .