Installing the SDK
Partners will receive the SDK as an .zip file from an Uplift representitive. This zip will contain a folder called upliftsdk. To use the sdk, there are two options.
A) Custom Root
The host application has the option to use the SDK from a custom location. Eg: Copy the upliftsdk folder to the root folder of the application, then add the following to the project’s build.gradle file:
allprojects {
repositories {
google()
jcenter()
maven {
url file("${rootProject.projectDir}/upliftsdk")
}
}
}
B) Maven Repository
Another option is to add the upliftsdk to the local Maven repository. To do this, copy the SDK into the .m2/repository folder of your local machine, and then include the following line in the build.gradle file of your project:
allprojects {
repositories {
mavenLocal()
}
}
Important: Once the path of the sdk is defined, add the following to the app’s build gradle file:
implementation "com.uplift.sdk:upliftsdk:x.y.z"