-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Case insensitive check flavor names against Xcode schemes #61140
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
Conversation
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.
Xcode 12 didn't like this and removed it.
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.
rip
| } | ||
| } | ||
|
|
||
| Future<void> makeHostAppEditable() async { |
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.
☠️ ded
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.
rip
| ) || globals.cache.isOlderThanToolsStamp(ephemeralDirectory); | ||
| } | ||
|
|
||
| Future<void> makeHostAppEditable() async { |
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.
moar ded
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.
rip
| }); | ||
| }); | ||
|
|
||
| group('editable Android host app', () { |
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.
Remove dead code tests
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.
rip
| if (ios.existsSync()) | ||
| await ios.productBundleIdentifier(null), | ||
| if (android.existsSync()) ...<String>[ | ||
| android.applicationId, | ||
| android.group, | ||
| ], | ||
| if (example.android.existsSync()) | ||
| example.android.applicationId, | ||
| if (example.ios.existsSync()) | ||
| await example.ios.productBundleIdentifier(null), |
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.
This wasted time shelling out to tooling in nonexistent directories when creating a new project.
| expect(await project.ios.productBundleIdentifier(null), 'io.flutter.someProject.suffix'); | ||
| }); | ||
|
|
||
| testWithMocks('fails with no flavor and defined schemes', () async { |
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.
TIL about testWithMocks
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.
Will add this to my deprecate/remove list :)
| ); | ||
|
|
||
| expect( | ||
| () => defaultInfo.reportFlavorNotFoundAndExit(), |
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.
technically, you could pass in defaultInfo.reportFlavorNotFoundAndExit as a tear-off, since the throws matchers just require a zero-arity function. Just an FYI
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.
Audited, got a PR coming your way.
jonahwilliams
left a comment
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
* Fix SliverList scrollOffsetCorrection 0 case (#62615) * Case insensitive check flavor names against Xcode schemes (#61140) * Address misc time picker design issues (#62803) * Update to the latest localizations (#63026) * Removed the inputFormatters from the text input fields used by the Date Pickers (#63461) * Fix App.framework path in Podfile (#63412) * Update engine hash to 1.20.2 Co-authored-by: Kate Lovett <[email protected]> Co-authored-by: Jenn Magder <[email protected]> Co-authored-by: Rami <[email protected]> Co-authored-by: Shi-Hao Hong <[email protected]> Co-authored-by: Darren Austin <[email protected]>
Description
Check
--flavorparameter against Xcode schemes case insensitively. Exit earlier if the scheme names don't match.Remove dead "make editable" code while we're here.
Related Issues
Fixes #59029.
Tests
Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change