From 438e5e8be9c209ce1404a98cf058867c03e6f7bc Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Fri, 17 Jul 2026 16:57:11 -0700 Subject: [PATCH] Prepare 0.86.2 release: fix stale code under `flet debug android` (serious_python 4.3.4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `flet debug android` kept running previously-unpacked, stale app code after a re-run. `flet debug` reinstalls the same-version APK on each iteration (`flutter run` does an update install that preserves app data), and serious_python's on-device extraction cache — keyed only on `versionName+versionCode` — never saw the version change, so it skipped re-unpacking the new `app.zip`. Bump the build template's serious_python pin to 4.3.4, which folds the APK's `lastUpdateTime` into the cache key so every (re)install re-extracts the current code. `flet build apk` was never affected. Fixes #6682 --- CHANGELOG.md | 6 ++++++ packages/flet/CHANGELOG.md | 4 ++++ packages/flet/pubspec.yaml | 2 +- .../templates/build/{{cookiecutter.out_dir}}/pubspec.yaml | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec1f39e280..28319a0b84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.86.2 + +### Bug fixes + +* Fix code edits not taking effect under `flet debug android`: after re-running the command, the app kept executing the previously-unpacked, stale code instead of your changes. `flet debug` rebuilds and reinstalls the same-version APK on each iteration (`flutter run` does an update install that preserves app data), and `serious_python`'s on-device extraction cache — keyed only on `versionName+versionCode` — never saw the version change, so it skipped re-unpacking the new `app.zip`. Bumps `serious_python` to 4.3.4, which folds the APK's `lastUpdateTime` into that cache key so every (re)install re-extracts the current code while ordinary relaunches still hit the cache. `flet build apk` was never affected ([#6682](https://github.com/flet-dev/flet/issues/6682)) by @FeodorFitsner. + ## 0.86.1 ### Improvements diff --git a/packages/flet/CHANGELOG.md b/packages/flet/CHANGELOG.md index 9c78d050fe..6dc09ddc51 100644 --- a/packages/flet/CHANGELOG.md +++ b/packages/flet/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.86.2 + +_No changes in the `flet` Dart package; version bumped for release coordination with the `serious_python` 4.3.4 bump that fixes stale code under `flet debug android` ([#6682](https://github.com/flet-dev/flet/issues/6682))._ + ## 0.86.1 _No changes in the `flet` Dart package; version bumped for release coordination with the web client's readable app-package download errors ([#6680](https://github.com/flet-dev/flet/pull/6680))._ diff --git a/packages/flet/pubspec.yaml b/packages/flet/pubspec.yaml index 156c0f8673..e2944c8bce 100644 --- a/packages/flet/pubspec.yaml +++ b/packages/flet/pubspec.yaml @@ -2,7 +2,7 @@ name: flet description: Write entire Flutter app in Python or add server-driven UI experience into existing Flutter app. homepage: https://flet.dev repository: https://github.com/flet-dev/flet/tree/main/packages/flet -version: 0.86.1 +version: 0.86.2 # Supported platforms platforms: diff --git a/sdk/python/templates/build/{{cookiecutter.out_dir}}/pubspec.yaml b/sdk/python/templates/build/{{cookiecutter.out_dir}}/pubspec.yaml index de38318fbf..62db1b15ac 100644 --- a/sdk/python/templates/build/{{cookiecutter.out_dir}}/pubspec.yaml +++ b/sdk/python/templates/build/{{cookiecutter.out_dir}}/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: flet: path: ../../../../../packages/flet - serious_python: 4.3.3 + serious_python: 4.3.4 # MsgPack codec used by the dart_bridge FletBackendChannel implementation # in lib/main.dart — matches the wire format flet's existing socket