Aller au contenu principal

Dépendence


Intégration du SDK

En fonction de votre plateforme (Smartphone/Tablette ou TV), intégrez la version Clear ou la version TV.

currentClearVersion = 5.3.0
currentTvVersion = 5.2.0

Intégration de la librairie


Groovy - app build.gradle

dependencies { 
implementation 'com.sfbx.appconsent:appconsent-ui-v3:${currentClearVersion}'
}

KotlinDSL - App build.gradle.kts Sans le version catalog

dependencies { 
implementation("com.sfbx.appconsent:appconsent-ui-v3:${currentClearVersion}")
}

KotlinDSL - App build.gradle.kts et version catalog (gradle/libs.versions.toml)

Version catalog

[versions]
sfbx = "${currentClearVersion}"

[libraries]
sfbx = { group = "com.sfbx.appconsent", name = "appconsent-ui-v3", version.ref = "sfbx" }

build.gradle.kts

dependencies { 
implementation(libs.sfbx)
}