Dependency
Library integrationβ
Depending on your platform (Smartphone/Tablet or TV), integrate the Clear or TV version.
currentClearVersion = 5.3.0
currentTvVersion = 5.2.0
Library Integrationβ
- Clear template development kit (SDK)
- TV template development kit (SDK)
Groovy - app build.gradleβ
dependencies {
implementation 'com.sfbx.appconsent:appconsent-ui-v3:${currentClearVersion}'
}
KotlinDSL - App build.gradle.kts Without version catalogβ
dependencies {
implementation("com.sfbx.appconsent:appconsent-ui-v3:${currentClearVersion}")
}
KotlinDSL - App build.gradle.kts and 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 Without version catalogβ
dependencies {
implementation("com.sfbx.appconsent:appconsent-tv:${currentTvVersion}")
}
KotlinDSL - App build.gradle.kts and 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)
}