Add ATS Mobile SDK to Project
The first step to use the SDK is to add our ATS mobile SDK to your project. We offer two ways to do this; via Gradle integration or a manual integration.
Gradle Integration
Add our repository to repositories inside your project-level build.gradle as follows:
allprojects { repositories { // Liveramp repository maven { url "https://sdk-android-prod.launch.liveramp.com" } } }
Or in the settings.gradle as shown below:
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) repositories { ... // Liveramp repository maven { url "https://sdk-android-prod.launch.liveramp.com" } } }
Then, you can add the SDK to the application as you would any other dependency in your application build.gradle file.
dependencies { // Artifact group and id implementation("com.liveramp:ats:$lrVersion") { transitive = true } // f.e lrVersion = v1.0.3 ... // Other application dependencies }
Manual Integration
Download the latest version of the SDK.
Copy the .aar file below to your project libs folder.
Implement SDK in the app level build.gradle dependencies:
implementation files('libs/LRAts- production-release.aar')
Add SDK’s transitive dependencies inside the app level build.gradle file.
Kotlin:
implementation "androidx.preference:preference-ktx:1.2.0" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.0" implementation "com.squareup.retrofit2:retrofit:2.9.0" implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0" implementation "androidx.room:room-runtime:2.4.2" kapt "androidx.room:room-compiler:2.4.2" implementation "androidx.room:room-ktx:2.4.2" implementation "androidx.lifecycle:lifecycle-process:2.4.1"
Java:
implementation "androidx.preference:preference-ktx:1.2.0" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.0" implementation "com.squareup.retrofit2:retrofit:2.9.0" implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0" implementation "androidx.room:room-runtime:2.4.2" annotationProcessor "androidx.room:room-compiler:2.4.2" implementation "androidx.room:room-ktx:2.4.2" implementation "androidx.lifecycle:lifecycle-process:2.4.1"