Import the Android SDK (Android Studio or Gradle)

Add the library to your project by editing your build.gradle file in your app module as described below:

1. In your app's build.gradle file, add the Xtremepush maven repository

repositories {
    maven {
        url 'http://maven.xtremepush.com/artifactory/libs-release-local/'
    }
}

2. Add the XtremePush library to the dependencies section as shown below:

compile 'ie.imobile.extremepush:XtremePush_lib:4.3.1'

3. Add the latest version of Android Support Version for example

compile 'com.android.support:support-v4:25.3.0'

4. Also add the latest version of Google play services 10.0+ as a dependency if not included for example:

compile 'com.google.android.gms:play-services:10.2.0'

If you only want to use the required APIs to keep size down or stay within the multi-dexing limit then use:

compile 'com.google.android.gms:play-services-gcm:10.2.0'
compile 'com.google.android.gms:play-services-location:10.2.0'

5. Add the following dependencies

compile 'com.google.code.gson:gson:2.8.0'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.squareup:otto:1.3.8'
compile 'org.altbeacon:android-beacon-library:2.9.2'

6. Sync the project with the gradle file.

Have more questions? Submit a request

0 Comments

Article is closed for comments.