Skip to content

Commit

Permalink
jitpack: exclude monitor modul if no android platforms are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotzkow committed Feb 14, 2019
1 parent ff479d7 commit e892524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ include(
"project:pcComponents:API"
// ,":deviceControlDaemon" // not working Failed to apply plugin [id 'com.android.application']
)
if(Paths.get(System.getenv("ANDROID_HOME")).resolve("platforms").toFile().list().any {it.contains("android-")})
// monitor seams to be incompatible with android-27 which is the one installed on jitpack
if(Paths.get(System.getenv("ANDROID_HOME")).resolve("platforms").resolve("android-23").toFile().exists())
{ // only include monitor if android platforms are installed to avoid jitpack build fail
println("android platforms available, monitor will be generated ${Paths.get(System.getenv("ANDROID_HOME")).resolve("platforms").toFile().list()}")
include(
Expand Down

0 comments on commit e892524

Please sign in to comment.