Integrate SDK - mohitrajput987/analytics-sdk-android GitHub Wiki
This SDK is published to GitHub Packages. If you know more about what is GitHub Packages, read this article.
To integrate this, add following dependency to app level build.gradle
file:
implementation "com.otb:analytics-sdk:0.0.1"
Now add this in root level build.gradle
file:
repositories {
maven {
url = "https://maven.pkg.github.com/mohitrajput987/analytics-sdk"
credentials {
username = GITHUB_USER
password = GITHUB_TOKEN
}
}
}
Replace GITHUB_USER
with username of your GitHub and GITHUB_TOKEN
with the token.
This GitHub token should have repo
and read packages
permissions. If you have any doubt on creating token, read this article.
Integration part is completed. Now it's time to use this feature in your app. Read our tutorial document for this.