ASAP for Mobile Platforms

Integrating the SDK with Your App

The next step is to integrate the ASAP SDK with your Android app using Maven.

To integrate the SDK with your app, include the following code in the root level build.gradle file.

repositories {
	jcenter()
	maven { url 'https://maven.google.com' }
	maven { url 'http://maven.zohodl.com/' }
}

Note:The ASAP SDK was developed using Android Architecture Components. Therefore, it is essential to include maven.google.com in the app code.

Next, include the following code in the dependencies section of the app level build.gradle file. 

dependencies {
	compile 'com.zoho:deskportalsdk:0.824'
}

The SDK is now integrated with your app.

The configuration details of the ASAP SDK are as follows:

  • compileSdkVersion - 26

  • buildToolsVersion - 25.0.1

  • supportLibVersion - 26.1.0

  • minSdkVersion - 16

  • targetSdkVersion - 25

ProGuard Setup

If ProGuard and Minify are enabled, you must include the following rules in the proguard-rules set.

-keep class com.zoho.** {*;}
-keep interface android.support.v7.** { *; }
-keep class android.support.v7.** { *; }
-keep interface android.support.v4.** { *; }
-keep class android.support.v4.** { *; }
-keepattributes Signature
-keepattributes Annotation
-keep class okhttp3.* { *; }
-keep interface okhttp3.* { *; }
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn com.zoho.accounts.**
-dontwarn com.squareup.okhttp.**
-dontwarn okio.**
-dontwarn retrofit2.**