Skip to content

Support Compose 1.11 and deterministic subcomposition ordering#194

Open
zirman wants to merge 1 commit into
block:mainfrom
zirman:main
Open

Support Compose 1.11 and deterministic subcomposition ordering#194
zirman wants to merge 1 commit into
block:mainfrom
zirman:main

Conversation

@zirman
Copy link
Copy Markdown
Contributor

@zirman zirman commented May 16, 2026

  • Upgrade Compose dependency to 1.11.1.
  • Update reflection logic in CompositionContexts.kt to support GapComposer, LinkComposer, and the RememberObserverHolder wrapper introduced in newer Compose versions.
  • Implement deterministic sorting of subcompositions by child placement order using reflection to access LayoutNode.getChildren.
  • Update instrumented tests to use v2 Compose test rules.
  • Update expected test output to reflect internal Compose naming changes, such as ProvideCompositionLocals.

- Upgrade Compose dependency to 1.11.1.
- Update reflection logic in `CompositionContexts.kt` to support `GapComposer`, `LinkComposer`, and the `RememberObserverHolder` wrapper introduced in newer Compose versions.
- Implement deterministic sorting of subcompositions by child placement order using reflection to access `LayoutNode.getChildren`.
- Update instrumented tests to use `v2` Compose test rules.
- Update expected test output to reflect internal Compose naming changes, such as `ProvideCompositionLocals`.

Signed-off-by: Robert Chrzanowski <robert.chrzanowski@gmail.com>
@zirman zirman requested a review from pyricau as a code owner May 16, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant