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
commit 0e39ac6ac6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
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')