Land animation progress / IntelliJ android plugin hack

This commit is contained in:
Anuken
2021-07-27 16:26:13 -04:00
parent 269c48b65b
commit 00e3a59463
9 changed files with 61 additions and 31 deletions
+5 -1
View File
@@ -22,7 +22,11 @@ if(new File(settingsDir, 'local.properties').exists()){
if(System.getenv("JITPACK") == "true") hasSdk = false
if(hasSdk){
include 'android'
//hack: pretend the Android module doesn't exist when imported through IntelliJ
//why? because IntelliJ chokes on the new version of the Android plugin
if(!System.getProperty("jna.tmpdir")?.contains("JetBrains")){
include 'android'
}
}else{
println("No Android SDK found. Skipping Android module.")
}