New
0.32.0
Enhancements
- New
produceAndCollectAsRetainedStatethat produces and collects values from aFlow.
Changes
- Update to Kotlin
2.3.0. - Update Compose Multiplatform to
1.10.0. - Circuits
BackHandleruses now depend onorg.jetbrains.androidx.navigationevent.
Code-gen
- Generate
@Originannotations for kotlin-inject-anvil and Metro code gen. - Switch to
jakarta.injecttypes for Dagger/Anvil code gen. This should have no source-breaking changes to users since this only affected generated code, but note that the square/anvil implementation may not support this in factory generation (the KSP fork does). If you need to only use javax annotations, use thecircuit.codegen.useJavaxOnly=trueKSP option. - Drop KSP1 support.
- Fix not using named parameters with the
kotlin-injectAnvil codegen mode.
Contributors
Special thanks to the following contributors for contributing to this release!
What's Changed
- Use the androidx compose runtime by @stagg in #2386
- fix(deps): update lifecycle.jb to v2.9.6 by @slack-oss-bot in #2390
- Make AnsweringResultNavigator public by @stagg in #2393
- KSP 2.3, code gen improvements by @slack-oss-bot in #2365
- Add CODEOWNERS file by @stagg in #2400
- [codegen] Fix provider use when annotated with javax.inject.Inject and generating jakarta.inject.Inject by @stagg in #2404
- Fix formatting in CONTRIBUTING.md by @hossain-khan in #2407
- fix(deps): update sqldelight to v2.2.1 by @slack-oss-bot in #2406
- fix(deps): update okio to v3.16.4 by @slack-oss-bot in #2415
- chore(deps): update dependency click to v8.3.1 by @slack-oss-bot in #2409
- fix(deps): update okhttp monorepo to v5.3.2 by @slack-oss-bot in #2417
- Add new short-hand utility for collectAsRetainedState by @evanisnor in #2403
- chore(deps): update gradle to v9.2.1 by @slack-oss-bot in #2413
- docs(ui): correct CircuitInject usage example by @amirroid in #2416
- fix(deps): update dependency androidx.datastore:datastore-preferences to v1.2.0 by @slack-oss-bot in #2424
- fix(deps): update kct to v0.12.1 by @slack-oss-bot in #2493
- fix(deps): update androidx.activity to v1.12.2 by @slack-oss-bot in #2472
- fix(deps): update ksp monorepo to v2.3.4 by @slack-oss-bot in #2468
- fix(deps): update dependency com.google.testparameterinjector:test-parameter-injector to v1.20 by @slack-oss-bot in #2430
- fix(deps): update anvil to v0.5.2 by @slack-oss-bot in #2453
- Use named parameters in codegen when possible by @stagg in #2431
- fix(deps): update roborazzi to v1.56.0 by @slack-oss-bot in #2500
- chore(deps): update plugin metro to v0.9.4 by @slack-oss-bot in #2498
- fix(deps): update ktor monorepo to v3.3.3 by @slack-oss-bot in #2437
- chore(deps): update plugin emulatorwtf to v1.0.3 by @slack-oss-bot in #2467
- fix(deps): update agp to v8.13.2 by @slack-oss-bot in #2457
- Codegen - Ensure parameter name is include on java OriginatingElement by @stagg in #2446
- fix(deps): update kotlin monorepo to v2.3.0 by @slack-oss-bot in #2471
- chore(deps): update dependency termcolor to v3.3.0 by @slack-oss-bot in #2486
- Cache konan deps in actions by @ZacSweers in #2485
- Fix snapshots by @ZacSweers in #2484
- Migrate STAR sample to new API by @ZacSweers in #2480
- Add code gen readme by @ZacSweers in #2476
- fix(deps): update kotlininject to v0.9.0 by @slack-oss-bot in #2495
- Few more tests for answering results by @stagg in #2458
- Compose 1.10.0 by @stagg in #2379
New Contributors
- @evanisnor made their first contribution in https://github.com/slackhq/circuit/pull/2403
- @amirroid made their first contribution in https://github.com/slackhq/circuit/pull/2416
Full Changelog: https://github.com/slackhq/circuit/compare/0.31.0...0.32.0