Skip to content

Commit cfb43e7

Browse files
committed
+chore: Update dependencies
1 parent ea83fd0 commit cfb43e7

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/scripts/update_changelog.dart

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,15 @@ Set<_VersionSection> extractSections(String contents) {
5656
final results = <_VersionSection>{};
5757
for (var i = 0; i < allVersionMatches.length; i++) {
5858
final start = allVersionMatches[i].end;
59-
final end = i + 1 < allVersionMatches.length ? allVersionMatches[i + 1].start : contents.length;
59+
final end = i + 1 < allVersionMatches.length
60+
? allVersionMatches[i + 1].start
61+
: contents.length;
6062
final sectionContents = contents.substring(start, end).trim();
61-
final lines = sectionContents.split('\n').where((line) => line.isNotEmpty).toList();
62-
final version =
63-
allVersionMatches[i].group(0)!.substring(4, allVersionMatches[i].group(0)!.length - 1);
63+
final lines =
64+
sectionContents.split('\n').where((line) => line.isNotEmpty).toList();
65+
final version = allVersionMatches[i]
66+
.group(0)!
67+
.substring(4, allVersionMatches[i].group(0)!.length - 1);
6468
var releasedAt = DateTime.now().toUtc();
6569
final updates = <String>{};
6670
final old = lines
@@ -136,7 +140,8 @@ int compareVersions(String version1, String version2) {
136140
List<int> parseVersion(String version) {
137141
// Split by the '+' first to handle the build number
138142
final parts = version.split('+');
139-
final versionParts = parts[0].split('.').map(int.tryParse).map((e) => e ?? 0).toList();
143+
final versionParts =
144+
parts[0].split('.').map(int.tryParse).map((e) => e ?? 0).toList();
140145
// Add the build number as the last part (if it exists)
141146
if (parts.length > 1) {
142147
versionParts.add(int.tryParse(parts[1]) ?? 0);
@@ -154,4 +159,4 @@ int compareVersions(String version1, String version2) {
154159
if (part1 < part2) return -1;
155160
}
156161
return 0;
157-
}
162+
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
name: df_cleanup
1414
description: A flexible solution for managing the cleanup of resources in Flutter.
15-
version: 0.3.2
15+
version: 0.3.3
1616
repository: https://github.com/robmllze/df_cleanup
1717
funding:
1818
- https://www.buymeacoffee.com/robmllze
@@ -33,7 +33,7 @@ environment:
3333
dependencies:
3434
flutter:
3535
sdk: flutter
36-
df_type: ^0.6.2
36+
df_type: ^0.7.1
3737

3838
## -----------------------------------------------------------------------------
3939

0 commit comments

Comments
 (0)