- Add the CUX package repository URL to your root settings.gradle.kts at the end of repositories:
repositories { ... maven(url = "https://packagecloud.io/cux/public-gradle/maven2") }
- Add the following to your module build.gradle.kts file:
dependencies { implementation("io.cux:analytics-sdk:0.0.28") … }
- Add Internet permission in your AndroidManifest.xml file
<uses-permission android:name="android.permission.INTERNET" />
- Use your token in onCreate method of Application
class ShopApplication: Application() { override fun onCreate() { super.onCreate() CuxAnalytics.init(this, "{your_token}") } }
- You are ready to monitor your Application!
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article