Adding Dependency Manually

If you don't want to pull the SDK from jCenter, you can do a manual setup using one of the following methods.

Blueshift Android SDK - AAR

Download the latest stable version of AAR from jCenter and add it inside the /libs folder of your project. Then make the following changes to your build.gradle file.

repositories {
flatDir {
dirs 'libs'
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'

implementation(name: 'android-sdk-debug', ext: 'aar')
// for JSON parsing
implementation 'com.google.code.gson:gson:2.8.5'
// for FCM
implementation 'com.google.firebase:firebase-core:17.2.0'
implementation 'com.google.firebase:firebase-messaging:20.0.0'
}

Note: According to this documentation if you are using any of the versions (or later) of firebase libraries listed there, then you must be using androidx libraries in your project. If not, you can continue to use the old support libraries. The minimum versions supported by the Blueshift Android SDK (since v2.0.2) for firebase are 16.0.6 (core) and 17.3.4 (messaging).

Blueshift Android SDK - As Module

You can download/clone the latest version of the Android SDK from Github and add it as a library module inside your project.

Note: Use the development_mainline branch to download/clone.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request