Skip to main content

Dependency


Library integration​

Depending on the offer you select when you take out your policy, make sure you include the right dependency cover.
Below, the Premium offer and the XChange offer.

currentClearVersion = 5.0.0
currentClassicVersion = 5.0.0
currentTvVersion = 5.0.0

Premium Integration​


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)
}

XChange integration​


Groovy - app build.gradle​

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

KotlinDSL - App build.gradle.kts Without version catalog​

dependencies { 
implementation("com.sfbx.appconsent:appconsent-ui-v3-xchange:${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-xchange", version.ref = "sfbx" }

build.gradle.kts​

dependencies { 
implementation(libs.sfbx)
}