From 0a389ff710364b333651b714eb183a294369a744 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 10 Aug 2026 08:22:53 +0000 Subject: [PATCH 1/2] [leancode_force_update] Upgrade in_app_update to ^5.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `in_app_update` 5.0.0 was the only dependency holding the package back from pub.dev's "All of the package dependencies are supported in the latest version" check, costing 10 points. 5.0.0 introduces no Dart API changes — it only drops the plugin's own Kotlin Gradle Plugin application/classpath in favour of Flutter's built-in Kotlin, and in turn requires Flutter 3.44 / Dart 3.12. Raise the package's environment constraints to match, and bump the test workflow's minimum Flutter version accordingly. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_016qFnig238knodtGNYgz7cK --- .github/workflows/leancode_force_update-test.yml | 2 +- packages/leancode_force_update/CHANGELOG.md | 5 +++++ packages/leancode_force_update/example/pubspec.lock | 8 ++++---- packages/leancode_force_update/example/pubspec.yaml | 2 +- packages/leancode_force_update/pubspec.yaml | 8 ++++---- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/leancode_force_update-test.yml b/.github/workflows/leancode_force_update-test.yml index 2d6940f41..1354353e7 100644 --- a/.github/workflows/leancode_force_update-test.yml +++ b/.github/workflows/leancode_force_update-test.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: include: - - version: 3.38.x + - version: 3.44.x - channel: stable defaults: run: diff --git a/packages/leancode_force_update/CHANGELOG.md b/packages/leancode_force_update/CHANGELOG.md index b425ca335..6c6369dbe 100644 --- a/packages/leancode_force_update/CHANGELOG.md +++ b/packages/leancode_force_update/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.0.5-alpha + +- Upgrade `in_app_update` to `^5.0.0` +- Require Flutter `>=3.44.0` and Dart `>=3.12.0`, as mandated by `in_app_update` 5.0.0 + ## 1.0.4-alpha - Upgrade `leancode_contracts` to `^0.10.0` and `leancode_contracts_generator` to `^0.19.0` diff --git a/packages/leancode_force_update/example/pubspec.lock b/packages/leancode_force_update/example/pubspec.lock index 188a68736..effa893ba 100644 --- a/packages/leancode_force_update/example/pubspec.lock +++ b/packages/leancode_force_update/example/pubspec.lock @@ -276,10 +276,10 @@ packages: dependency: transitive description: name: in_app_update - sha256: "489572accaa55b51518b2d64676ca8c3c6d4c989fa53cf718001882237691a3c" + sha256: c55b4da41baf34b440ba627843932aa6f1689b5c499cfac98aec156b3113d89e url: "https://pub.dev" source: hosted - version: "4.2.3" + version: "5.0.0" json_annotation: dependency: transitive description: @@ -741,5 +741,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.10.0 <4.0.0" - flutter: ">=3.38.1" + dart: ">=3.12.0 <4.0.0" + flutter: ">=3.44.0" diff --git a/packages/leancode_force_update/example/pubspec.yaml b/packages/leancode_force_update/example/pubspec.yaml index eff7ca600..695daf09d 100644 --- a/packages/leancode_force_update/example/pubspec.yaml +++ b/packages/leancode_force_update/example/pubspec.yaml @@ -5,7 +5,7 @@ publish_to: 'none' version: 1.0.0+1 environment: - sdk: '>=3.10.0 <4.0.0' + sdk: '>=3.12.0 <4.0.0' dependencies: cqrs: ^10.0.2 diff --git a/packages/leancode_force_update/pubspec.yaml b/packages/leancode_force_update/pubspec.yaml index 352b27e29..773371e1f 100644 --- a/packages/leancode_force_update/pubspec.yaml +++ b/packages/leancode_force_update/pubspec.yaml @@ -1,18 +1,18 @@ name: leancode_force_update -version: 1.0.4-alpha +version: 1.0.5-alpha homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/leancode_force_update repository: https://github.com/leancodepl/flutter_corelibrary description: An internal package that speeds up implementation of Force Update environment: - sdk: '>=3.10.0 <4.0.0' - flutter: ">=3.38.0" + sdk: '>=3.12.0 <4.0.0' + flutter: ">=3.44.0" dependencies: cqrs: ^10.0.2 flutter: sdk: flutter - in_app_update: ^4.2.3 + in_app_update: ^5.0.0 leancode_contracts: ^0.10.0 logging: ^1.3.0 package_info_plus: ^10.2.0 From 20c6d8c1d61a34097755731c1ad69fb137905fae Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 10 Aug 2026 08:32:52 +0000 Subject: [PATCH 2/2] [leancode_force_update] Adopt private initializing formals in the example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Raising the example's SDK floor to 3.12 also raises its language version, which makes `prefer_initializing_formals` fire on the old `required Foo foo` + `_foo = foo` workaround: since Dart 3.12 a named initializing formal `this._foo` is passed by callers as `foo`, so the workaround is no longer needed. Applied via `dart fix`; the call sites are unchanged. Also regenerates the example lockfile via `flutter pub get` (it was stale on master — still pinning leancode_contracts 0.9.0 and leancode_force_update 1.0.3-alpha). Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_016qFnig238knodtGNYgz7cK --- .../example/lib/force_update_screen.dart | 4 ++-- packages/leancode_force_update/example/lib/main.dart | 7 +++---- .../example/lib/suggest_update_dialog.dart | 4 ++-- packages/leancode_force_update/example/pubspec.lock | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/leancode_force_update/example/lib/force_update_screen.dart b/packages/leancode_force_update/example/lib/force_update_screen.dart index 022e37333..25b9c4548 100644 --- a/packages/leancode_force_update/example/lib/force_update_screen.dart +++ b/packages/leancode_force_update/example/lib/force_update_screen.dart @@ -4,8 +4,8 @@ import 'package:leancode_force_update/leancode_force_update.dart'; class ForceUpdateScreen extends StatelessWidget { const ForceUpdateScreen({ super.key, - required ForceUpdateController forceUpdateController, - }) : _forceUpdateController = forceUpdateController; + required this._forceUpdateController, + }); final ForceUpdateController _forceUpdateController; diff --git a/packages/leancode_force_update/example/lib/main.dart b/packages/leancode_force_update/example/lib/main.dart index faa417c35..24840095d 100644 --- a/packages/leancode_force_update/example/lib/main.dart +++ b/packages/leancode_force_update/example/lib/main.dart @@ -34,10 +34,9 @@ void main() { class MyApp extends StatelessWidget { const MyApp({ super.key, - required ForceUpdateController forceUpdateController, - required Cqrs cqrs, - }) : _forceUpdateController = forceUpdateController, - _cqrs = cqrs; + required this._forceUpdateController, + required this._cqrs, + }); final ForceUpdateController _forceUpdateController; final Cqrs _cqrs; diff --git a/packages/leancode_force_update/example/lib/suggest_update_dialog.dart b/packages/leancode_force_update/example/lib/suggest_update_dialog.dart index f59842442..363172a92 100644 --- a/packages/leancode_force_update/example/lib/suggest_update_dialog.dart +++ b/packages/leancode_force_update/example/lib/suggest_update_dialog.dart @@ -4,8 +4,8 @@ import 'package:leancode_force_update/leancode_force_update.dart'; class SuggestUpdateDialog extends StatelessWidget { const SuggestUpdateDialog({ super.key, - required ForceUpdateController forceUpdateController, - }) : _forceUpdateController = forceUpdateController; + required this._forceUpdateController, + }); final ForceUpdateController _forceUpdateController; diff --git a/packages/leancode_force_update/example/pubspec.lock b/packages/leancode_force_update/example/pubspec.lock index effa893ba..3a1acc516 100644 --- a/packages/leancode_force_update/example/pubspec.lock +++ b/packages/leancode_force_update/example/pubspec.lock @@ -326,7 +326,7 @@ packages: path: ".." relative: true source: path - version: "1.0.4-alpha" + version: "1.0.5-alpha" leancode_lint: dependency: "direct dev" description: