Skip to content

Commit

Permalink
+breaking: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robmllze committed Nov 11, 2024
1 parent ec97c01 commit f8ba4ed
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
17 changes: 11 additions & 6 deletions .github/scripts/update_changelog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,15 @@ Set<_VersionSection> extractSections(String contents) {
final results = <_VersionSection>{};
for (var i = 0; i < allVersionMatches.length; i++) {
final start = allVersionMatches[i].end;
final end = i + 1 < allVersionMatches.length ? allVersionMatches[i + 1].start : contents.length;
final end = i + 1 < allVersionMatches.length
? allVersionMatches[i + 1].start
: contents.length;
final sectionContents = contents.substring(start, end).trim();
final lines = sectionContents.split('\n').where((line) => line.isNotEmpty).toList();
final version =
allVersionMatches[i].group(0)!.substring(4, allVersionMatches[i].group(0)!.length - 1);
final lines =
sectionContents.split('\n').where((line) => line.isNotEmpty).toList();
final version = allVersionMatches[i]
.group(0)!
.substring(4, allVersionMatches[i].group(0)!.length - 1);
var releasedAt = DateTime.now().toUtc();
final updates = <String>{};
final old = lines
Expand Down Expand Up @@ -136,7 +140,8 @@ int compareVersions(String version1, String version2) {
List<int> parseVersion(String version) {
// Split by the '+' first to handle the build number
final parts = version.split('+');
final versionParts = parts[0].split('.').map(int.tryParse).map((e) => e ?? 0).toList();
final versionParts =
parts[0].split('.').map(int.tryParse).map((e) => e ?? 0).toList();
// Add the build number as the last part (if it exists)
if (parts.length > 1) {
versionParts.add(int.tryParse(parts[1]) ?? 0);
Expand All @@ -154,4 +159,4 @@ int compareVersions(String version1, String version2) {
if (part1 < part2) return -1;
}
return 0;
}
}
5 changes: 3 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ linter:
prefer_const_constructors_in_immutables: true
prefer_const_constructors: true
prefer_final_fields: true
prefer_function_declarations_over_variables: false
prefer_relative_imports: true
prefer_single_quotes: true
require_trailing_commas: true
Expand All @@ -45,11 +46,11 @@ analyzer:
avoid_type_to_string: error
depend_on_referenced_packages: error
flutter_style_todos: error
invalid_use_of_protected_member: error
invalid_override_of_non_virtual_member: error
invalid_use_of_protected_member: error
no_leading_underscores_for_local_identifiers: error
prefer_final_in_for_each: error
prefer_relative_imports: error
unnecessary_new: error
unrelated_type_equality_checks: error
use_key_in_widget_constructors: error
use_key_in_widget_constructors: error
20 changes: 10 additions & 10 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

name: df_screen
description: A package that provides a useful screen widget and controller for Flutter apps.
version: 0.2.4
version: 0.3.0
repository: https://github.com/robmllze/df_screen
funding:
- https://www.buymeacoffee.com/robmllze
Expand All @@ -34,19 +34,19 @@ dependencies:
flutter:
sdk: flutter

df_cleanup: ^0.3.1
df_collection: ^0.8.1
df_config: ^0.5.0
df_cleanup: ^0.3.4
df_collection: ^0.8.3
df_config: ^0.5.3
df_debouncer: ^0.2.3
df_generate_dart_models_core: ^0.6.4
df_generate_dart_models_core: ^0.6.10
df_log: ^0.2.4
df_pod: ^0.14.0
df_scalable: ^0.7.1
df_screen_core: ^0.2.4
df_type: ^0.6.2
df_pod: ^0.14.3
df_scalable: ^0.7.2
df_screen_core: ^0.3.0
df_type: ^0.7.2

device_info_plus: ^10.1.2
go_router: ^14.2.9
go_router: ^14.4.1
meta: ^1.15.0

## -----------------------------------------------------------------------------
Expand Down

0 comments on commit f8ba4ed

Please sign in to comment.