We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1275d08 commit a40f8c5Copy full SHA for a40f8c5
rxjava-contrib/rxjava-android-samples-build-wrapper/build.gradle
@@ -1,13 +1,11 @@
1
-def androidHome = System.getenv("ANDROID_HOME")
2
tasks.build.doLast {
3
- if (androidHome.isEmpty()) {
4
- println("No Android SDK detected; skipping Android samples build")
5
- } else {
+ def androidHome = System.getenv("ANDROID_HOME")
+ if (project.hasProperty('buildAndroidSamples') && !androidHome.isEmpty()) {
6
println("Android SDK detected at $androidHome, running samples build")
7
project.exec {
8
workingDir '../rxjava-android-samples'
9
10
commandLine "./gradlew", "clean", "packageDebug"
11
}
12
13
-}
+}
0 commit comments