SDL: generate .aab file with the debug symbols, but strip .apk file
This commit is contained in:
@@ -14,7 +14,11 @@ android {
|
|||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '../proguard-local.cfg', '../proguard.cfg'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '../proguard-local.cfg', '../proguard.cfg'
|
||||||
|
}
|
||||||
|
releaseWithDebugInfo {
|
||||||
|
initWith release
|
||||||
ndk {
|
ndk {
|
||||||
debugSymbolLevel 'FULL'
|
debugSymbolLevel 'FULL'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,14 +12,14 @@ APPVER=`grep AppVersionName AndroidAppSettings.cfg | sed 's/.*=//' | tr -d '"' |
|
|||||||
|
|
||||||
cd project
|
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
|
# 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
|
# Sign with the new certificate
|
||||||
echo Using keystore $ANDROID_UPLOAD_KEYSTORE_FILE and alias $ANDROID_UPLOAD_KEYSTORE_ALIAS
|
echo Using keystore $ANDROID_UPLOAD_KEYSTORE_FILE and alias $ANDROID_UPLOAD_KEYSTORE_ALIAS
|
||||||
stty -echo
|
stty -echo
|
||||||
|
|||||||
Reference in New Issue
Block a user