From d5337a2346940c5c5ac9fdbd0d02fb5666fc7002 Mon Sep 17 00:00:00 2001 From: Dan Field Date: Fri, 19 Oct 2018 13:11:51 -0700 Subject: [PATCH] Clarify plugin/example/pubspec.yaml (#23298) --- packages/flutter_tools/templates/app/pubspec.yaml.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl index 2a9bba4c854..230c19d633f 100644 --- a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl @@ -1,5 +1,9 @@ name: {{projectName}} description: {{description}} +{{#withPluginHook}} +publish_to: 'none' +{{/withPluginHook}} +{{^withPluginHook}} # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 @@ -8,6 +12,7 @@ description: {{description}} # build by specifying --build-name and --build-number, respectively. # Read more about versioning at semver.org. version: 1.0.0+1 +{{/withPluginHook}} environment: sdk: ">=2.0.0-dev.68.0 <3.0.0"