Skip to content

Commit

Permalink
release 2.2.2
Browse files Browse the repository at this point in the history
- fix no-element exception when href is absent
- update lints
  • Loading branch information
kb0 committed Jan 15, 2024
1 parent e1079c6 commit 355d448
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [2.2.2]

* fix no-element exception when href is absent
* update lints

## [2.2.1]

* fixed missed symbol during writing
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ In your dart/flutter project add the dependency:
```
dependencies:
...
gpx: ^2.2.1
gpx: ^2.2.2
```

### Reading XML
Expand Down
3 changes: 1 addition & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,11 @@ linter:
- hash_and_equals
- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
- collection_methods_unrelated_type
- join_return_with_assignment
- library_names
- library_prefixes
- lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- no_duplicate_case_values
Expand Down
4 changes: 2 additions & 2 deletions lib/src/gpx_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,11 @@ class GpxReader {
final val = iterator.current;

if (val is XmlTextEvent) {
string += val.text;
string += val.value;
}

if (val is XmlCDATAEvent) {
string += val.text;
string += val.value;
}

if (val is XmlEndElementEvent && val.name == tagName) {
Expand Down
1 change: 0 additions & 1 deletion lib/src/model/kml_tag.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ class KmlTagV22 {
static const when = 'when';

// <altitudeMode>absolute</altitudeMode>

}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gpx
description: Package for load, manipulate, and save GPS data in GPX format (a light-weight XML data format for the interchange of GPS data - waypoints, routes, and tracks).
version: 2.2.1
version: 2.2.2
homepage: https://github.com/kb0/dart-gpx/

environment:
Expand All @@ -12,5 +12,5 @@ dependencies:
xml: '^6.1.0'

dev_dependencies:
lints: ^2.0.0
lints: ^3.0.0
test: ^1.21.0

0 comments on commit 355d448

Please sign in to comment.