Merge pull request #92176 from emrekultursay/master
Fix detecting when Gradle is invoked from Studio
This commit is contained in:
commit
0e39ac6ac6
|
@ -330,8 +330,7 @@ ext.getReleaseKeyAlias = { ->
|
||||||
}
|
}
|
||||||
|
|
||||||
ext.isAndroidStudio = { ->
|
ext.isAndroidStudio = { ->
|
||||||
def sysProps = System.getProperties()
|
return project.hasProperty('android.injected.invoked.from.ide')
|
||||||
return sysProps != null && sysProps['idea.platform.prefix'] != null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ext.shouldZipAlign = { ->
|
ext.shouldZipAlign = { ->
|
||||||
|
|
|
@ -232,11 +232,6 @@ def generateBuildTasks(String flavor = "template") {
|
||||||
return tasks
|
return tasks
|
||||||
}
|
}
|
||||||
|
|
||||||
def isAndroidStudio() {
|
|
||||||
def sysProps = System.getProperties()
|
|
||||||
return sysProps != null && sysProps['idea.platform.prefix'] != null
|
|
||||||
}
|
|
||||||
|
|
||||||
task copyEditorReleaseApkToBin(type: Copy) {
|
task copyEditorReleaseApkToBin(type: Copy) {
|
||||||
dependsOn ':editor:assembleRelease'
|
dependsOn ':editor:assembleRelease'
|
||||||
from('editor/build/outputs/apk/release')
|
from('editor/build/outputs/apk/release')
|
||||||
|
|
Loading…
Reference in New Issue