Bug: 474722 - Adding android-sdk-manager plugin to gradle build.

Allows builds to be run without having to download and prepare the android sdk first

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
This commit is contained in:
James Sutton 2015-09-03 13:29:12 +01:00
parent 01387501b7
commit 0cbb916896
3 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

View File

@ -1,3 +1,4 @@
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
android {

View File

@ -1,5 +1,8 @@
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.library'
android {
compileSdkVersion 19
buildToolsVersion "22.0.1"
@ -51,4 +54,4 @@ task exportJar(type: Copy) {
rename('classes.jar', 'org.eclipse.paho.android.service.jar')
}
exportJar.dependsOn(deleteOldJar, build)
exportJar.dependsOn(deleteOldJar, build)