mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-03 07:39:16 +08:00

These flavours are really a pain in the ass. Maybe having a local diff would I never commit would have just been easier.
26 lines
680 B
Bash
Executable File
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
|