Cybexo Android SDK Setup
Last updated: July 1, 2026
| Property | Value |
|---|---|
| Artifact | implementation("com.cybexo:android-sdk:1.0.0") |
| Minimum | Android API 24 |
| Public entrypoint | com.cybexo.cmp.CybexoCMP |
1. Add Maven Central
Section titled “1. Add Maven Central”settings.gradle or settings.gradle.kts:
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() }}2. Add the Dependency
Section titled “2. Add the Dependency”app/build.gradle.kts:
dependencies { implementation("com.cybexo:android-sdk:1.0.0")}Pin an exact version for production builds.
3. Initialize
Section titled “3. Initialize”Initialize once during application startup from an Activity.
import com.cybexo.cmp.CybexoCMP
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)
CybexoCMP.initialize(this, "YOUR_SETTINGS_ID") }}4. Reopen Preferences
Section titled “4. Reopen Preferences”Expose a privacy or settings entry so users can review consent later.
CybexoCMP.forceShowBanner(this)Jetpack Compose example:
@Composablefun PrivacySettings() { val context = LocalContext.current val activity = context as? Activity
Button(onClick = { activity?.let(CybexoCMP::forceShowBanner) }) { Text("Review Consent") }}5. Verification
Section titled “5. Verification”Before production release:
- Initialize with the production Settings ID.
- Confirm first-run banner behavior on a clean install.
- Confirm the review consent button reopens preferences.
- Confirm accept, reject, and granular choices persist across app restart.
- Validate TC string behavior if IAB TCF is enabled for the property.
- Confirm downstream analytics or attribution SDKs receive the intended consent state.
6. Rollback
Section titled “6. Rollback”If rollback is required:
- Disable the CMP feature flag or revert the app build.
- Remove
com.cybexo:android-sdk. - Remove
CybexoCMPinitialization/reopen calls. - Rebuild and verify app startup and downstream SDK behavior.