... | ... | @@ -32,7 +32,6 @@ dependencies { |
|
|
compile (name:'b4s-android-sdk-playservices830', ext:'aar')
|
|
|
}
|
|
|
```
|
|
|
|
|
|
**Important**: This example relies on the Play Services version 8.3 (v28), but the SDK is compatible with all versions of the Play Services. Simply refer to the desired `play-services-xxx` libraries as usual and select the corresponding `b4s-android-sdk-playservicesXXX` .AAR file. For example, if the Play Services 6.5 (v22) should be used instead:
|
|
|
```groovy
|
|
|
...
|
... | ... | @@ -42,6 +41,18 @@ dependencies { |
|
|
compile (name:'b4s-android-sdk-playservices650', ext:'aar')
|
|
|
```
|
|
|
|
|
|
The Jackson libraries dependencies ships with duplicate license files, which can be ignore by adding to the `buildTypes` part of your Gradle file a `packagingOptions` element to include the license files:
|
|
|
```groovy
|
|
|
buildTypes {
|
|
|
...
|
|
|
packagingOptions {
|
|
|
exclude 'META-INF/ASL2.0'
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Finally, **copy the `b4s-android-sdk.aar`** and the **`b4s-android-sdk-playservicesXXX.aar`** version of your choice from the [`/sdk/aar` release folder](https://github.com/ezeeworld/B4S-Android-SDK/tree/master/sdk/aar) to your `app/libs` directory.
|
|
|
|
|
|
## Push messaging dependency
|
... | ... | |