Get started

To get started with the Delivered SDK you must first place the provided delivered-sdk.json file in the root of your application project.

Next, add the Delivered SDK Gradle plugin to your app project’s build script (located at app/build.gradle) as follows:

buildscript {
   repositories {
       ...
        maven { url "https://maven.delivered.im" }
    }

    dependencies {
        classpath 'im.delivered.gradle.sdk:delivered-gradle:0.+'
        ...
    }
}
apply plugin: 'im.delivered.gradle.sdk'

Now add the Delivered SDK dependency to your project:

repositories {
    ...
    maven { url "https://maven.delivered.im" }
}

dependencies {
    compile 'im.delivered.sdk:all:0.+'
    ...
}

Once these dependencies have been added, don’t forget to sync your project from your IDE so that it downloads the necessary resources.

It is also recommended to set these packaging options to your Android project:

android {
    ...
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
    ...
}

Once you are done adding the Delivered SDK to you app, head up to the Secure registration section for the next steps.