mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() When Swift Package Manager feature is enabled, create app and create plugin will have Swift Package Manager integration already added and will not need to undergo a migration. Fixes https://github.com/flutter/flutter/issues/146371. ``` flutter config --enable-swift-package-manager flutter create --ios-language swift --platforms ios,macos swift_app_name flutter create --ios-language objc --platforms ios objc_app_name flutter create --template=plugin --ios-language swift --platforms ios,macos swift_plugin_name flutter create --template=plugin --ios-language objc --platforms ios objc_plugin_name ``` |
||
---|---|---|
.. | ||
android-java.tmpl | ||
android-kotlin.tmpl | ||
android.tmpl | ||
ios-objc.tmpl | ||
ios-swift.tmpl | ||
ios.tmpl | ||
lib | ||
linux.tmpl | ||
test | ||
windows.tmpl | ||
README.md.tmpl |
# {{projectName}} {{description}} ## Getting Started This project is a starting point for a Flutter [plug-in package](https://flutter.dev/developing-packages/), a specialized package that includes platform-specific implementation code for Android and/or iOS. For help getting started with Flutter development, view the [online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference. {{#no_platforms}} The plugin project was generated without specifying the `--platforms` flag, no platforms are currently supported. To add platforms, run `flutter create -t plugin --platforms <platforms> .` in this directory. You can also find a detailed instruction on how to add platforms in the `pubspec.yaml` at https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms. {{/no_platforms}}