For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

Have you noticed that the GDPR, fullscreen, vertical buttons, and QR code fields are no longer there?

You can now configure these fields from the Notice settings on your dashboard. This will allow you to make changes directly in your CMP without having to deploy a new version of your app.

Only QrCode is available by default on TV environment

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