Android quick start

📘

No minimal requirements

This SDK is compatible with all Android versions. However, contact us if there is a problem.

Install the library

Choose the language you use to develop on Android and follow the instructions for installing the SDK

Java
Kotlin
Javascript
Other

App configuration

Add android.permission.INTERNET permission to allows MySocialApp SDK to communicate with the API.

<application>
  ...
  <uses-permission android:name="android.permission.INTERNET"/>
  ...
</application>

Exclude duplicate META-INF files if needed. Build.gradle

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'
  }
}

Do you plan to use Rx? Then add RxAndroid to have access to the AndroidSchedulers

dependencies {
  ...
  implementation group: 'io.reactivex', name: 'rxandroid', version: '1.2.1'
  ...
}