flutter/packages/flutter_tools/templates/plugin
stuartmorgan 685e9d1e47
Add pre-stable support for create on Windows (#51895)
Adds initial support for flutter create of apps and plugins. This is derived from the current FDE example app and sample plugin, adding template values where relevant.

Since the APIs/tooling/template aren't stable yet, the app template includes a version marker, which will be updated each time there's a breaking change. The build now checks that the template version matches the version known by that version of the tool, and gives a specific error message when there's a mismatch, which improves over the current breaking change experience of hitting whatever build failure the breaking change causes and having to figure out that the problem is that the runner is out of date. It also adds a warning to the create output about the fact that it won't be stable.

Plugins don't currently have a version marker since in practice this is not a significant problem for plugins yet the way it is for runners; we can add it later if that changes.

Fixes #30704
2020-03-23 10:42:26 -07:00
..
.idea Update idea template files (#24311) 2018-11-14 13:45:07 -08:00
android-java.tmpl Make --androidx flag a noop in flutter create (#52340) 2020-03-10 20:05:41 -07:00
android-kotlin.tmpl Make --androidx flag a noop in flutter create (#52340) 2020-03-10 20:05:41 -07:00
android.tmpl Make --androidx flag a noop in flutter create (#52340) 2020-03-10 20:05:41 -07:00
ios-objc.tmpl Add swift_versions to plugin template podspec, include default CocoaPod version (#44324) 2019-11-08 18:00:01 -08:00
ios-swift.tmpl Add swift_versions to plugin template podspec, include default CocoaPod version (#44324) 2019-11-08 18:00:01 -08:00
ios.tmpl Add swift_versions to plugin template podspec, include default CocoaPod version (#44324) 2019-11-08 18:00:01 -08:00
lib Turn Dart 2 mode by default. (#15565) 2018-03-16 20:29:38 +01:00
linux.tmpl Add pre-stable support for create on Windows (#51895) 2020-03-23 10:42:26 -07:00
macos.tmpl Add swift_versions to plugin template podspec, include default CocoaPod version (#44324) 2019-11-08 18:00:01 -08:00
test Fix plugin template app's tests (#39080) 2019-08-26 14:57:16 -07:00
windows.tmpl Add pre-stable support for create on Windows (#51895) 2020-03-23 10:42:26 -07:00
.gitignore.tmpl Do not ignore pubspec.lock in project templates (#24209) 2019-01-09 10:10:38 -08:00
.metadata.tmpl Rename module --> application in flutter create command. (#22565) 2018-10-04 13:03:20 -07:00
CHANGELOG.md.tmpl Update plugin template to comply with new type and style rules (#17840) 2018-05-24 08:49:17 +02:00
LICENSE.tmpl Add --template=<type> option to create command. (#11105) 2017-08-23 13:29:31 +02:00
projectName.iml.tmpl update intellij metadata in template files (#16211) 2018-04-04 09:36:34 -07:00
pubspec.yaml.tmpl Allow recent Dart language features (#52879) 2020-03-19 16:54:34 -07:00
README.md.tmpl Replace flutter.io with flutter.dev (#30562) 2019-04-05 11:39:30 -07: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, view our 
[online documentation](https://flutter.dev/docs), which offers tutorials, 
samples, guidance on mobile development, and a full API reference.