Prepare Environment
Add our maven repository to your project.
The maven repository can be added in your project build.gradle:
allprojects {
repositories {
maven { url "https://rm.dev.uqudo.io/repository/uqudo-public/" }
}
}
or in your settings.grade:
dependencyResolutionManagement {
repositories {
maven { url "https://rm.dev.uqudo.io/repository/uqudo-public/" }
}
}
Add the following dependency in your application build.gradle. Please make sure the apk generation is split by platform to reduce the size of the apk or use the bundle build (preferred way) when you push your application to the store, Google Play Store will take care to split by platform:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
splits {
abi {
enable true
universalApk false
}
}
}
dependencies {
implementation 'io.uqudo.sdk:Uqudo:2.7.1'
}
N.B.: this is only required if you have an on prem installation of the uqudo platform. Also, only certain domains are permitted.
In order to build your application and tell the SDK to point to another environment you can simply configure the following string resource in your application strings.xml with the provided url:
<string name="uq_api_base_url">https://hostname</string>
N.B.: Don’t add any / after the hostname.
Last modified 7h ago