Skip to content

Commit 8b10168

Browse files
committed
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>
1 parent cc12301 commit 8b10168

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

org.eclipse.paho.android.service/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:1.2.3'
9+
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
910
// NOTE: Do not place your application dependencies here; they belong
1011
// in the individual module build.gradle files
1112
}

org.eclipse.paho.android.service/org.eclipse.paho.android.sample/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
apply plugin: 'android-sdk-manager'
12
apply plugin: 'com.android.application'
23

34
android {

org.eclipse.paho.android.service/org.eclipse.paho.android.service/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
apply plugin: 'android-sdk-manager'
12
apply plugin: 'com.android.library'
23

4+
5+
36
android {
47
compileSdkVersion 19
58
buildToolsVersion "22.0.1"
@@ -51,4 +54,4 @@ task exportJar(type: Copy) {
5154
rename('classes.jar', 'org.eclipse.paho.android.service.jar')
5255
}
5356

54-
exportJar.dependsOn(deleteOldJar, build)
57+
exportJar.dependsOn(deleteOldJar, build)

0 commit comments

Comments
 (0)