Skip to content

Commit 0a4c2c1

Browse files
committed
fix: cli version parser error
1 parent 21f3523 commit 0a4c2c1

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.3.1
2+
3+
- Fix cli version parser error.
4+
- Update description.
5+
16
## 0.3.0
27

38
- Add support for use in packages.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fontsource for Flutter
22

3-
Easily add Fontsource fonts to your flutter app. Also includes a dart interface for the Fontsource API.
3+
Easily add Fontsource fonts to your flutter app. Includes a dart interface for the Fontsource API.
44

55
## Getting started
66

example/pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ packages:
8080
path: ".."
8181
relative: true
8282
source: path
83-
version: "0.3.0"
83+
version: "0.3.1"
8484
fontsource_gen:
8585
dependency: "direct main"
8686
description:
@@ -211,7 +211,7 @@ packages:
211211
name: version
212212
url: "https://pub.dartlang.org"
213213
source: hosted
214-
version: "2.0.0"
214+
version: "3.0.2"
215215
yaml:
216216
dependency: transitive
217217
description:

lib/src/cli/config.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Future<void> _resolve(String dir, [bool isRoot = false]) async {
192192
_config.fonts[id]?.version = null;
193193
} else {
194194
if (Version.parse(fontsMap[id]?['version']) >
195-
Version.parse(_config.fonts[id]?.version)) {
195+
Version.parse(_config.fonts[id]!.version!)) {
196196
_config.fonts[id]?.version = fontsMap[id]?['version'];
197197
}
198198
}

pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fontsource
2-
description: Add Fontsource fonts to your flutter app. Direct access to Fontsource API.
3-
version: 0.3.0
2+
description: Easily add Fontsource fonts to your flutter app. Includes a dart interface for the Fontsource API.
3+
version: 0.3.1
44
repository: https://github.com/fontsource/fontsource-flutter
55

66
environment:
@@ -14,7 +14,7 @@ dependencies:
1414
json2yaml: ^3.0.0
1515
path: ^1.8.0
1616
progress_bar: ^1.0.0
17-
version: ^2.0.0
17+
version: ^3.0.0
1818
yaml: ^3.1.0
1919

2020
dev_dependencies:

0 commit comments

Comments
 (0)