Repository navigation
Feat: A Compose host entry point that draws a Python-declared root - #48
Merged
Merged
Conversation
python-multiplatform-compose (new module; the library itself stays free of Compose) adds PythonContent(root) / PythonContent(module, attribute): it reads a Python-held State inside the composition and composes its value, a Python callable, so a Python write that replaces the root recomposes on the next frame with no host call. Each root has its own callable arena, released when the root is replaced or the composition disposed. withPythonComposer and PythonCallableArena are promoted from the compose fixtures, which now use them. No library name is known to the binder.
# Conflicts: # ksp-fixtures/compose/src/desktopMain/kotlin/fixture/compose/PythonComposition.kt
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.
Closes #18
New module python-multiplatform-compose (the library stays Compose-free): PythonContent(root) / PythonContent(module, attribute) reads a Python-held State in the composition and composes its value (a Python callable); a Python write replacing the root recomposes on the next frame with no host call; per-root callable arena released on replace and on dispose. withPythonComposer and PythonCallableArena promoted from the compose fixtures. No library name known to the binder.
Tests: PythonContentRenderTest (3; red with no module and with an empty stub, tamper check on the state read). Coordinator verification after merging develop: compose fixtures 105/0, new module compiles for desktop and Android.
Follow-up: Python-side mutableStateOf/.value needs generic functions and member properties in the walker -> #38.