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
- Version Clear du kit de development (SDK)
- Version TV du kit de development (SDK)
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)
}
Groovy - app build.gradle
dependencies {
implementation 'com.sfbx.appconsent:appconsent-tv:${currentTvVersion}'
}
KotlinDSL - App build.gradle.kts Sans le version catalog
dependencies {
implementation("com.sfbx.appconsent:appconsent-tv:${currentTvVersion}")
}
KotlinDSL - App build.gradle.kts et version catalog (gradle/libs.versions.toml)
Version catalog
[versions]
sfbx = "${currentTvVersion}"
[libraries]
sfbx = { group = "com.sfbx.appconsent", name = "appconsent-tv", version.ref = "sfbx" }
build.gradle.kts
dependencies {
implementation(libs.sfbx)
}