Repository navigation
feat(android): upload Dart symbols to Crashlytics for release builds - #1194
Merged
Merged
Conversation
Native crashes in libapp.so (Dart AOT code) were unsymbolicated in Crashlytics because Dart symbols were never uploaded (#1189, C2). With FIREBASE_CRASHLYTICS_ENABLED=true, `make flutter/android/apk` and `flutter/android/appbundle` now build with --split-debug-info (one folder per artifact) and upload the symbols with `firebase crashlytics:symbols:upload`. The upload script fails the build unless the CLI exits 0 and reports success, since the standalone binary can exit 0 on internal errors. The gate is evaluated lazily so it also works when set in firebase_options.env. The Android Docker image gets the pinned standalone Firebase CLI (v15.33.0, sha256-checked). The upload needs no Firebase login. CI also keeps a copy of the symbols in the build bucket for `flutter symbolize`.
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
|
freedomtan
approved these changes
Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Part of #1189: makes
libapp.socrashes (C2) readable in Crashlytics.When
FIREBASE_CRASHLYTICS_ENABLED=true, Android release builds now use--split-debug-infoand upload the Dart symbols withfirebase crashlytics:symbols:upload. If the upload fails, the build fails. Builds with the flag off are unchanged.flutter/tool/upload-dart-symbols.sh: does the upload. It needs onlyFIREBASE_ANDROID_APP_ID(no login).Tested in this PR's CI: APK and AAB symbols both uploaded.