mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Android: Try to setup crashlytics stack traces
This commit is contained in:
@ -29,6 +29,9 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build/app/outputs/apk/release/app-release.apk
|
path: build/app/outputs/apk/release/app-release.apk
|
||||||
destination: gitjournal.apk
|
destination: gitjournal.apk
|
||||||
|
- run:
|
||||||
|
name: Upload Crashlytics Symbols
|
||||||
|
command: ./scripts/android_crashlytics.sh
|
||||||
- run:
|
- run:
|
||||||
name: Publish Beta
|
name: Publish Beta
|
||||||
command: cd android && fastlane betaBuild
|
command: cd android && fastlane betaBuild
|
||||||
|
@ -108,3 +108,9 @@ dependencies {
|
|||||||
|
|
||||||
apply plugin: 'com.google.gms.google-services'
|
apply plugin: 'com.google.gms.google-services'
|
||||||
apply plugin: 'io.fabric'
|
apply plugin: 'io.fabric'
|
||||||
|
|
||||||
|
crashlytics {
|
||||||
|
enableNdk true
|
||||||
|
androidNdkOut "../../debugSymbols"
|
||||||
|
androidNdkLibsOut "../../build/app/intermediates/transforms/stripDebugSymbol/release/0/lib"
|
||||||
|
}
|
25
scripts/android_crashlytics.sh
Executable file
25
scripts/android_crashlytics.sh
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
cd ../
|
||||||
|
|
||||||
|
# Copy mergeJniLibs to debugSymbols
|
||||||
|
cp -R ./build/app/intermediates/transforms/mergeJniLibs/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 crashlyticsUploadSymbolsRelease
|
Reference in New Issue
Block a user