Repository navigation
release: v0.8.0 hot swap for apps under development - #5
Merged
Merged
Conversation
Hot swap - Add aua_hot_swap: compile edited sources, diff class bytes against what the process runs, and redefine them in place through a JVMTI agent. Resources are relinked with stable IDs and loaded into the process. - Keep UI state: Compose recomposes over its existing state; View activities are rebuilt with scroll offsets, typed text and the keyboard. - Detect Gradle projects from the root or a module directory; settings and caches stay in the project's build/ directory. - Fall back to a full build, install and launch when a swap is not possible, and report compile errors without touching the app. - status reports the host toolchain and what the next call would do. A paused device refuses swap and build. - The engine lives in src/android_use/hotswap and uses only the standard library; script/hotswap holds the command line, lab apps and the on-device suite. Docs: docs/hot-swap.md, README sections, guide tool tables and the skill. Bump every version source to 0.8.0 and add release notes.
The fixture replaced every occurrence of the current version in uv.lock, which also rewrote a locked dependency that happens to share 0.8.0.
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
Adds
aua_hot_swap, which pushes source edits into a running debuggable app without reinstalling or restarting it, and prepares v0.8.0.src/android_use/hotswap(standard library only): compile changed files, diff class bytes, redefine in place through a JVMTI agent; resources relinked with stable IDs.script/hotswap: command line, two lab apps and the on-device suite.docs/hot-swap.md, README sections, guide tables, skill. Version sources bumped to 0.8.0 with release notes.Validation
script/hotswap/verify.pyon the phone: plain app 22/22. The Compose sample passed all its checks in the preceding run and was not repeated after a test-only fix.