From f8ba4ed27d10962f0779914904f4e9426fa62320 Mon Sep 17 00:00:00 2001 From: robmllze <86869208+robmllze@users.noreply.github.com> Date: Tue, 12 Nov 2024 01:05:40 +1100 Subject: [PATCH] +breaking: Update dependencies --- .github/scripts/update_changelog.dart | 17 +++++++++++------ analysis_options.yaml | 5 +++-- pubspec.yaml | 20 ++++++++++---------- 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/scripts/update_changelog.dart b/.github/scripts/update_changelog.dart index e213ba2..e6231e5 100644 --- a/.github/scripts/update_changelog.dart +++ b/.github/scripts/update_changelog.dart @@ -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 = {}; final old = lines @@ -136,7 +140,8 @@ int compareVersions(String version1, String version2) { List 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); @@ -154,4 +159,4 @@ int compareVersions(String version1, String version2) { if (part1 < part2) return -1; } return 0; -} \ No newline at end of file +} diff --git a/analysis_options.yaml b/analysis_options.yaml index 7343289..1d37a1c 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -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 @@ -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 \ No newline at end of file + use_key_in_widget_constructors: error diff --git a/pubspec.yaml b/pubspec.yaml index 603c67f..71f0848 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 @@ -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 ## -----------------------------------------------------------------------------