Skip to content

Commit

Permalink
Bug: 474722 - Adding android-sdk-manager plugin to gradle build.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jpwsutton committed Sep 3, 2015
1 parent cc12301 commit 8b10168
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions org.eclipse.paho.android.service/build.gradle
Expand Up @@ -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
}
Expand Down
@@ -1,3 +1,4 @@
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'

android {
Expand Down
@@ -1,5 +1,8 @@
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.library'



android {
compileSdkVersion 19
buildToolsVersion "22.0.1"
Expand Down Expand Up @@ -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)

0 comments on commit 8b10168

Please sign in to comment.