docs(flutter): document Android flavor workaround for split-debug-info#17268
Open
docs(flutter): document Android flavor workaround for split-debug-info#17268
Conversation
Add a troubleshooting entry for Flutter flavor builds that can overwrite the selected flavor’s Dart symbol files and break Android symbolication.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
buenaflor
reviewed
Apr 7, 2026
| --target=lib/main_googlePlay.dart \ | ||
| --obfuscate \ | ||
| --split-debug-info=debug_info/googlePlay \ | ||
| --android-project-arg=active-flavor=googlePlay |
There was a problem hiding this comment.
Bug: The suggested workaround may fail silently. If the --android-project-arg flag doesn't set the Gradle property as expected, the variantFilter logic is bypassed, and no build variants are filtered.
Severity: MEDIUM
Suggested Fix
Verify that --android-project-arg correctly passes the property to the variantFilter block. Add a log statement or error handling to the Kotlin script to warn the user if the active-flavor property is not found. Update the documentation with steps for the user to confirm the workaround is active.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: docs/platforms/dart/guides/flutter/troubleshooting.mdx#L153
Potential issue: The documentation suggests a workaround using the
`--android-project-arg=active-flavor=googlePlay` flag to filter Android build variants.
The corresponding Kotlin code retrieves this value using
`project.findProperty("active-flavor")`. If the flag fails to set the Gradle property,
`findProperty` returns `null`, causing the logic to exit silently (`?:
return@variantFilter`). This bypasses the intended variant filtering, leading to a
silent failure where users believe the workaround is active, but it provides no
protection against the original issue of overwritten `.symbols` files.
Did we get this right? 👍 / 👎 to inform future reviews.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
DESCRIBE YOUR PR
Add a troubleshooting entry for Flutter flavor builds that can overwrite the selected flavor’s Dart symbol files and break Android symbolication.
Relates to getsentry/sentry-dart-plugin#379
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
EXTRA RESOURCES
Sentry Dart Plugin Issue