Prepare 0.86.2 release: fix stale code under flet debug android (serious_python 4.3.4)#6690
Open
FeodorFitsner wants to merge 1 commit into
Open
Prepare 0.86.2 release: fix stale code under flet debug android (serious_python 4.3.4)#6690FeodorFitsner wants to merge 1 commit into
flet debug android (serious_python 4.3.4)#6690FeodorFitsner wants to merge 1 commit into
Conversation
…rious_python 4.3.4) `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
Deploying flet-website-v2 with
|
| Latest commit: |
438e5e8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://14a95f9e.flet-website-v2.pages.dev |
| Branch Preview URL: | https://flet-0-86-2.flet-website-v2.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #6682 — code edits not taking effect under
flet debug android.flet debug androidre-packages the app, rebuilds the APK, andflutter run -d <device>reinstalls it, so the new code is in the freshly installed APK's assets. But on Android,serious_pythoncopies the app payload out of the APK to a writable dir only when its cache key changes, and that key wasversionName+versionCode.flet debugnever bumps the version between iterations, andflutter rundoes an update install that preserves app data (including the cache marker), so the key never changed → re-extraction was skipped → the app kept running stale code.flet build apkwas never affected (fresh/version-bumped install), which matched the reporter's observation. iOS/desktop are also unaffected — they run the app straight from the read-only app bundle, whichflutter runfully replaces each reinstall.Change
Bump the
flet buildtemplate'sserious_pythonpin 4.3.3 → 4.3.4. serious_python 4.3.4 folds the APK'sPackageManager.lastUpdateTimeinto the extraction cache key, so every (re)install re-extracts the current code while ordinary relaunches still hit the cache.Files, mirroring the 0.86.1 release-prep convention:
sdk/python/templates/build/.../pubspec.yaml— pin bump.CHANGELOG.md—## 0.86.2bug-fix entry.packages/flet/CHANGELOG.md+packages/flet/pubspec.yaml— Dart package version bumped for release coordination (no code change).This depends on serious_python 4.3.4, which is prepared in flet-dev/serious-python#235 but not yet published to pub.dev. Do not merge/release this until 4.3.4 is live on pub.dev, or
flet buildwill fail to resolve the pin.Verification
Not exercised on a device here. End-to-end check once 4.3.4 is published:
flet debug android→ confirm app shows → editmain.py→flet debug androidagain → confirm the edit now appears (previously it wouldn't).Summary by Sourcery
Prepare the 0.86.2 release to fix stale code when using
flet debug androidby updating the serious_python dependency and coordinating package versions.Bug Fixes:
flet debug androidby relying on serious_python 4.3.4’s improved on-device extraction cache behavior.Enhancements:
Documentation:
Chores:
fletDart package version to 0.86.2 for release coordination, without changing its code.