SDL: generate .aab file with the debug symbols, but strip .apk file

This commit is contained in:
Sergii Pylypenko
2021-12-11 00:44:00 +02:00
parent dd1d2c1be6
commit b63e1c0ed8
2 changed files with 8 additions and 4 deletions

View File

@@ -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'
}

View File

@@ -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