Migrate from Old SDK

Deleting 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:$currentVersion")
}

Change in integration

Imports

Before we had:

Now the imports are as follows:

Initializing the SDK

This is very similar to the old SDK (like many other libraries).

Before, we had:

  1. Initialization of the SDK

  2. Registration of callbacks to intercept the user's response

  3. Attempt to display the CMP

  4. Deletion of callbacks regardless of the result

Now :

  1. Initializing the SDK

  2. Display request (the display & consent response is returned directly in the method callbacks)

This allows your users to view their consent and modify it if necessary.

Before, we had:

Now :

Last updated