Skip to content

Commit

Permalink
Merge pull request godotengine#92176 from emrekultursay/master
Browse files Browse the repository at this point in the history
Fix detecting when Gradle is invoked from Studio
  • Loading branch information
akien-mga committed May 21, 2024
2 parents 365d25d + 3b8d0be commit 0e39ac6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions platform/android/java/app/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { ->
Expand Down
5 changes: 0 additions & 5 deletions platform/android/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 0e39ac6

Please sign in to comment.