Skip to content

Commit

Permalink
Use modern env var for Android detection (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton authored Oct 17, 2024
1 parent 6bcd3cf commit 1bb5fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include(":samples")

// The Android test module doesn't work in IntelliJ. Use Android Studio or the command line.
if (System.getProperties().containsKey("android.injected.invoked.from.ide") ||
System.getenv("ANDROID_SDK_ROOT") != null) {
System.getenv("ANDROID_HOME") != null) {
include(":android-test")
}

Expand Down

0 comments on commit 1bb5fee

Please sign in to comment.