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
- Copie/faça download do repositório de plug-ins.
- 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. - Vá para Ativos >> Pacote de Importação >> Pacote Personalizado.
- 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.
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
-
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.
Instalação sem o unity-jar-resolver
- Se você não quer incluir o External Dependency Manager para o Unity, siga estas etapas:
-
Importar
appsflyer-unity-plugin.v*.unitypackage
ao seu projeto, mas certifique-se de desmarcar as dependênciasEDM4U
.
-
Faça o download e adicione as dependências necessárias do Android à pasta Assets/Plugins/Android:
-
Faça o download e adicione as dependências necessárias do iOS à pasta Assets/Plugins/iOS/AppsFlyer:
- Faça download do SDK do iOS como uma biblioteca estática
AppsFlyerLib.xcframework.zip
- Descompacte o arquivo que você baixou
- Arraste e solte todos os arquivos na pasta
Assets/Plugins/iOS/AppsFlyer
.
- Faça download do SDK do iOS como uma biblioteca estática
Atualizado 3 meses atrás