Skip to content

Newly created iOS/macOS plugins should support SwiftPM and CocoaPods #180926

Description

@vashworth

Update create template code so all newly created iOS and macOS plugins should support both SwiftPM and CocoaPods even if the SwiftPM feature flag is off.

final bool useSwiftPackageManager =
(templateContext['ios'] == true || templateContext['macos'] == true || includeDarwin) &&
featureFlags.isSwiftPackageManagerEnabled;
if (useSwiftPackageManager) {
if (includeDarwin) {
templates.add('plugin_darwin_spm');
} else {
templates.add('plugin_swift_package_manager');
}

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions