Skip to content

Commit 2783bd1

Browse files
authored
Modify pubspec.yaml for project setup
Updated Flutter project dependencies and configurations.
1 parent caf1097 commit 2783bd1

1 file changed

Lines changed: 27 additions & 73 deletions

File tree

pubspec.yaml

Lines changed: 27 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,35 @@
11
name: pslab
2-
description: "A new Flutter project."
3-
# The following line prevents the package from being accidentally published to
4-
# pub.dev using `flutter pub publish`. This is preferred for private packages.
5-
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
2+
description: "PSLab app"
3+
publish_to: 'none'
64

7-
# The following defines the version and build number for your application.
8-
# A version number is three numbers separated by dots, like 1.2.43
9-
# followed by an optional build number separated by a +.
10-
# Both the version and the builder number may be overridden in flutter
11-
# build by specifying --build-name and --build-number, respectively.
12-
# In Android, build-name is used as versionName while build-number used as versionCode.
13-
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
14-
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
15-
# Read more about iOS versioning at
16-
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
17-
# In Windows, build-name is used as the major, minor, and patch parts
18-
# of the product and file versions while build-number is used as the build suffix.
195
version: 1.0.0+1
206

217
environment:
22-
sdk: ">=3.7.2 <4.0.0"
8+
sdk: ^3.5.4
9+
flutter: '3.41.5'
2310

24-
# Dependencies specify other packages that your package needs in order to work.
25-
# To automatically upgrade your package dependencies to the latest versions
26-
# consider running `flutter pub upgrade --major-versions`. Alternatively,
27-
# dependencies can be manually updated by changing the version numbers below to
28-
# the latest version available on pub.dev. To see which dependencies have newer
29-
# versions available, run `flutter pub outdated`.
3011
dependencies:
3112
flutter:
3213
sdk: flutter
3314
flutter_localizations:
3415
sdk: flutter
3516
intl: any
3617

37-
# The following adds the Cupertino Icons font to your application.
38-
# Use with the CupertinoIcons class for iOS style icons.
3918
cupertino_icons: ^1.0.8
4019
flutter_svg: ^2.2.0
4120
google_fonts: ^8.0.2
42-
fl_chart: 1.0.0
21+
fl_chart: ^1.1.0
4322
provider: ^6.1.5
44-
usb_serial: ^0.5.0
23+
usb_serial:
24+
git:
25+
url: https://github.com/marcnause/usbserial.git
26+
ref: master
4527
get_it: ^9.2.1
4628
record: ^6.2.0
4729
data: ^0.15.1
4830
permission_handler: ^12.0.1
4931
logger: ^2.6.1
50-
url_launcher: ^6.3.2
32+
url_launcher: 6.2.2
5133
font_awesome_flutter: ^10.10.0
5234
package_info_plus: ^9.0.0
5335
sensors_plus: ^7.0.0
@@ -61,7 +43,7 @@ dependencies:
6143
csv: ^7.1.0
6244
share_plus: ^12.0.0
6345
path_provider: ^2.1.5
64-
file_picker: ^10.3.9
46+
file_picker: ^10.3.2
6547
flutter_screenutil: ^5.9.3
6648
flusbserial: ^0.3.0
6749
inno_bundle: ^0.11.2
@@ -76,26 +58,16 @@ dependencies:
7658
dependency_overrides:
7759
ffi: ^2.1.3
7860

79-
8061
dev_dependencies:
8162
flutter_launcher_icons: ^0.14.1
8263
flutter_test:
8364
sdk: flutter
8465
integration_test:
8566
sdk: flutter
8667

87-
# The "flutter_lints" package below contains a set of recommended lints to
88-
# encourage good coding practices. The lint set provided by the package is
89-
# activated in the `analysis_options.yaml` file located at the root of your
90-
# package. See that file for information about deactivating specific lint
91-
# rules and activating additional ones.
9268
flutter_lints: ^6.0.0
9369
flutter_oss_licenses: ^3.0.4
9470

95-
# For information on the generic Dart part of this file, see the
96-
# following page: https://dart.dev/tools/pub/pubspec
97-
98-
# The following section is specific to Flutter packages.
9971
flutter:
10072
generate: true
10173

@@ -105,44 +77,13 @@ flutter:
10577
- asset: fonts/Digital-7.ttf
10678
- asset: fonts/Digital-7-Italic.ttf
10779
style: italic
108-
# The following line ensures that the Material Icons font is
109-
# included with your application, so that you can use the icons in
110-
# the material Icons class.
80+
11181
uses-material-design: true
11282

113-
# To add assets to your application, add an assets section, like this:
11483
assets:
11584
- assets/icons/
11685
- assets/images/
117-
# assets:
118-
# - images/a_dot_burr.jpeg
119-
# - images/a_dot_ham.jpeg
120-
121-
# An image asset can refer to one or more resolution-specific "variants", see
122-
# https://flutter.dev/to/resolution-aware-images
123-
124-
# For details regarding adding assets from package dependencies, see
125-
# https://flutter.dev/to/asset-from-package
12686

127-
# To add custom fonts to your application, add a fonts section here,
128-
# in this "flutter" section. Each entry in this list should have a
129-
# "family" key with the font family name, and a "fonts" key with a
130-
# list giving the asset and other descriptors for the font. For
131-
# example:
132-
# fonts:
133-
# - family: Schyler
134-
# fonts:
135-
# - asset: fonts/Schyler-Regular.ttf
136-
# - asset: fonts/Schyler-Italic.ttf
137-
# style: italic
138-
# - family: Trajan Pro
139-
# fonts:
140-
# - asset: fonts/TrajanPro.ttf
141-
# - asset: fonts/TrajanPro_Bold.ttf
142-
# weight: 700
143-
#
144-
# For details regarding fonts from package dependencies,
145-
# see https://flutter.dev/to/font-from-package
14687
inno_bundle:
14788
id: b633ddbf-a022-4cbb-a459-4ba9fec0da51
14889
name: PSLab
@@ -155,10 +96,23 @@ flutter_launcher_icons:
15596
android: "launcher_icon"
15697
ios: true
15798
remove_alpha_ios: true
158-
15999
image_path: "assets/icons/icon.png"
160-
161100
adaptive_icon_background: "#FFFFFF"
162101
adaptive_icon_foreground: "assets/icons/icon.png"
163102
adaptive_icon_monochrome: "assets/icons/icon.png"
164103
adaptive_icon_foreground_inset: 22
104+
105+
web:
106+
generate: true
107+
image_path: "assets/icons/icon.png"
108+
background_color: "#FFFFFF"
109+
theme_color: "#0175C2"
110+
111+
windows:
112+
generate: true
113+
image_path: "assets/icons/icon.png"
114+
icon_size: 48
115+
116+
macos:
117+
generate: true
118+
image_path: "assets/icons/icon.png"

0 commit comments

Comments
 (0)