Skip to content

Update the build toolchain, sync the forked code with 1.13.0 and run static analysis on every source set - #46

Merged
Ivan Matkov (MatkovIvan) merged 5 commits into
masterfrom
ivan.matkov/toolchain-update
Nov 18, 2026
Merged

Ivan Matkov (MatkovIvan) merged 5 commits into
masterfrom
ivan.matkov/toolchain-update

Conversation

@MatkovIvan

Copy link
Copy Markdown
Collaborator
  • Static analysis
    • ./gradlew staticAnalysis runs ktlint, Android Lint and type-resolved detekt on every source set: main, test, sample and benchmark code. check, CI and CONTRIBUTING.md use it instead of a list of tasks.
  • Dependencies
    • swing-ui, swing-ui-foundation, swing-ui-animation and swing-ui-test expose Compose runtime 1.12.0, coroutines 1.11.0, androidx lifecycle 2.11.0 and androidx annotation 1.11.0 through api dependencies.
    • swing-ui-detekt depends on compose-rules 0.6.8.
  • androidx 1.13.0
    • The forked foundation and ui code and swing-ui-animation follow androidx 1.13.0.
    • ComposeSwingTest.waitUntil delivers queued work between frames and checks its condition and deadline while the event queue stays busy.
  • Build
    • Gradle 9.8.2, Android Lint 9.5.0, androidx collection 1.7.0, navigation3 1.2.1 and JetBrains annotations 26.1.0.

…encies

Gradle 9.8.2 with a regenerated wrapper, Compose 1.12.0, coroutines 1.11.0, androidx annotation
1.11.0, collection 1.7.0, lifecycle 2.11.0 and navigation3 1.2.1, JetBrains annotations 26.1.0,
compose-rules 0.6.8 and Android Lint 9.5.0. The IDE builds tooling models in parallel.

The gallery and several tests started a LaunchedEffect for one-shot work that never suspends:
writing state, registering an observer, requesting exit. That work now runs in a keyed SideEffect,
once as the composition applies, which compose-rules asks for now that the keyed overload exists.
The tests whose subject is the failure of an effect coroutine keep LaunchedEffect, under a
suppression that says so: a SideEffect that throws fails the apply instead.
One test also keeps it because it mounts a nested composition, which Compose rejects while the
application's composition applies changes.

Gradle 9.8 deprecates a Project object as dependency notation and the `by creating` delegate, so
the build scripts call project(path) and create().
When incoming constraints fix the preferred width or height, skip the child intrinsic query and pass the constraints directly to measurement. Keep the required-size query path and Swing's width-aware intrinsic height calculation. The tests verify query counts and measured sizes.

Pin the Foundation and UI forks to AndroidX 1.13.0.
…re the next one

An effect can queue more work before it registers for the next frame. Sending that frame early can stall an animation whose target changes every frame.

Send a frame only after the event queue drains. Check the condition and wall-clock deadline after each dispatch pass so a busy queue cannot hide either.
@MatkovIvan
Ivan Matkov (MatkovIvan) force-pushed the ivan.matkov/toolchain-update branch 2 times, most recently from e21215b to a0817cf Compare November 18, 2026 10:02
Sync the animation port to AndroidX 1.13.0. Deferred transforms use absolute values, release superseded phases, and catch up when an animation is already running. animate*AsState restarts undispatched when its target changes.

Preserve Swing's mutable geometry isolation and the deprecated API removals from master. Expose transition configs and DeferredTargetAnimation.value, and update the ported tests and NOTICE.
@MatkovIvan
Ivan Matkov (MatkovIvan) merged commit 18cc93a into master Nov 18, 2026
4 checks passed
@MatkovIvan
Ivan Matkov (MatkovIvan) deleted the ivan.matkov/toolchain-update branch November 18, 2026 11:27

This branch was previously deployed

1 inactive deployment
github-pages — 18cc93a6 Deployed Nov 18, 2026 by MatkovIvan via Publish API Reference #56
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