-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathpubspec.yaml
146 lines (133 loc) · 6.12 KB
/
pubspec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: flutter_charts
description: Charts Library for Flutter, written in Dart with Flutter. Allows to create line chart and bar chart by specifying data as a simple array.
# author: Milan Zimmermann <[email protected]> # Google does not like authors.
homepage: https://github.com/mzimmerm/flutter_charts/
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
# publish_to: https://pub.dartlang.org # OR 'none' if no publishing.
# documentation: https://pub.dartlang.org/packages/flutter_charts/doc
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# Example: version: 2.0.0+8
# means : versionName=2.0.0, versionCode=8
# processed this way : top/android/local.properties is generated with the above variables, then used in build.gradle
version: 0.5.2+8
# Without the "environment" section, we get message on
# `flutter packages pub publish`:
# Make sure your SDK constraint excludes old versions:
# 2021-12-10 : Flutter channel stable has: Flutter 2.8.0, Dart 2.15.0
# 2024-02-22 : Flutter channel stable has: Flutter 3.19.1, Dart 3.3.0
# 2024-08-20 : Flutter channel stable has: Flutter 3.24.0, Dart 3.5.0, DevTools 2.37.2
# sdk means Dart sdk version.
environment:
sdk: '>=2.17.0 <4.0.0'
# See https://www.dartlang.org/tools/pub/dependencies for dependency syntax,
# including how to depend on package on GitHub or local server.
dependencies:
flutter:
sdk: flutter
# todo-00-done-2025-01-01: decimal: ^3.0.0
decimal: ^3.1.0
vector_math: ^2.1.4
tuple: ^2.0.2
google_fonts: ^6.1.0
# todo-00-done-2025-01-01: logger: ^2.0.2+1
logger: ^2.5.0
# Example of dependency on another project: local, GitHub, locally hosted on own pub server on 8080,
#
# # local directory
# flutter_charts_common:
# path: ~/dev/my-projects-source/public-on-github/flutter_charts_common
#
# # github
# flutter_charts_common:
# git:
# url: https://github.com/mzimmerm/flutter_charts_common.git
# branch: master
#
# # locally hosted on own pub server on 8080
# flutter_charts_common:
# hosted:
# name: flutter_charts_common
# url: http://localhost:8080
#
# # this default assumes package on official pub repo
# flutter_charts_common:
dev_dependencies:
# dart_dev: ^3.0.0 # 'pub run dart_dev' runs analyze, format test
test:
flutter_test:
sdk: flutter
integration_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
# todo-00-done-2025-01-01: flutter_lints: ^4.0.0
# todo-00-done-2025-01-01: lints: ^4.0.0
flutter_lints: ^5.0.0
lints: ^5.1.1 # Note: lint rules == analyzer rules, define them in analysis_options.yaml
# 2022-10-10 removed as flutter pub upgrade fails:: analyzer: ^2.8.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:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the Icons class.
uses-material-design: true
# Self-host google fonts as assets require this section.
# Using Google Fonts as assets requires the client download ("install") the font files stated in assets,
# google_fonts/Comforter-Regular.ttf in the font we chose.
# Installing the fonts is needed in conjunction with setting
# `GoogleFonts.config.allowRuntimeFetching = false;` in test_main.dart.
# These 2 items (installing fonts and setting the configuration), are needed ONLY in integration tests.
# App works without those 2 additions.
# However, be aware that the default `GoogleFonts.config.allowRuntimeFetching = true;`
# potentially violates Europe's General Data Protection Regulation (GDPR), because the user's IP address
# is exposed outside Europe. That is another reason to self-host (download) the fonts.
fonts:
- family: 'Comforter'
fonts:
- asset: google_fonts/Comforter-Regular.ttf
# To add assets to your application, add an assets section here, in
# this "flutter" section, as in:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# To add assets from package dependencies, first ensure the asset
# is in the lib/ directory of the dependency. Then,
# refer to the asset with a path prefixed with
# `packages/PACKAGE_NAME/`. Note: the `lib/` is implied, do not
# include `lib/` in the asset path.
#
# Here is an example:
#
# assets:
# - packages/PACKAGE_NAME/path/to/asset
# To add custom fonts to your application, 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