... | ... | @@ -24,7 +24,6 @@ Next, add all the B4S dependencies and reference it's .AAR files in the main app |
|
|
dependencies {
|
|
|
compile 'nl.qbusict:cupboard:2.1.4'
|
|
|
compile 'de.greenrobot:eventbus:2.4.0'
|
|
|
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta3'
|
|
|
compile 'com.squareup.retrofit2:converter-jackson:2.0.0-beta3'
|
|
|
compile 'com.google.android.gms:play-services-location:8.4.0'
|
|
|
compile 'com.google.android.gms:play-services-ads:8.4.0'
|
... | ... | @@ -57,6 +56,14 @@ See [the `sample-gradle` app module's `app/build.gradle` file](https://github.co |
|
|
|
|
|
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.
|
|
|
|
|
|
## Minimum SDK level support
|
|
|
|
|
|
As Android 4.3 introduced support for Bluetooth LE, API level 18 is the minimum API level requirement for the SDK to work with beacons. However, it is safe to include the library in application that support older Android versions. You can simply have Gradle ignore the B4S minimum SDK level by adding to your `AndroidManifest.xml`:
|
|
|
|
|
|
```xml
|
|
|
<uses-sdk tools:overrideLibrary="com.ezeeworld.b4s.android.sdk, com.ezeeworld.b4s.android.sdk.playservices" />
|
|
|
```
|
|
|
|
|
|
## Push messaging dependency
|
|
|
|
|
|
For push messaging support via the B4S SDK, ensure that the `play-services-gcm` library is properly specified in your `app/build.gradle` dependencies:
|
... | ... | |