You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix site-packages update on Android (flet-dev#194)
* Add asset extraction invalidation by version keys
Introduces invalidateKey support to asset extraction utilities, allowing unpacked assets to be invalidated based on Python or app version. Updates Android plugin and Dart code to provide app and Python version info for more robust cache invalidation when extracting Python bundles and site-packages.
* Add debug logs; deduplicate ffi import
Move and remove duplicate ffi import, format python invalidate key assignment, and add spDebug logging for Python version and app version. These changes improve readability and add runtime debug output to help diagnose bundle extraction and versioning without altering core behavior.
* Use getLongVersionCode() unconditionally
Replace the SDK-version conditional for retrieving the app version code with a direct call to PackageInfo.getLongVersionCode(). This simplifies the code by removing the legacy branch that used the int versionCode and assumes compilation/targeting against API 28+ where getLongVersionCode() is available. No functional change to the returned string (versionName + "+" + versionCode).
* Add prepare-release codex skill
Introduce .codex/skills/prepare-release/SKILL.md documenting a prepare-release workflow for serious_python. The file lists required inputs and step-by-step actions to bump package versions (pubspecs, podspec, Android build.gradle), run pub get for example apps, and add changelog entries from git history while excluding trivial/chore/duplicate items.
* Release 0.9.10: bump versions & update locks
Bump package versions to 0.9.10 across the repository and add 0.9.10 changelog entries. Update platform package pubspecs, Android build.gradle and Darwin podspec. Update example pubspec.lock files to reference the new package versions and refreshed dependency hashes/versions (including a Dart SDK constraint bump in one lock). Changelog notes highlight: add Android debug logs, deduplicate FFI imports, and invalidate extracted assets when version keys change.
description: Use when asked to prepare new serious_python release by bumping versions and author release notes.
4
+
---
5
+
6
+
## Inputs
7
+
8
+
* Previous serious_python version from repo tags.
9
+
* Whether it's minor or major release.
10
+
11
+
## Steps
12
+
13
+
* Take latest serious_python release version from the repo and
14
+
increment third (patch) digit to get the next version if it's a minor release
15
+
or second (minor) digit if it's a major release.
16
+
* Set new version in pubspec.yaml of all packages in /src.
17
+
* Set new s.version in src/serious_python_darwin/darwin/serious_python_darwin.podspec.
18
+
* Set new version in src/serious_python_android/android/build.gradle.
19
+
* Run pub get for all apps in src/serious_python/example to refresh their pubspec.lock with new version.
20
+
* Add a new entry into all packages' CHANGELOG.md from a git log since the last release. Do not add chore/trivial/duplicate items, add items with related issue or PR.
0 commit comments