diff --git a/project/app/build-template.gradle b/project/app/build-template.gradle index d8e56c2c2..200d77d78 100644 --- a/project/app/build-template.gradle +++ b/project/app/build-template.gradle @@ -14,7 +14,11 @@ android { buildTypes { release { minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '../proguard-local.cfg', '../proguard.cfg' + } + releaseWithDebugInfo { + initWith release ndk { debugSymbolLevel 'FULL' } diff --git a/signBundle.sh b/signBundle.sh index 4f4e7e90c..140dae663 100755 --- a/signBundle.sh +++ b/signBundle.sh @@ -12,14 +12,14 @@ APPVER=`grep AppVersionName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' | cd project -./gradlew bundleRelease || exit 1 +./gradlew bundleReleaseWithDebugInfo || exit 1 -../copyAssets.sh pack-binaries-bundle app/build/outputs/bundle/release/app-release.aab +../copyAssets.sh pack-binaries-bundle app/build/outputs/bundle/releaseWithDebugInfo/app-releaseWithDebugInfo.aab -cd app/build/outputs/bundle/release || exit 1 +cd app/build/outputs/bundle/releaseWithDebugInfo || exit 1 # Remove old certificate -cp -f app-release.aab ../../../../../../$APPNAME-$APPVER.aab || exit 1 +cp -f app-releaseWithDebugInfo.aab ../../../../../../$APPNAME-$APPVER.aab || exit 1 # Sign with the new certificate echo Using keystore $ANDROID_UPLOAD_KEYSTORE_FILE and alias $ANDROID_UPLOAD_KEYSTORE_ALIAS stty -echo