From c5b586f527eab2a335efa1a2aa765aafd66aeb3e Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Wed, 30 Sep 2026 23:19:48 +0200 Subject: [PATCH 1/2] Remove the deprecated --pwa-strategy flag from build_and_copy --- packages/devtools_extensions/CHANGELOG.md | 1 + packages/devtools_extensions/bin/_build_and_copy.dart | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devtools_extensions/CHANGELOG.md b/packages/devtools_extensions/CHANGELOG.md index 5123faeaeb9..dd4359a4d11 100644 --- a/packages/devtools_extensions/CHANGELOG.md +++ b/packages/devtools_extensions/CHANGELOG.md @@ -8,6 +8,7 @@ found in the LICENSE file or at https://developers.google.com/open-source/licens * The minimum Flutter SDK version is bumped to 3.41.0. * Updates `devtools_shared` constraint to `^14.0.1`. * Add validation for `pubspec.yaml` existence and valid characters in the `config.yaml` `name` field to the `validate` command. +* Remove the deprecated `--pwa-strategy` flag from the `build_and_copy` command. ## 0.5.1 * Updates `devtools_app_shared` constraint to `^0.5.1`. diff --git a/packages/devtools_extensions/bin/_build_and_copy.dart b/packages/devtools_extensions/bin/_build_and_copy.dart index 5fa0a58ea9b..b38ec186220 100644 --- a/packages/devtools_extensions/bin/_build_and_copy.dart +++ b/packages/devtools_extensions/bin/_build_and_copy.dart @@ -62,7 +62,6 @@ class BuildExtensionCommand extends Command { [ 'build', 'web', - '--pwa-strategy=offline-first', '--release', '--no-tree-shake-icons', ], From 55e502e6cae32a1423e62e2aa8293d04738c704f Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Wed, 7 Oct 2026 12:57:31 +0200 Subject: [PATCH 2/2] Format _build_and_copy.dart --- packages/devtools_extensions/bin/_build_and_copy.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/devtools_extensions/bin/_build_and_copy.dart b/packages/devtools_extensions/bin/_build_and_copy.dart index b38ec186220..9a28f0b9c45 100644 --- a/packages/devtools_extensions/bin/_build_and_copy.dart +++ b/packages/devtools_extensions/bin/_build_and_copy.dart @@ -59,12 +59,7 @@ class BuildExtensionCommand extends Command { await _runProcess( processManager, Platform.isWindows ? 'flutter.bat' : 'flutter', - [ - 'build', - 'web', - '--release', - '--no-tree-shake-icons', - ], + ['build', 'web', '--release', '--no-tree-shake-icons'], workingDirectory: source, );