Skip to content

feat(android): upload Dart symbols to Crashlytics for release builds - #1194

Merged
anhappdev merged 1 commit into
masterfrom
feat/android-dart-symbols
Nov 3, 2026
Merged

anhappdev merged 1 commit into
masterfrom
feat/android-dart-symbols

Conversation

@anhappdev

@anhappdev anhappdev commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #1189: makes libapp.so crashes (C2) readable in Crashlytics.

When FIREBASE_CRASHLYTICS_ENABLED=true, Android release builds now use --split-debug-info and upload the Dart symbols with firebase 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 only FIREBASE_ANDROID_APP_ID (no login).
  • Docker image: adds the Firebase CLI, pinned to v15.33.0.
  • CI: also copies the symbols to the build bucket.

Tested in this PR's CI: APK and AAB symbols both uploaded.

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`.
@anhappdev
anhappdev requested a review from a team as a code owner November 2, 2026 10:36
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@anhappdev
anhappdev merged commit 2c0df11 into master Nov 3, 2026
49 of 50 checks passed
@anhappdev
anhappdev deleted the feat/android-dart-symbols branch November 3, 2026 06:56
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants