flutter/packages/flutter_tools/templates/plugin
Victoria Ashworth 5a63b1df95
Add create app and plugin templates for Swift Package Manager (#147082)
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
```
2024-04-24 22:46:20 +00:00
..
android-java.tmpl Android Gradle file templates: make it easier to convert them to Kotlin DSL in the future (#142146) 2024-02-15 23:42:13 +00:00
android-kotlin.tmpl Android Gradle file templates: make it easier to convert them to Kotlin DSL in the future (#142146) 2024-02-15 23:42:13 +00:00
android.tmpl Remove files that are unnecessary in a plugin (#89445) 2021-09-07 11:11:05 -07:00
ios-objc.tmpl Add create app and plugin templates for Swift Package Manager (#147082) 2024-04-24 22:46:20 +00:00
ios-swift.tmpl Add create app and plugin templates for Swift Package Manager (#147082) 2024-04-24 22:46:20 +00:00
ios.tmpl Add create app and plugin templates for Swift Package Manager (#147082) 2024-04-24 22:46:20 +00:00
lib flutter test --wasm support (#145347) 2024-03-21 20:08:07 +00:00
linux.tmpl Fix typos (#121171) 2023-02-23 19:43:21 +00:00
test Deprecate these old APIs (#116793) 2023-04-06 19:53:50 +00:00
windows.tmpl Opt into CMake policy CMP0135 (#125502) 2023-04-28 17:49:54 -04:00
README.md.tmpl [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00

# {{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}}