Step 1: Installing the SDK
- 20 Jun 2023
- 1 Minute to read
- DarkLight
Step 1: Installing the SDK
- Updated on 20 Jun 2023
- 1 Minute to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
Installing the SDK
Partners will recieve 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"
Was this article helpful?