-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Set the application-id in the Linux shell #60053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set the application-id in the Linux shell #60053
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
1229a9c
to
d840588
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, but could you update the has correct application id for android and bundle id for ios
test in create_test
to check for this as well? That would be a good way to ensure that if Android changes formats, Linux doesn't accidentally regress, for instance.
(You'll need to add FeatureFlags: () => TestFeatureFlags(isLinuxEnabled: true),
to the overrides
block at the end of the test so that the create step will include Linux.)
I've updated the test, but please check the following:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Started Google testing for this PR |
That would make the parsing less subject to accidental breakage. Probably worth doing in case this code gets used in production, rather than just tests.
No, that's just the mock context; it'll run everywhere.
Or if you use VS Code with the Flutter extension, you'll get an affordance to run individual tests from the UI. |
Google testing passed! |
I wasted far too much time trying to debug that regexp 🤯... @stuartmorgan, can you have a quick look and see if the CMake changes look good to you. The only other thing I was thinking is the application ID is coded into both the CMakeLists.txt and my_application.cc - we could use a define/generated header to pass that variable through. I'm not sure what your preferred method of doing is that with CMake or if it really matters. |
A |
Description
Set the application-id in the Linux shell.
Related Issues
Fixes #59234.
Tests
No tests added.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.