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'); |
|
} |
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.
flutter/packages/flutter_tools/lib/src/commands/create.dart
Lines 741 to 750 in 48c2475