gradle: make debug apk builds debuggable

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2320>
This commit is contained in:
Korcan Hussein 2024-08-29 14:26:05 +01:00
parent 738acfbcf7
commit 30d8e29ee1
2 changed files with 12 additions and 1 deletions

View file

@ -4,4 +4,4 @@
android.nonFinalResIds=false android.nonFinalResIds=false
android.nonTransitiveRClass=false android.nonTransitiveRClass=false
android.useAndroidX = true android.useAndroidX = true
org.gradle.jvmargs=-Xmx2048m

View file

@ -201,6 +201,11 @@ android {
// Gradle plugin produces proguard-android-optimize.txt from @Keep annotations // Gradle plugin produces proguard-android-optimize.txt from @Keep annotations
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
debug {
minifyEnabled false
debuggable true
jniDebuggable true
}
} }
externalNativeBuild { externalNativeBuild {
@ -255,6 +260,12 @@ android {
} }
} }
androidComponents {
onVariants(selector().withBuildType("debug")) {
packaging.jniLibs.keepDebugSymbols.add("**")
}
}
aboutLibraries { aboutLibraries {
// Full license text for license IDs mentioned here // Full license text for license IDs mentioned here
// will be included, even if no detected dependency uses them. // will be included, even if no detected dependency uses them.