From 5cceee63ea61f70323210c9d7ebe05235f54b5f6 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Fri, 10 Jun 2022 01:25:27 +0200 Subject: [PATCH] [android] Do not generate debug symbols for debug builds Signed-off-by: Alexander Borsuk --- android/build.gradle | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index c37bb73e0c..50bbede8c6 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -314,7 +314,8 @@ android { signingConfig signingConfigs.debug resValue 'string', 'app_id', android.defaultConfig.applicationId + applicationIdSuffix resValue 'string', 'app_name', project.ext.appName + ' ' + '(Debug)' - ndk.debugSymbolLevel = 'SYMBOL_TABLE' + // Do not generate separate debug symbols for debug apps, because we don't distribute them. + ndk.debugSymbolLevel = 'none' if (googleFirebaseServicesEnabled) { firebaseCrashlytics { @@ -330,9 +331,9 @@ android { proguardFile('proguard-mwm.txt') resValue 'string', 'app_id', android.defaultConfig.applicationId resValue 'string', 'app_name', project.ext.appName - ndk { - debugSymbolLevel 'SYMBOL_TABLE' - } + // Full size symbols are too big for Google, 217mb aab vs 95mb. + ndk.debugSymbolLevel = 'symbol_table' + if (googleFirebaseServicesEnabled) { firebaseCrashlytics { nativeSymbolUploadEnabled true @@ -347,9 +348,9 @@ android { matchingFallbacks = ['debug', 'release'] resValue 'string', 'app_id', android.defaultConfig.applicationId + applicationIdSuffix resValue 'string', 'app_name', project.ext.appName + ' ' + '(Beta)' - ndk { - debugSymbolLevel 'SYMBOL_TABLE' - } + // Full size symbols are too big for Google, 217mb aab vs 95mb. + ndk.debugSymbolLevel = 'symbol_table' + if (googleFirebaseServicesEnabled) { firebaseCrashlytics { nativeSymbolUploadEnabled true