Migrate from Old SDK
Updating the old repository
Formerly we had:
maven {
url = uri("https://artifactory.datalf.chat/artifactory/app-consent-v2-release")
}From now on, it is necessary to:
maven {
url = uri("https://artifactory.datalf.chat/artifactory/appconsent")
}Implementation change
Previously, we had:
dependencies {
implementation("com.sfbx.appconsent:appconsent-ui-v3:X.Y.Z")
}From now on, you must:
dependencies {
implementation("io.sfbx.appconsent:unifiedsdk:X.Y.Z")
}Change in integration
Imports
Before we had:
Now the imports are as follows:
Set up your SDK
Previously, the setup looked like this:
Now the setup looks like this:



Initializing the SDK
This is very similar to the old SDK (like many other libraries).
Before, we had:
Initialization of the SDK
Registration of callbacks to intercept the user's response
Attempt to display the CMP
Deletion of callbacks regardless of the result
Now :
Initializing the SDK
Display request (the display & consent response is returned directly in the method callbacks)
Displaying the consent screen to your users
This allows your users to view their consent and modify it if necessary.
Before, we had:
Now :
Last updated