... | ... | @@ -11,13 +11,13 @@ The SDK is distributed in .AAR format, which includes metadata such as definitio |
|
|
allprojects {
|
|
|
repositories {
|
|
|
jcenter()
|
|
|
flatDir{
|
|
|
flatDir {
|
|
|
dirs 'libs'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
See [the `sample-gradle` project's `build.gradle` file](https://github.com/ezeeworld/B4S-Android-SDK/blob/master/sample-gradle/build.gradle) for an example.
|
|
|
See [the `sample-gradle` root project's `build.gradle` file](https://github.com/ezeeworld/B4S-Android-SDK/blob/master/sample-gradle/build.gradle) for an example of this repository declration.
|
|
|
|
|
|
Next, add all the B4S dependencies and reference it's .AAR files in the main application's `app/build.gradle` file:
|
|
|
```groovy
|
... | ... | @@ -52,6 +52,7 @@ The Jackson libraries dependencies ships with duplicate license files, which can |
|
|
}
|
|
|
}
|
|
|
```
|
|
|
See [the `sample-gradle` app module's `app/build.gradle` file](https://github.com/ezeeworld/B4S-Android-SDK/blob/master/sample-gradle/app/build.gradle) for an example, including all the dependencies.
|
|
|
|
|
|
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.
|
|
|
|
... | ... | |