[#1190] Add native debug symbols to builds
- Although this build flag is not transitive, and thus it does not cover SDK, it’s still a good approach to have it turned on - Using the middle path with symbol_table value - this could be changed once needed
This commit is contained in:
parent
533f335038
commit
b00c807df1
|
@ -93,7 +93,7 @@ android {
|
||||||
releaseKeystorePassword,
|
releaseKeystorePassword,
|
||||||
releaseKeyAlias,
|
releaseKeyAlias,
|
||||||
releaseKeyAliasPassword
|
releaseKeyAliasPassword
|
||||||
).all { !it.isNullOrBlank() }
|
).all { it.isNotBlank() }
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
if (isReleaseSigningConfigured) {
|
if (isReleaseSigningConfigured) {
|
||||||
|
@ -120,6 +120,8 @@ android {
|
||||||
getByName("release").apply {
|
getByName("release").apply {
|
||||||
isMinifyEnabled = project.property("IS_MINIFY_ENABLED").toString().toBoolean()
|
isMinifyEnabled = project.property("IS_MINIFY_ENABLED").toString().toBoolean()
|
||||||
isShrinkResources = project.property("IS_MINIFY_ENABLED").toString().toBoolean()
|
isShrinkResources = project.property("IS_MINIFY_ENABLED").toString().toBoolean()
|
||||||
|
ndk.debugSymbolLevel = project.property("NDK_DEBUG_SYMBOL_LEVEL").toString()
|
||||||
|
|
||||||
proguardFiles(
|
proguardFiles(
|
||||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||||
"proguard-project.txt"
|
"proguard-project.txt"
|
||||||
|
|
|
@ -97,6 +97,7 @@ tasks {
|
||||||
"ZCASH_EMULATOR_WTF_API_KEY" to "",
|
"ZCASH_EMULATOR_WTF_API_KEY" to "",
|
||||||
|
|
||||||
"IS_MINIFY_ENABLED" to "true",
|
"IS_MINIFY_ENABLED" to "true",
|
||||||
|
"NDK_DEBUG_SYMBOL_LEVEL" to "symbol_table",
|
||||||
|
|
||||||
"ZCASH_RELEASE_APP_NAME" to "Zashi",
|
"ZCASH_RELEASE_APP_NAME" to "Zashi",
|
||||||
"ZCASH_RELEASE_PACKAGE_NAME" to "co.electriccoin.zcash",
|
"ZCASH_RELEASE_PACKAGE_NAME" to "co.electriccoin.zcash",
|
||||||
|
|
|
@ -50,6 +50,14 @@ ZCASH_FIREBASE_TEST_LAB_PROJECT=
|
||||||
# Optionally disable minification
|
# Optionally disable minification
|
||||||
IS_MINIFY_ENABLED=true
|
IS_MINIFY_ENABLED=true
|
||||||
|
|
||||||
|
# Optionally change the NDK debug symbols generation level
|
||||||
|
# Supported values are:
|
||||||
|
# - none (default, no native debug metadata will be packaged)
|
||||||
|
# - symbol_table (only the symbol tables will be packaged)
|
||||||
|
# - full (the debug info and symbol tables will be packaged)
|
||||||
|
# The result will be placed in app/build/outputs/native-debug-symbols/variant-name/native-debug-symbols.zip
|
||||||
|
NDK_DEBUG_SYMBOL_LEVEL=symbol_table
|
||||||
|
|
||||||
# If ZCASH_GOOGLE_PLAY_SERVICE_KEY_FILE_PATH is set and the deployment task is triggered, then
|
# If ZCASH_GOOGLE_PLAY_SERVICE_KEY_FILE_PATH is set and the deployment task is triggered, then
|
||||||
# VERSION_CODE is effectively ignored. VERSION_NAME is suffixed with the version code.
|
# VERSION_CODE is effectively ignored. VERSION_NAME is suffixed with the version code.
|
||||||
# If not using automated Google Play deployment, then these serve as the actual version numbers.
|
# If not using automated Google Play deployment, then these serve as the actual version numbers.
|
||||||
|
|
Loading…
Reference in New Issue