-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Refactor BuildIOSFrameworkCommand with common darwin baseclass #105194
Conversation
s.license = { :type => 'MIT' } | ||
s.summary = 'A UI toolkit for beautiful and fast apps.' | ||
s.homepage = 'https://flutter.dev' | ||
s.license = { :type => 'BSD' } |
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.
..addFlag('universal', | ||
help: '(deprecated) Produce universal frameworks that include all valid architectures.', | ||
hide: !verboseHelp, | ||
) | ||
..addFlag('xcframework', |
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.
These are both deprecated, don't add to new command that will inherit from BuildFrameworkCommand
.
}) : _injectedFlutterVersion = flutterVersion, | ||
_buildSystem = buildSystem, | ||
_injectedCache = cache, | ||
_injectedPlatform = platform, | ||
super(verboseHelp: verboseHelp) { | ||
addTreeShakeIconsFlag(); | ||
usesTargetOption(); | ||
usesFlavorOption(); |
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.
macOS doesn't support flavors, only add option in subclass BuildIOSFrameworkCommand
@@ -410,7 +474,6 @@ end | |||
Directory iPhoneBuildOutput, | |||
Directory simulatorBuildOutput, | |||
Directory modeDirectory, | |||
Directory outputDirectory, |
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 param was unused.
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
I am working on #104866 and want a common baseclass to share between
build ios-framework
andbuild macos-framework
. To keep that PR smaller, factor out the common properties and the xcframework logic that will be used by both.Renamed test
build_ios_framework_test
tobuild_darwin_framework_test
since the new macOS tests will live in that file, and if I change it now git will track the rename.Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.