AndroidX

AndroidX is the project that Android uses to release libraries within Jetpack.

Braze AndroidX Module

An AndroidX compatible module is published alongside the main Braze SDK, starting in version 3.0.0.

This module is used via:

1
2
3
4
dependencies {
  ...
  implementation "com.appboy:android-sdk-ui-x:${LATEST_SDK_VERSION}"
}

If including android-sdk-ui-x in your build.gradle, you can remove android-sdk-ui from your build.gradle.

Gradle Changes

The following gradle properties are required when using AndroidX libraries with the Braze SDK:

1
2
android.enableJetifier=true
android.useAndroidX=true

SDK Migration

Braze SDK imports should be migrated from the android-sdk-ui package to their android-sdk-ui-x package counterparts, where applicable. Only a subset of packages required AndroidX compatibility. For example, com.appboy.ui.push classes should be moved to com.appboy.uix.push. See the Braze SDK Changelog for a complete list of packages.

WAS THIS PAGE HELPFUL?