Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
fail with meaningful message if env ANDROID_HOME missing (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvoronin authored and artem-zinnatullin committed Apr 22, 2018
1 parent bd6ae3d commit 51b191b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import java.util.concurrent.TimeUnit
import java.util.concurrent.TimeUnit.MINUTES
import java.util.concurrent.TimeUnit.SECONDS

val androidHome: String by lazy { System.getenv("ANDROID_HOME") }
val androidHome: String by lazy { requireNotNull(System.getenv("ANDROID_HOME")) { "Please specify ANDROID_HOME env variable" } }
val adb: String by lazy { "$androidHome/platform-tools/adb" }
private val buildTools: String? by lazy {
File(androidHome, "build-tools")
Expand Down

0 comments on commit 51b191b

Please sign in to comment.