Skip to main content

Upgrading

From SDK version 4.3.x

Starting with SDK version 4.4.x, Unico started using its own Maven repository to distribute the Android SDK and changed the name of the SDK dependency, as well as adjustments to ProGuard and DexGuard rules for customers who use the GuardSquare library as described in the section from Troubleshooting

Change the Maven repository:

Change the Maven repository to the new repository in the project's build.gradle file.

The implementation was done as follows:

build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io'}
}
}

Now it must be updated to the new repository:

build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
allprojects {
repositories {
google()
jcenter()
maven {
url "https://maven-sdk.unico.run/sdk-mobile"
}
}
}

Change the SDK dependency.

Change the SDK dependency to the new dependency in the project's app/build.gradle file.

The implementation was done as follows:

app/build.gradle
/* unico */
dependencies {
implementation 'com.github.acesso-io:acessobio-android:+'
}

Now it must be updated to the new dependency:

app/build.gradle
/* unico */
dependencies {
implementation "io.unico:capture:4.4.0"
}