Skip to content

Commit

Permalink
update pubspec.yaml.tmpl of package and plugin (flutter#12238)
Browse files Browse the repository at this point in the history
  • Loading branch information
szakarias committed Sep 25, 2017
1 parent e04bf32 commit 82ec7a2
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 5 deletions.
39 changes: 37 additions & 2 deletions packages/flutter_tools/templates/package/pubspec.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,46 @@ version: 0.0.1
author:
homepage:

flutter:

dependencies:
flutter:
sdk: flutter

dev_dependencies:
test: ^0.12.0

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# To add assets to your package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.io/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.io/assets-and-images/#resolution-aware.

# To add custom fonts to your package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.io/custom-fonts/#from-packages
41 changes: 38 additions & 3 deletions packages/flutter_tools/templates/plugin/pubspec.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,46 @@ version: 0.0.1
author:
homepage:

dependencies:
flutter:
sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
plugin:
androidPackage: {{androidIdentifier}}
pluginClass: {{pluginClass}}

dependencies:
flutter:
sdk: flutter
# To add assets to your plugin package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.io/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.io/assets-and-images/#resolution-aware.

# To add custom fonts to your plugin package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.io/custom-fonts/#from-packages

0 comments on commit 82ec7a2

Please sign in to comment.