summaryrefslogtreecommitdiffstats
path: root/platform/android/java/lib
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2024-02-15 17:03:28 -0800
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2024-02-15 17:03:28 -0800
commitaf7569d604dd36336fa86e4886714de7db165d08 (patch)
tree755516a6dd05cca84979e43206f6e4866e28e078 /platform/android/java/lib
parenta9bb8509f2faac81bdb995c6c89a5347372f3498 (diff)
downloadredot-engine-af7569d604dd36336fa86e4886714de7db165d08.tar.gz
Always enable debug symbols when developing with Android Studio
Diffstat (limited to 'platform/android/java/lib')
-rw-r--r--platform/android/java/lib/build.gradle3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/android/java/lib/build.gradle b/platform/android/java/lib/build.gradle
index 61ae0cd58a..ed967b9660 100644
--- a/platform/android/java/lib/build.gradle
+++ b/platform/android/java/lib/build.gradle
@@ -101,6 +101,7 @@ android {
}
boolean devBuild = buildType == "dev"
+ boolean debugSymbols = devBuild || isAndroidStudio()
boolean runTests = devBuild
boolean productionBuild = !devBuild
boolean storeRelease = buildType == "release"
@@ -168,7 +169,7 @@ android {
def taskName = getSconsTaskName(flavorName, buildType, selectedAbi)
tasks.create(name: taskName, type: Exec) {
executable sconsExecutableFile.absolutePath
- args "--directory=${pathToRootDir}", "platform=android", "store_release=${storeRelease}", "production=${productionBuild}", "dev_mode=${devBuild}", "dev_build=${devBuild}", "tests=${runTests}", "target=${sconsTarget}", "arch=${selectedAbi}", "-j" + Runtime.runtime.availableProcessors()
+ args "--directory=${pathToRootDir}", "platform=android", "store_release=${storeRelease}", "production=${productionBuild}", "dev_mode=${devBuild}", "dev_build=${devBuild}", "debug_symbols=${debugSymbols}", "tests=${runTests}", "target=${sconsTarget}", "arch=${selectedAbi}", "-j" + Runtime.runtime.availableProcessors()
}
// Schedule the tasks so the generated libs are present before the aar file is packaged.