Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • B B4S-Android-SDK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Francois Reboursier
  • B4S-Android-SDK
  • Wiki
  • Installation with Gradle

Installation with Gradle · Changes

Page history
Add instruction to exclude Jackson-dependency duplicate license files authored Dec 15, 2015 by Eric Kok's avatar Eric Kok
Hide whitespace changes
Inline Side-by-side
Installation-with-Gradle.md
View page @ e9ff26fa
......@@ -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
......
Clone repository
  • Home
  • Installation with Eclipse Ant
  • Installation with Gradle
  • Integration guide
  • Migration guide