1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #92176 from emrekultursay/master

Fix detecting when Gradle is invoked from Studio
This commit is contained in:
Rémi Verschelde
2024-05-21 11:23:08 +02:00
2 changed files with 1 additions and 7 deletions

View File

@@ -330,8 +330,7 @@ ext.getReleaseKeyAlias = { ->
}
ext.isAndroidStudio = { ->
def sysProps = System.getProperties()
return sysProps != null && sysProps['idea.platform.prefix'] != null
return project.hasProperty('android.injected.invoked.from.ide')
}
ext.shouldZipAlign = { ->

View File

@@ -232,11 +232,6 @@ def generateBuildTasks(String flavor = "template") {
return tasks
}
def isAndroidStudio() {
def sysProps = System.getProperties()
return sysProps != null && sysProps['idea.platform.prefix'] != null
}
task copyEditorReleaseApkToBin(type: Copy) {
dependsOn ':editor:assembleRelease'
from('editor/build/outputs/apk/release')