Skip to content
ⓘDiffusion release strategy information

Android SDK ​

The Diffusion Android SDK is a version of the full Java SDK, which has been repackaged for compatibility in the Android ecosystem.

AndroidFull API Documentation (opens in new tab)AndroidCode examples (GitHub) (opens in new tab) Android SDK in the Diffusion manual (opens in new tab)

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:

RequirementLibrary contract
Java languageJava 17
Gradle8.7+
AGP8.6.0+
Android runtimeAPI 24+
Core library desugaringRequired
desugar_jdk_libs2.0.0+
compileSdk30+

Then, add the library to the dependencies section of your app-level build.gradle file.

build.gradle

groovy
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

groovy
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.