The Embrace Unity SDK includes an editor script to assist with properly linking the SDK, and collecting and uploading debug information for symbolication. That component requires configuration prior to building. If your project ships on both Android and iOS make sure to configure both platforms using the Embrace editor window.
Configure the Android platform
Go to Tools -> Embrace -> Getting Started and click on it to reveal the Embrace editor window. Select the Android tab and fill in your unique
API_TOKEN. You can get the correct values from the settings page in your dash.
The location of the Embrace Unity Editor in the Embrace package.
On Android, Unity builds are handled by Gradle. To integrate Embrace, we’ll be adding some new dependencies to Unity’s Gradle templates. Unity has already given us ways to customize the Gradle configuration via templates accessible from the
Player Settings menu.
External Dependency Manager
Notes on minimum versions
To use the External Dependency Manager you must be using:
At least version
1.0.13 of the Unity SDK
At least version
4.7.0 of the Android Swazzler Plugin
If your project is already using other Android plugins, it is likely you are also using the External Dependency Manager. This is a module that ships with many plugins and handles dependency resolution for you.
Embrace fully supports the External Dependency Manager. Our dependencies are defined in
<plugin root>/Editor/EmbraceSDKDependencies.xml. Additionally, the following setting must be added to the root level of your
launcherTemplate.gradle file to disable our own Gradle plugin’s automatic dependency resolver:
disableDependencyInjection = true
Whether you use the resolver or not, make sure to also continue with the steps below to complete the configuration.
Customize Gradle Templates
The Gradle template customization features in Unity.
If your project already modifies these files, then apply the changes below to your existing files. If you do not customize the template currently, add a customization and then modify them as described below.
After creating or finding these template files in your project, make the following changes:
baseProjectTemplate.gradle, add the swazzler as a dependency. Also, ensure you have Maven Central defined as repositories as shown below. Note that they must be added in two places.
gradleTemplate.properties, add the following:
apply plugin: 'embrace-swazzler'
Finally, if you export your Android build from Unity then you must ensure that the
Create symbols.zip entry is checked under build settings.
The build settings window showing the checkbox to create symbols.zip.
Now that you’ve configured the Android platform, it’s time to login to the
How to Access the Dashboard