Android SDK
The Diffusion Android SDK is a version of the full Java SDK, which has been repackaged for compatibility in the Android ecosystem.
Quick Links
Usage
The Android client is compatible with Android 7 ('Nougat' - API level 24), and later.
To include the Diffusion Android APK within an Android Studio project, first ensure that your project build configuration meets the minimum requirements of the Diffusion library:
| Requirement | Library contract |
|---|---|
| Java language | Java 17 |
| Gradle | 8.7+ |
| AGP | 8.6.0+ |
| Android runtime | API 24+ |
| Core library desugaring | Required |
| desugar_jdk_libs | 2.0.0+ |
| compileSdk | 30+ |
Then, add the library to the dependencies section of your app-level build.gradle file.
build.gradle
dependencies {
implementation 'com.pushtechnology.diffusion:diffusion-android-client:6.13.0'
...
}It's also necessary to include the additional maven repository location within your gradle configuration. The settings.gradle file at the root of your Android Studio project should declare this, for example:
settings.gradle
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = "https://download.diffusiondata.com/maven/"
}
}
}More information and guidance can be found at the Diffusion manual link above.