Skip to content

Commit

Permalink
Android Studio 2.2 / Gradle 2.2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Sep 22, 2016
1 parent d43ffad commit 4a0b966
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions app/build.gradle
Expand Up @@ -133,13 +133,23 @@ android {
}
}

// jamorham auto test rig
task jamorhamAutoInstall(type: Exec) {
// just comment out the line below if it causes compile problems
// auto test rig
task AutoInstall(type: Exec) {
commandLine "bash", "$projectDir/autoinstallviausb"
}
assembleRelease.doLast {
jamorhamAutoInstall.execute()

// auto tester
tasks.whenTaskAdded { task ->
if (task.name == 'assembleRelease') {
if (System.getenv('USERDOMAIN') == "PC-PC") {
task.finalizedBy 'AutoTestRig'
AutoTestRig.outputs.upToDateWhen { false }
}
}
}

task AutoTestRig() << {
AutoInstall.execute()
}

dependencies {
Expand Down Expand Up @@ -182,6 +192,7 @@ dependencies {
}
compile 'uk.com.robust-it:cloning:1.9.2'
compile 'com.github.amlcurran.showcaseview:library:5.4.3'
// compile 'com.itextpdf:itextg:5.5.9'

// Pebble-Trend, needs to be checked if really needed
//compile 'com.android.support:multidex:1.0.1'
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.google.gms:google-services:3.0.0'
apply plugin: 'java'
apply plugin: 'maven'
Expand Down

0 comments on commit 4a0b966

Please sign in to comment.