Skip to content

Commit a40f8c5

Browse files
committed
Trigger samples build manually via Gradle build property
1 parent 1275d08 commit a40f8c5

File tree

1 file changed

+3
-5
lines changed
  • rxjava-contrib/rxjava-android-samples-build-wrapper

1 file changed

+3
-5
lines changed
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
def androidHome = System.getenv("ANDROID_HOME")
21
tasks.build.doLast {
3-
if (androidHome.isEmpty()) {
4-
println("No Android SDK detected; skipping Android samples build")
5-
} else {
2+
def androidHome = System.getenv("ANDROID_HOME")
3+
if (project.hasProperty('buildAndroidSamples') && !androidHome.isEmpty()) {
64
println("Android SDK detected at $androidHome, running samples build")
75
project.exec {
86
workingDir '../rxjava-android-samples'
97

108
commandLine "./gradlew", "clean", "packageDebug"
119
}
1210
}
13-
}
11+
}

0 commit comments

Comments
 (0)