pubspec.yaml.tmpl 2.83 KB
Newer Older
1 2
name: {{projectName}}
description: {{description}}
3 4
version: 0.0.1
homepage:
5

6
environment:
7
  sdk: {{dartSdkVersionBounds}}
8
  flutter: ">=1.20.0"
9

10 11 12
dependencies:
  flutter:
    sdk: flutter
13 14 15 16
{{#web}}
  flutter_web_plugins:
    sdk: flutter
{{/web}}
17

18 19 20
dev_dependencies:
  flutter_test:
    sdk: flutter
21
  flutter_lints: ^1.0.0
22

23
# For information on the generic Dart part of this file, see the
24
# following page: https://dart.dev/tools/pub/pubspec
25 26

# The following section is specific to Flutter.
27
flutter:
28
  # This section identifies this Flutter project as a plugin project.
29 30 31 32 33
  # The 'pluginClass' and Android 'package' identifiers should not ordinarily
  # be modified. They are used by the tooling to maintain consistency when
  # adding or updating assets for this project.
  plugin:
    platforms:
34 35
{{#no_platforms}}
    # This plugin project was generated without specifying any
36
    # platforms with the `--platform` argument. If you see the `some_platform` map below, remove it and
37 38 39 40 41 42 43 44
    # then add platforms following the instruction here:
    # https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms
    # -------------------
      some_platform:
        pluginClass: somePluginClass
    # -------------------
{{/no_platforms}}
{{#android}}
45 46 47
      android:
        package: {{androidIdentifier}}
        pluginClass: {{pluginClass}}
48 49
{{/android}}
{{#ios}}
50 51
      ios:
        pluginClass: {{pluginClass}}
52
{{/ios}}
53 54 55 56
{{#linux}}
      linux:
        pluginClass: {{pluginClass}}
{{/linux}}
57
{{#macos}}
58 59
      macos:
        pluginClass: {{pluginClass}}
60
{{/macos}}
61 62 63 64
{{#windows}}
      windows:
        pluginClass: {{pluginClass}}
{{/windows}}
65 66 67 68 69
{{#web}}
      web:
        pluginClass: {{pluginDartClass}}Web
        fileName: {{projectName}}_web.dart
{{/web}}
70

71 72
  # To add assets to your plugin package, add an assets section, like this:
  # assets:
73 74
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg
75 76
  #
  # For details regarding assets in packages, see
77
  # https://flutter.dev/assets-and-images/#from-packages
78 79
  #
  # An image asset can refer to one or more resolution-specific "variants", see
80
  # https://flutter.dev/assets-and-images/#resolution-aware.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99

  # 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
100
  # https://flutter.dev/custom-fonts/#from-packages