Fix site-packages update on Android#194
Merged
FeodorFitsner merged 5 commits intomainfrom Feb 21, 2026
Merged
Conversation
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.
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.
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).
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.
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.
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.
No description provided.