The Datadog Unity SDK supports logging and crash reporting for Android and iOS apps built on Unity.
Note
This repo is used to deploy the Datadog Unity package only. To submit issues or patches, use the Development Repo instead.
-
Install External Dependency Manager for Unity (EDM4U). This can be done using Open UPM.
-
Add the Datadog SDK Unity package from its Git URL at https://github.com/DataDog/unity-package. The package url is
https://github.com/DataDog/unity-package.git
.
Note
Datadog plans on adding support for Open UPM after Beta.
-
Configure your project to use Gradle templates, and enable both
Custom Main Template
andCustom Gradle Properties Template
. -
If you build and receive
Duplicate class
errors (common in Unity 2022.x), add the following block in thedependencies
block in yourmainTemplate.gradle
:constraints { implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") { because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib") } }
For further instructions on how to set up the Datadog SDK, refer to the RUM Unity Monitoring Setup documentation.
Pull requests are welcome. First, open an issue to discuss what you would like to change.
For more information, read the Contributing guidelines.
For more information, see Apache License, v2.0.