简体   繁体   中英

Is there a way to upload flutter's obfuscation mappings to Firebase Crashlytics

My flutter app uses obfuscation for builds and creates symbols. The crash stacktraces are appearing obfuscated in the Firebase Crashlytics console. I know that we can use "flutter symbolize -i command" to deobfuscate a stacktrace, but is there a way to upload this symbols to Firebase Crashlytics console?

Based on this document , if your Flutter project uses the --split-debug-info flag (and, optionally, the --obfuscate flag), you need to use the Firebase CLI (v.11.9.0+) to upload Android symbols.

From the root directory of your Flutter project, run the following command:

firebase crashlytics:symbols:upload --app=APP_ID PATH/TO/symbols

The PATH/TO/symbols directory is the same directory that you pass to the --split-debug-info flag when building the application.

Also, you can find the app ID in the firebase_options.dart file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM