diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2022-01-03 09:19:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 09:19:21 -0800 |
commit | a8a20a0e02c8459513542f77eaed9b7350812c94 (patch) | |
tree | b470de9675c2be5c243605e802de05910ec8bd81 | |
parent | de066d56a2304b51d8a36e175c565bb7f7f1b11b (diff) | |
parent | 1345e6693564cb57abd6e471e5e5a14a4950081b (diff) |
Merge pull request #56132 from m4gr3d/fix_android_studio_builds
Fix Android Studio builds
-rw-r--r-- | platform/android/java/build.gradle | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/platform/android/java/build.gradle b/platform/android/java/build.gradle index efdcc6c77b..ac008edbed 100644 --- a/platform/android/java/build.gradle +++ b/platform/android/java/build.gradle @@ -124,8 +124,11 @@ task zipCustomBuild(type: Zip) { def templateExcludedBuildTask() { // We exclude these gradle tasks so we can run the scons command manually. def excludedTasks = [] - for (String buildType : supportedTargets) { - excludedTasks += ":lib:" + getSconsTaskName(buildType) + if (!isAndroidStudio()) { + logger.lifecycle("Excluding Android studio build tasks") + for (String buildType : supportedTargets) { + excludedTasks += ":lib:" + getSconsTaskName(buildType) + } } return excludedTasks } @@ -155,6 +158,11 @@ def templateBuildTasks() { return tasks } +def isAndroidStudio() { + def sysProps = System.getProperties() + return sysProps != null && sysProps['idea.platform.prefix'] != null +} + /** * Master task used to coordinate the tasks defined above to generate the set of Godot templates. */ |