Files
GitJournal/scripts/android_crashlytics.sh
Vishesh Handa fe6fb3db00 Crashlytics Symbols Upload: Another issue because of flavours
These flavours are really a pain in the ass. Maybe having a local diff
would I never commit would have just been easier.
2019-12-12 00:45:59 +01:00

26 lines
680 B
Bash
Executable File

#!/usr/bin/env bash
set -x
set -eu
cd "$(dirname "$0")"
cd ../
# Copy mergeJniLibs to debugSymbols
cp -R ./build/app/intermediates/transforms/mergeJniLibs/prod/release/0/lib debugSymbols
# The libflutter.so here is the same as in the artifacts.zip found with symbols.zip
cd debugSymbols/armeabi-v7a
# Download the corresponding libflutter.so with debug symbols
ENGINE_VERSION=$(cat $FLUTTER_HOME/bin/internal/engine.version)
gsutil cp gs://flutter_infra/flutter/${ENGINE_VERSION}/android-arm-release/symbols.zip .
# Replace libflutter.so
unzip -o symbols.zip
rm -rf symbols.zip
# Upload symbols to Crashlytics
cd ../../android
./gradlew crashlyticsUploadSymbolsProdRelease