Add the OpenWeb Android SDK

Add the OpenWeb SDK to your Android app

To add a Conversation to your app, you must import the OpenWeb Android SDK and then configure your project.



Implementation

  1. From within Android Studio, open your app.
  2. In the project build.gradle file, add the JitPack repository: https://jitpack.io
allprojects {
    repositories {
        ...
      maven { url "https://jitpack.io" }
    }
}



  1. In the app build.gradle file, add the com.github.SpotIM.spotim-android-sdk:spotim-sdk:1.7.1 and androidx.multidex:multidex:2.0.1 dependencies.
dependencies {
    ...
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'com.github.SpotIM.spotim-android-sdk:spotim-sdk:1.7.1'
}



  1. Also in the app build.gradle file, set minSdkVersion to 19 or greater. If you set minSdkVersion to 19 - 20, you must also set multiDexEnabled true.
android {
    defaultConfig {
        ...
        minSdkVersion 19
        multiDexEnabled true
    }



  1. In the AndroidManifest.xml file, add the permission to use the Internet: <uses-permission android:name="android.permission.INTERNET" />.


Did this page help you?