Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Include Dependencies using Gradle

Josh Gavant edited this page Jan 10, 2015 · 5 revisions

For current public versions of the binaries, make sure JCenter is included as a source repository at the project level, and add the dependencies you need in module-level (app) build scripts, similar to the following:

repositories {
	jcenter()
}

dependencies {
    // base OData engine:
    compile group: 'com.microsoft.services', name: 'odata-engine-core', version: '0.11.1'

    // for Android:
    compile group: 'com.microsoft.services', name: 'odata-engine-android-impl', version: '0.11.1', ext:'aar'

    // for JVM:
    compile group: 'com.microsoft.services', name: 'odata-engine-jvm-impl', version: '0.11.1'

    // choose the services/SDKs you need:
    compile group: 'com.microsoft.services', name: 'outlook-services', version: '0.11.1'
    compile group: 'com.microsoft.services', name: 'discovery-services', version: '0.11.1'
    compile group: 'com.microsoft.services', name: 'directory-services', version: '0.11.1'
    compile group: 'com.microsoft.services', name: 'file-services', version: '0.11.1'
    compile group: 'com.microsoft.services', name: 'sharepoint-services', version: '0.11.1', ext:'aar'

    // ADAL
    compile (group: 'com.microsoft.aad', name: 'adal', version: '1.0.9') {
         exclude group: 'com.android.support'   // if already included elsewhere
    }
}
Clone this wiki locally