From aaec13ed6b8d09d0a02790d3d582d995106fe5d7 Mon Sep 17 00:00:00 2001 From: Chris D Date: Thu, 25 Jun 2026 15:52:19 -0400 Subject: [PATCH 1/2] Fix linter errors and dependency resolution for Flutter 3.44 - Implement new abstract members on ArtifactUpdater (formatProgressMessage, resetProgressContext, setProgressContext) in AuthenticatingArtifactUpdater - Add missing HostPlatform.linux_riscv64 case in fpiHostPlatform switch - Implement deleteVersionFile in FakeFlutterVersion - Implement isAccessibilityEvaluationsEnabled and isRiscv64SupportEnabled in TestFeatureFlags - Downgrade test constraint from ^1.31.1 to ^1.31.0 to resolve test_core version conflict with flutter_tools SDK dependency dart analyze now reports no issues. --- lib/src/authenticating_artifact_updater.dart | 14 ++++++++++++++ lib/src/more_os_utils.dart | 1 + pubspec.yaml | 12 ++++++------ test/src/fake_flutter_version.dart | 3 +++ test/src/test_feature_flags.dart | 8 ++++++++ 5 files changed, 32 insertions(+), 6 deletions(-) diff --git a/lib/src/authenticating_artifact_updater.dart b/lib/src/authenticating_artifact_updater.dart index b43df38..4210351 100644 --- a/lib/src/authenticating_artifact_updater.dart +++ b/lib/src/authenticating_artifact_updater.dart @@ -273,6 +273,20 @@ class AuthenticatingArtifactUpdater implements ArtifactUpdater { return file; } + @override + void setProgressContext({ + required int artifactIndex, + required int artifactTotal, + required int downloadTotal, + int downloadIndex = 0, + }) {} + + @override + void resetProgressContext() {} + + @override + String formatProgressMessage(String artifactName) => artifactName; + @override void removeDownloadedFiles() { for (final file in downloadedFiles) { diff --git a/lib/src/more_os_utils.dart b/lib/src/more_os_utils.dart index ef75a78..854fbe1 100644 --- a/lib/src/more_os_utils.dart +++ b/lib/src/more_os_utils.dart @@ -85,6 +85,7 @@ class MoreOperatingSystemUtilsWrapper implements MoreOperatingSystemUtils { HostPlatform.darwin_arm64 => FlutterpiHostPlatform.darwinARM64, HostPlatform.linux_x64 => FlutterpiHostPlatform.linuxX64, HostPlatform.linux_arm64 => FlutterpiHostPlatform.linuxARM64, + HostPlatform.linux_riscv64 => FlutterpiHostPlatform.linuxRV64, HostPlatform.windows_x64 => FlutterpiHostPlatform.windowsX64, HostPlatform.windows_arm64 => FlutterpiHostPlatform.windowsARM64, }; diff --git a/pubspec.yaml b/pubspec.yaml index 29a417b..8081bba 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutterpi_tool description: A tool to make development & distribution of flutter-pi apps easier. -version: 0.11.0 +version: 0.12.0 repository: https://github.com/ardera/flutterpi_tool environment: @@ -15,18 +15,18 @@ executables: dependencies: flutter_tools: sdk: flutter - package_config: ^2.1.0 + package_config: ^2.2.0 github: ^9.15.0 file: ">=6.1.4 <8.0.0" path: ^1.8.3 args: ^2.4.0 http: ">=0.13.6 <2.0.0" - meta: ^1.10.0 + meta: ^1.18.0 process: ^5.0.0 unified_analytics: ">=7.0.0 <9.0.0" - archive: ^3.3.2 + archive: ^3.6.1 crypto: ^3.0.3 dev_dependencies: - lints: ^2.0.0 - test: ^1.21.0 + lints: ^6.1.0 + test: ^1.31.0 diff --git a/test/src/fake_flutter_version.dart b/test/src/fake_flutter_version.dart index 6530353..8c1ce36 100644 --- a/test/src/fake_flutter_version.dart +++ b/test/src/fake_flutter_version.dart @@ -117,6 +117,9 @@ class FakeFlutterVersion implements fltool.FlutterVersion { @override Future ensureVersionFile() async {} + @override + void deleteVersionFile() {} + @override String getBranchName({bool redactUnknownBranches = false}) { if (!redactUnknownBranches || diff --git a/test/src/test_feature_flags.dart b/test/src/test_feature_flags.dart index 827bcc4..4c2dcbe 100644 --- a/test/src/test_feature_flags.dart +++ b/test/src/test_feature_flags.dart @@ -18,6 +18,8 @@ class TestFeatureFlags implements fl.FeatureFlags { this.isDartDataAssetsEnabled = false, this.isUISceneMigrationEnabled = false, this.isWindowingEnabled = false, + this.isAccessibilityEvaluationsEnabled = false, + this.isRiscv64SupportEnabled = false, }); @override @@ -68,6 +70,12 @@ class TestFeatureFlags implements fl.FeatureFlags { @override final bool isWindowingEnabled; + @override + final bool isAccessibilityEvaluationsEnabled; + + @override + final bool isRiscv64SupportEnabled; + @override bool isEnabled(fl.Feature feature) { return switch (feature) { From 14bc355cbf7376fbef85cd40cec9ecef287b0ce9 Mon Sep 17 00:00:00 2001 From: Chris D Date: Thu, 25 Jun 2026 15:54:47 -0400 Subject: [PATCH 2/2] Update CHANGELOG and README for 0.12.0 - Add 0.12.0 changelog entry for Flutter 3.44 compatibility - Add missing 'test' command to help output in README --- CHANGELOG.md | 6 ++++++ README.md | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e00f6f..1299f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.12.0 - 2026-06-25 + +- flutter 3.44.x compatibility +- fix `dart analyze` errors and warnings +- fix `pub get` version conflict with `test` package + ## 0.11.0 - 2026-04-19 - flutter 3.41.x compatibility (thanks to [@miguelzapp](https://github.com/miguelzapp)!) diff --git a/README.md b/README.md index 203eea4..92d301e 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Flutter-Pi Tool Project build Builds a flutter-pi asset bundle. run Run your Flutter app on an attached device. + test Run Flutter unit tests for the current project. Tools & Devices devices List & manage flutterpi_tool devices.