1. Add ATS Mobile SDK to Project

The first step to utilize 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

First, add our repository to repositories inside 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 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

  1. Download the latest version of the SDK.
  2. Copy the .aar file below to your project libs folder.
874874
  1. Implement SDK in the app level build.gradle dependencies:
    implementation files('libs/LRAts- production-release.aar')
  2. Add SDK’s transitive dependencies inside the app level build.gradle file:
  • 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"

What’s Next

Once the SDK has been added to your project, you must initialize it.