Releases: slackhq/circuit
0.33.1
New
- Added
ProvideRecordLifecycleto safely override theLocalRecordLifecyclebehaviour ofNavigableCircuitContentwhere only the currently active record in theNavStackis not paused. - Added
rememberSaveableNavStack(NavStackList)overload to initialize a nav stack from an existing snapshot. - Added a
Presenter.testvariant that provides composition local values to thePresenterunder test
Fixes
- Fixes an issue where retained values where not getting saved at the correct time.
Docs
- New "Scaling Presenters" guide covering best practices for structuring presenters as they grow, including extracting sub-presenters, modularizing event handling, and testing strategies.
Contributors
Special thanks to the following contributors for contributing to this release!
What's Changed
- fix(deps): update jb.compose to v1.10.1 by @slack-oss-bot in #2558
- fix(deps): update androidx.activity to v1.12.4 by @slack-oss-bot in #2560
- fix(deps): update roborazzi to v1.59.0 by @slack-oss-bot in #2564
- fix(deps): update androidx.compose to v1.10.3 by @slack-oss-bot in #2561
- fix(deps): update dependency androidx.compose.runtime:runtime to v1.10.3 by @slack-oss-bot in #2562
- chore(deps): update plugin metro to v0.10.4 by @slack-oss-bot in #2565
- Allow customizing of
RecordLifecyclewithProvideRecordLifecycleby @stagg in #2566 - fix(deps): update ksp monorepo to v2.3.6 by @slack-oss-bot in #2570
- [docs] Scaling presenters by @stagg in #2556
- Added composition local presenter test to Circuit Tests. by @matthewbahr-clear in #2559
- Add a single build and check ci task by @stagg in #2575
- fix(deps): update anvil to v0.5.3 by @slack-oss-bot in #2573
- Retained - Move
DisposableEffectby @stagg in #2576 - Counter sample updates by @stagg in #2571
- Add
rememberSaveableNavStackthat takes aNavStackListby @stagg in #2577
New Contributors
- @matthewbahr-clear made their first contribution in #2559
Full Changelog: 0.33.0...0.33.1
0.33.0
New Navigation Architecture
Circuit now supports bidirectional navigation with browser-style forward/backward capabilities! Checkout the migration guide.
val navStack = rememberSaveableNavStack(root = HomeScreen)
val navigator = rememberCircuitNavigator(navStack)
navigator.backward() // Move back without removing history
navigator.forward() // Move forward to a previously visited screenNavigation changes:
Navigator.forward(): Move forward in navigation historyNavigator.backward(): Move backward in navigation historyNavigator.peekNavStack(): Immutable snapshot of the current navigation stack stateNavigableCircuitContentis aware of the full navigation stack and providesNavStackListto
decorations, enabling them to render forward stack records.
SaveableNavStack:
- New implementation in
circuit-foundationproviding full bidirectional navigation state - The existing
SaveableBackStackimplementation has been updated to extendNavStack
New circuit-runtime-navigation artifact:
NavStack: Core navigation stack supporting push/pop and forward/backward traversalNavStackList: Immutable snapshot of navigation state
circuitx-navigation:
InterceptingNavigatornow supportsforward()andbackward()navigation methods- Updated to use
NavStackandNavStackListinstead ofBackStackandList<Screen> - Rewrite interceptors can now rewrite to any
NavEvent(not just specific navigation types likeInterceptedGoToResult.RewriteorInterceptedResetRootResult.Rewrite) FailureNotifierinterface updated withforwardFailure()andbackwardFailure()methods with default implementations
Updates
New
- Add
mingwX64()target tocircuit-codegen-annotations.
Fixes
- Fix an issue where
AnsweringResultHandlerwas not correctly parceling pending results.
Changes
- Compile against kotlin-inject-anvil
0.1.7. NavigationEventHandlerusage is now disabled by default when noNavigationEventDispatcherOwneris available, preventing crashes in environments with dynamic navigation event support. This behaviour can be configured with theCircuit.lenientNavigationEventDispatcherOwneroption.BottomSheetOverlaynow exposescontentWindowInsets, mirroringModalBottomSheet
Contributors
Special thanks to the following contributors for contributing to this release!
What's Changed
- NavStack by @stagg in #2501
- Fix PopResult bad parcelization by @stagg in #2513
- fix(deps): update dependency org.robolectric:robolectric to v4.16.1 by @slack-oss-bot in #2516
- Circuitx - NavStack support by @stagg in #2514
- fix(deps): update ktor monorepo to v3.4.0 by @slack-oss-bot in #2523
- chore(deps): update dependency pymdown-extensions to v10.20.1 by @slack-oss-bot in #2524
- [Docs] NavStack by @stagg in #2515
- fix(deps): update dependency org.jetbrains.kotlinx:atomicfu to v0.31.0 by @slack-oss-bot in #2527
- Update to KIA 0.1.7 + enable windows target by @ZacSweers in #2530
- fix(deps): update androidx.activity to v1.12.3 by @slack-oss-bot in #2536
- fix(deps): update ksp monorepo to v2.3.5 by @slack-oss-bot in #2539
- feat(overlays): Expose contentWindowInsets in BottomSheetOverlay by @spectrl in #2543
- Fix the circuitx artifacts on the about page by @stagg in #2544
- chore(deps): update gradle to v9.3.1 by @slack-oss-bot in #2542
- fix(deps): update androidx.compose to v1.10.2 by @slack-oss-bot in #2537
- fix(deps): update dependency androidx.compose.runtime:runtime to v1.10.2 by @slack-oss-bot in #2538
- fix(deps): update dependency com.google.testparameterinjector:test-parameter-injector to v1.21 by @slack-oss-bot in #2534
- fix(deps): update roborazzi to v1.58.0 by @slack-oss-bot in #2547
- chore(deps): update plugin emulatorwtf to v1.3.1 by @slack-oss-bot in #2549
- fix(deps): update markdownrenderer to v0.39.2 by @slack-oss-bot in #2545
- fix(deps): update dagger to v2.59.1 by @slack-oss-bot in #2550
- chore(deps): update dependency fastlane to v2.232.0 by @slack-oss-bot in #2552
- fix(deps): update kotlin monorepo to v2.3.10 by @slack-oss-bot in #2551
- Lenient use of LocalNavigationEventDispatcherOwner by @stagg in #2548
- chore(deps): update plugin nativecoroutines to v1.0.1 by @slack-oss-bot in #2553
- chore(deps): update dependency markdown to v3.10.2 by @slack-oss-bot in #2554
- chore(deps): update plugin metro to v0.10.3 by @slack-oss-bot in #2555
New Contributors
Full Changelog: 0.32.0...0.33.0
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 #2403
- @amirroid made their first contribution in #2416
Full Changelog: 0.31.0...0.32.0
0.31.0
Breaking Changes:
Remove kotlinx-immutable dependency. With Compose's strong skipping mode, we no longer feel this is necessary.
Result delivery is now handled by NavigableCircuitContent via an internal AnsweringResultNavigator wrapper, and result handling APIs have been removed from BackStack and SaveableBackStack as this is now purely a navigation concern. This separates result handling concerns from the backstack implementation and provides better encapsulation.
The callback block in rememberAnsweringNavigator is no longer suspendable as it was never intended for any long running operations.
Behaviour Changes:
On iOS GestureNavigationDecorationFactory now uses IOSPredictiveBackNavDecorator instead of CupertinoGestureNavigationDecorator. This new decorator uses the Compose multi-platform PredictiveBackHandler to drive the back animation, instead of a custom swipe gesture or nested scroll.
The Navigator.resetRoot API is now using a StateOptions class to allow saving, restoring, and clearing of back stack state. The previous resetRoot function with saveState and restoreState booleans is available as an extension function.
Misc:
- Switched Compose uses to depend on Compose Multiplatform over Jetpack Compose
- Android minimum SDK is now
minSdk23 - Added saved state peek/remove to
Backstack - Fixed
Navigator.onNavEvent()not passing all arguments toresetRoot() - Fixes to
rememberCircuitNavigator()capturingonRootPopand not recreating if a new backstack was provided - Update Compose Multiplatform to
1.9.2. - Update to Kotlin
2.2.21. - Update to Molecule
2.2.0. - Build against KSP
2.2.20-2.0.4.
What's Changed
- Kotlin 2.2.10 by @ZacSweers in #2199
- fix(deps): update dependency androidx.core:core-ktx to v1.17.0 by @slack-oss-bot in #2245
- fix(deps): update dependency org.jsoup:jsoup to v1.21.2 by @slack-oss-bot in #2260
- fix(deps): update dependency com.jakewharton.mosaic:mosaic-runtime to v0.18.0 by @slack-oss-bot in #2256
- Create a common
PredictiveBackNavigationDecoratorby @stagg in #2262 - Fix z-index issue with
CupertinoGestureNavigationDecoratorby @stagg in #2251 - Add an iOS variant for the navigation sample by @stagg in #2270
- fix(deps): update agp to v8.13.0 by @slack-oss-bot in #2271
- Remove kotlinx-immutable by @ZacSweers in #2273
- Use navigable circuit content in star sample home by @ZacSweers in #2277
- Add
IOSPredictiveBackNavDecoratorby @stagg in #2278 - Compose 1.9 by @stagg in #2241
- Dependency cleanup by @stagg in #2317
- Fix codegen with screen objects to always use
ischeck by @simon-duchastel in #2307 - fix(deps): update dagger to v2.57.2 by @slack-oss-bot in #2320
- minSdk 23 by @stagg in #2322
- Fix minor typo in setup doc by @eboudrant in #2324
- Fix local emulator instrumentation tests by @stagg in #2325
- Update to Kotlin 2.2.20 by @ZacSweers in #2200
- Fix
onNavEventnot passing along all arguments to reset root by @stagg in #2334 - Fixes for
rememberCircuitNavigatorby @stagg in #2335 - fix(deps): update dependency me.saket.telephoto:zoomable-image-coil to v0.18.0 by @slack-oss-bot in #2336
- fix(deps): update ktor monorepo to v3.3.1 by @slack-oss-bot in #2346
- fix(deps): update ksp monorepo to v2.2.20-2.0.4 by @slack-oss-bot in #2341
- chore(deps): update dependency org.jetbrains.compose.hot-reload to v1.0.0-rc02 by @slack-oss-bot in #2348
- fix(deps): update dependency net.harawata:appdirs to v1.5.0 by @slack-oss-bot in #2351
- fix(deps): update okio to v3.16.2 by @slack-oss-bot in #2355
- Cleanup unused
CupertinoGestureNavigationDecoratorby @stagg in #2357 - fix(deps): update lifecycle.jb to v2.9.5 by @slack-oss-bot in #2353
- Add ability to remove saved state in
BackStackby @stagg in #2344 - fix(deps): update dependency org.jetbrains.compose.material3:material3 to v1.9.0 by @slack-oss-bot in #2354
- Use the old bool naming for the parameter reset roots by @stagg in #2360
- chore(deps): update plugin emulatorwtf to v0.19.4 by @slack-oss-bot in #2363
- Split result handling from
BackStackandSaveableBackStackby @stagg in #2367 - Remove suspend from the
rememberAnsweringNavigatorcallback by @stagg in #2372 - fix(deps): update kotlin monorepo to v2.2.21 by @slack-oss-bot in #2371
- Include backstack on the
NavigationInterceptor/NavigationEventListenermethods by @stagg in #2369 - chore(deps): update gradle to v9.2.0 by @slack-oss-bot in #2378
- fix(deps): update compose.jb to v1.9.2 by @slack-oss-bot in #2377
- fix(deps): update okhttp monorepo to v5.3.0 by @slack-oss-bot in #2380
- fix(deps): update roborazzi to v1.51.0 by @slack-oss-bot in #2383
- chore(deps): update plugin metro to v0.7.3 by @slack-oss-bot in #2362
New Contributors
- @simon-duchastel made their first contribution in #2307
Full Changelog: 0.30.0...0.31.0
0.30.0
Updates to ViewModelBackStackRecordLocalProvider
ViewModelBackStackRecordLocalProvider has moved from the backstack module to the circuit-foundation module while also changing to use the multiplatform ViewModel implementation. ViewModelBackStackRecordLocalProvider is now provided as a default through the Circuit instance, enabling customization of the default BackStackRecordLocalProviders.
Also added backStackHostViewModel() to access a ViewModel located in the ViewModelStoreOwner of NavigableCircuitContent.
Behaviour Changes:
- Rebuilt
continuityRetainedStateRegistryas a commonlifecycleRetainedStateRegistryand madeViewModelan implementation detail of it. AnimatedNavDecorationis now using the full back stack to determine the transition animation.
Misc:
- [gesture-navigation] Fix a crash when using
AndroidPredictiveBackNavDecoratorand having previously calledresetRoot()withrestoreState=false. - [code gen] Added support for
CircuitContextas an assisted param in code gen - Update dagger to
v2.57. - Update Compose Android BOM to
2025.07.00. - Update androidx.lifecycle to
2.9.2.
Special thanks to @CamiloVega and @kvaster for contributing to this release!
What's Changed
- fix(deps): update dependency org.jetbrains.kotlinx:kotlinx-serialization-json-okio to v1.9.0 by @slack-oss-bot in #2169
- fix(deps): update okio to v3.14.0 by @slack-oss-bot in #2170
- chore(deps): update dependency mkdocs-material to v9.6.15 by @slack-oss-bot in #2172
- fix(deps): update okio to v3.15.0 by @slack-oss-bot in #2173
- fix(deps): update kct to v0.8.0 by @slack-oss-bot in #2174
- fix(deps): update okhttp monorepo to v5.0.0 by @slack-oss-bot in #2171
- fix(deps): update ktor monorepo to v3.2.1 by @slack-oss-bot in #2175
- chore(deps): update dependency gradle to v8.14.3 by @slack-oss-bot in #2176
- fix(deps): update roborazzi to v1.46.1 by @slack-oss-bot in #2180
- Handle duplicate IDs in animal bios by @ZacSweers in #2179
- Fix PetRepository caching by @ZacSweers in #2178
- Add compose hot reload to STAR sample by @ZacSweers in #2177
- fix(deps): update okhttp monorepo to v5.1.0 by @slack-oss-bot in #2182
- fix(deps): update dependency io.reactivex.rxjava3:rxjava to v3.1.11 by @slack-oss-bot in #2181
- chore(deps): update plugin binarycompatibilityvalidator to v0.18.1 by @slack-oss-bot in #2185
- fix(deps): update agp to v8.11.1 by @slack-oss-bot in #2186
- chore(deps): update dependency com.vanniktech.maven.publish to v0.34.0 by @slack-oss-bot in #2188
- fix(deps): update ktor monorepo to v3.2.2 by @slack-oss-bot in #2189
- chore(deps): update plugin metro to v0.5.0 by @slack-oss-bot in #2190
- chore(deps): update plugin emulatorwtf to v0.19.3 by @slack-oss-bot in #2192
- Rebuild "Continuity" as "Lifecycle" retained by @stagg in #2119
- chore(deps): update dependency org.jetbrains.compose.hot-reload to v1.0.0-beta04 by @slack-oss-bot in #2193
- fix(deps): update androidx.lifecycle to v2.9.2 by @slack-oss-bot in #2194
- fix(deps): update dependency androidx.compose:compose-bom to v2025.07.00 by @slack-oss-bot in #2196
- chore(deps): update plugin metro to v0.5.1 by @slack-oss-bot in #2198
- fix(deps): update dagger to v2.57 by @slack-oss-bot in #2195
- chore(deps): update plugin metro to v0.5.2 by @slack-oss-bot in #2201
- fix(deps): update coil to v3.3.0 by @slack-oss-bot in #2202
- Fix reset root crash when using the gesture navigation decoration by @stagg in #2206
- chore(deps): update dependency mkdocs-material to v9.6.16 by @slack-oss-bot in #2208
- Add support for CircuitContext in CodeGen by @CamiloVega in #2203
- Rework
ViewModelBackStackRecordLocalProviderby @stagg in #2207 - Bump local emulator running to match Star min sdk by @stagg in #2209
- chore(deps): update plugin metro to v0.5.3 by @slack-oss-bot in #2211
- Use full back stack to determine type of transition animation by @kvaster in #2104
- chore(deps): update dependency pymdown-extensions to v10.16.1 by @slack-oss-bot in #2210
- fix(deps): update ktor monorepo to v3.2.3 by @slack-oss-bot in #2212
- fix(deps): update okio to v3.16.0 by @slack-oss-bot in #2213
- fix(deps): update benchmark to v1.4.0 by @slack-oss-bot in #2214
- fix(deps): update dependency androidx.browser:browser to v1.9.0 by @slack-oss-bot in #2215
- fix(deps): update dependency androidx.test:monitor to v1.8.0 by @slack-oss-bot in #2216
- fix(deps): update dependency androidx.test.espresso:espresso-core to v3.7.0 by @slack-oss-bot in #2217
- fix(deps): update dependency androidx.test.ext:junit to v1.3.0 by @slack-oss-bot in #2218
- chore(deps): update dependency co.touchlab.skie to v0.10.5 by @slack-oss-bot in #2219
- fix(deps): update agp to v8.12.0 by @slack-oss-bot in #2220
New Contributors
- @CamiloVega made their first contribution in #2203
- @kvaster made their first contribution in #2104
Full Changelog: 0.29.1...0.30.0
0.29.1
- Fix
@AssistedFactorycode gen for Metro to use standard nested class semantics.
What's Changed
- Migrate STAR sample to Metro by @ZacSweers in #2168
Full Changelog: 0.29.0...0.29.1
0.29.0
- Update to Kotlin
2.2.0. - Update to KSP
2.2.0-2.0.2. - Support
@AssistedFactoryin code gen for Metro. - Add seekable transition support to
AnimatedOverlay. - Add predictive back support to
FullScreenOverlay. - Compile against Android SDK 36.
What's Changed
- fix(deps): update ksp monorepo to v2.1.21-2.0.2 by @slack-oss-bot in #2132
- chore(deps): update dependency fastlane to v2.228.0 by @slack-oss-bot in #2133
- fix(deps): update dependency app.cash.turbine:turbine to v1.2.1 by @slack-oss-bot in #2134
- fix(deps): update dependency org.jetbrains.kotlinx:atomicfu to v0.28.0 by @slack-oss-bot in #2135
- fix(deps): update okio to v3.13.0 by @slack-oss-bot in #2137
- fix(deps): update dependency com.facebook:ktfmt to v0.55 by @slack-oss-bot in #2139
- Add predictive back support to animated overlays by @stagg in #2138
- fix(deps): update dependency org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose to v2.9.1 by @slack-oss-bot in #2141
- fix(deps): update compose.jb to v1.8.2 by @slack-oss-bot in #2140
- chore(deps): update dependency markdown to v3.8.1 by @slack-oss-bot in #2143
- fix(deps): update dependency androidx.compose.material:material to v1.8.3 by @slack-oss-bot in #2149
- fix(deps): update compose.ui to v1.8.3 by @slack-oss-bot in #2145
- fix(deps): update dependency androidx.compose:compose-bom to v2025.06.01 by @slack-oss-bot in #2146
- fix(deps): update dependency androidx.compose.animation:animation to v1.8.3 by @slack-oss-bot in #2147
- fix(deps): update roborazzi to v1.45.1 by @slack-oss-bot in #2142
- fix(deps): update dependency androidx.compose.foundation:foundation to v1.8.3 by @slack-oss-bot in #2148
- fix(deps): update compose.runtime to v1.8.3 by @slack-oss-bot in #2144
- Update Metro @assisted inject support by @aaalaniz in #2150
- chore(deps): update dependency markdown to v3.8.2 by @slack-oss-bot in #2151
- fix(deps): update dependency org.robolectric:robolectric to v4.15 by @slack-oss-bot in #2152
- chore(deps): update dependency pygments to v2.19.2 by @slack-oss-bot in #2154
- chore(deps): update dependency pymdown-extensions to v10.16 by @slack-oss-bot in #2155
- fix(deps): update dependency org.jsoup:jsoup to v1.21.1 by @slack-oss-bot in #2157
- chore(deps): update dependency com.vanniktech.maven.publish to v0.33.0 by @slack-oss-bot in #2156
- chore(deps): update dependency co.touchlab.skie to v0.10.4 by @slack-oss-bot in #2159
- fix(deps): update agp to v8.11.0 by @slack-oss-bot in #2161
- chore(deps): update plugin binarycompatibilityvalidator to v0.18.0 by @slack-oss-bot in #2160
- fix(deps): update dependency com.facebook:ktfmt to v0.56 by @slack-oss-bot in #2164
- Update to Kotlin 2.2.0 by @ZacSweers in #2105
- Update xcode version by @ZacSweers in #2166
- Compile against SDK 36 by @ZacSweers in #2062
New Contributors
Full Changelog: 0.28.1...0.29.0
0.28.1
Behaviour Changes:
Replacing rememberContinuityCanRetainChecker() with CanRetainChecker.Always, which changes the Android rememberRetained behaviour to retain based on the ViewModel lifecycle. This should fix rememberRetained not functioning as expected when used in a fragment. Previously rememberRetained would only retain if the Activity was in a configuration change.
Misc:
- Update to Kotlin
2.1.21. - Build against KSP
2.1.21-2.0.1. - Fix not being able to provide a custom ViewModel to
continuityRetainedStateRegistry() - Fix
rememberCircuitNavigatorandrememberInterceptingNavigatorreplaying a root pop at the same screen - Update Compose Android BOM to
2025.06.00. - Update Compose Android to
1.8.2. - Update to Compose Multiplatform to
1.8.1. - Update androidx.lifecycle to
2.9.1
What's Changed
- Update docs to reference circuitx navigation library by @MichaelEvans in #2095
- fix(deps): update dependency org.jetbrains.kotlinx:kotlinx-collections-immutable to v0.4.0 by @slack-oss-bot in #2097
- Migrate away from deprecated dependencyProject APIs by @ZacSweers in #2100
- Update to Kotlin 2.1.20 by @ZacSweers in #1929
- fix(deps): update ksp monorepo to v2.1.21-2.0.1 by @slack-oss-bot in #2027
- Update
AndroidContinuityto work with a customViewModelby @stagg in #2090 - fix(deps): update compose.jb to v1.8.1 by @slack-oss-bot in #2106
- fix(deps): update compose.runtime to v1.8.2 by @slack-oss-bot in #2109
- Replace
rememberContinuityCanRetainChecker()withCanRetainChecker.Alwaysby @stagg in #2118 - fix(deps): update kotlininject.anvil to v0.1.6 by @slack-oss-bot in #2120
- fix(deps): update agp to v8.10.1 by @slack-oss-bot in #2123
- fix(deps): update androidx.lifecycle to v2.9.1 by @slack-oss-bot in #2127
- fix(deps): update dependency androidx.appcompat:appcompat to v1.7.1 by @slack-oss-bot in #2128
- fix(deps): update dependency androidx.compose:compose-bom to v2025.06.00 by @slack-oss-bot in #2129
- chore(deps): update dependency gradle to v8.14.2 by @slack-oss-bot in #2130
- Better
BackHandlerguarding of root pops by @stagg in #2131
New Contributors
- @MichaelEvans made their first contribution in #2095
Full Changelog: 0.28.0...0.28.1
0.28.0
Compose 1.8
This release updates to Compose 1.8 🎉
As part of this update the published jvmTarget has moved to 11 to match the upstream change.
Behaviour Changes
The Android version of rememberCircuitNavigator() that could handle back navigation was changed to delay the root Navigator.pop by a composition such that its BackHandler could be fully disabled first. This change fixed an issue where a root pop would not propagate to outer BackHandler's or OnBackPressedCallback's. With the addition of compose:ui-backhandler, this variant of rememberCircuitNavigator() was moved from the Android to the common circuit-foundation artifact.
New circuitx-navigation adding navigation interception capabilities
We've added a new navigation intercepting system to CircuitX that lets you hook into and modify navigation before it happens. The InterceptingNavigator sits before a regular Circuit Navigator, giving you a chance to inspect or change navigation events. With the NavigationInterceptor interface, you can handle goTo, pop, and resetRoot calls and decide if they should proceed, fail, be skipped, or be rewritten to navigate somewhere else. There's also aNavigationEventListener if you just want to know when navigation happens without changing it.
This new system is handy for advanced routing, blocking navigation, or tracking navigation events for analytics.
dependencies {
implementation("com.slack.circuit:circuitx-navigation:<version>")
}Docs: https://slackhq.github.io/circuit/circuitx/navigation
Misc:
- Fix the provided
Modifiernot being used inNavigatorDefaults.EmptyDecoration - [docs] Add more alternative state designs.
- [docs] Split up the Circuitx docs into sub pages
What's Changed
- Rename navigation sample by @stagg in #2041
- fix(deps): update dagger to v2.56.2 by @slack-oss-bot in #2039
- Split up the Circuitx docs into sub pages by @stagg in #2053
- fix(deps): update kotlininject to v0.8.0 by @slack-oss-bot in #2059
- Flesh out state docs more + different designs by @ZacSweers in #2061
- fix(deps): update dependency app.cash.molecule:molecule-runtime to v2.1.0 by @slack-oss-bot in #2034
- CircuitX Navigation by @stagg in #1669
- Circuitx Navigation doc page by @stagg in #2068
- Circuitx navigation tests by @stagg in #2067
- Compose 1.8 by @stagg in #2056
- Fix navigation BackHandler by @stagg in #2073
- fix(deps): update agp to v8.10.0 by @slack-oss-bot in #2074
- fix(deps): update compose.runtime to v1.8.1 by @slack-oss-bot in #2076
- fix(deps): update dependency androidx.compose:compose-bom to v2025.05.00 by @slack-oss-bot in #2083
- fix(deps): update androidx.lifecycle to v2.9.0 by @slack-oss-bot in #2082
- fix(deps): update kotlininject.anvil to v0.1.5 by @slack-oss-bot in #2084
Full Changelog: 0.27.1...0.28.0
0.27.1
- Fix: Crash caused by calling
resetRootwhile the sameScreenwas still in the composition - New: Added a sample app demonstrating bottom bar navigation
- [gesture-navigation] Update
AndroidPredictiveBackNavDecoratorto behave more like the Android predictive back motion spec - [gesture-navigation] Change the Compose Material dependency to not be exposed as an api
- Update compose-bom to
2025.04.00 - Update dagger to
2.56.1 - Update kotlinInject.anvil to
0.1.3 - Update kotlinx-coroutines to
1.10.2 - Update androidx.core to
1.16.0 - [samples] Update mosaic to
0.17.0
Special thanks to @OSemenovBoyarka and @asapha for contributing to this release!
What's Changed
- Use .toUri by @ZacSweers in #1992
- Fix reset root by @stagg in #1995
- Sample app for navigation bar and tests by @stagg in #2001
- Sample navbar follow up by @stagg in #2004
- Update roborazzi to v1.43.1 by @slack-oss-bot in #2008
- Updating
AndroidPredictiveBackNavDecoratorby @stagg in #2009 - Update agp to v8.9.1 by @slack-oss-bot in #2010
- Update dagger to v2.56.1 by @slack-oss-bot in #2011
- Update kotlinInject.anvil to v0.1.3 by @slack-oss-bot in #2023
- fix(gesture-navigation): hide material dependency as an implementation detail by @OSemenovBoyarka in #2019
- fix(deps): update kotlinx-coroutines monorepo to v1.10.2 by @slack-oss-bot in #2026
- Fix the activity-compose dependency by @asapha in #2024
- fix(deps): update dependency androidx.compose.material3:material3 to v1.3.2 by @slack-oss-bot in #2029
- fix(deps): update dependency androidx.compose:compose-bom to v2025.04.00 by @slack-oss-bot in #2030
- fix(deps): update dependency androidx.core:core-ktx to v1.16.0 by @slack-oss-bot in #2031
New Contributors
- @OSemenovBoyarka made their first contribution in #2019
- @asapha made their first contribution in #2024
Full Changelog: 0.27.0...0.27.1