Report Flutter framework feature flags#2991
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2991 +/- ##
==========================================
+ Coverage 87.74% 88.89% +1.15%
==========================================
Files 286 97 -189
Lines 9719 3522 -6197
==========================================
- Hits 8528 3131 -5397
+ Misses 1191 391 -800 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Giancarlo Buenaflor <[email protected]>
|
I would still wait with merging this PR until the linked PR is merged |
| // if it's not in there. | ||
| // As a result, we also don't know the whole list of flags, but only the active ones. | ||
| // | ||
| // See https://github.com/flutter/flutter/pull/168437 |
There was a problem hiding this comment.
Hello, I'm sure you're aware but this reaches into Flutter internals that aren't meant to be public. This isn't covered by Flutter's breaking change policy. I'd assume the format of FLUTTER_ENABLED_FEATURE_FLAGS can and will change, even in a patch release. The current changes seem reasonable, but I'd consider documenting this so that future contributors are aware as well.
|
@buenaflor The dependent PR in the Flutter framework has landed, so I would say we can go ahead and merge this PR |
|
@ueman sounds good also does the cursor review make sense? if not we can just ignore it |
|
I assume those cases should not happen since the flags are supplied by the flutter tool and not user generated, but I added code and tests for them anyway |
📜 Description
There's a Flutter framework PR (
flutter/flutter#168437, flutter/flutter#171545 (reland of the first PR)) that adds feature flags to Flutter itself.This PR supports that
💡 Motivation and Context
I want know whether a specific build used one of the feature flags.
💚 How did you test it?
Automated tests
📝 Checklist
sendDefaultPiiis enabled🔮 Next steps
I'll keep this a draft until the linked PR is merged for some time. Afterwards this PR can be landed.