-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update circuit to v0.26.1 #309
Open
renovate
wants to merge
1
commit into
modern
Choose a base branch
from
renovate/circuit
base: modern
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
Generated by 🚫 Danger Kotlin against d2c3b72 |
b52bf06
to
f5b4b4f
Compare
f5b4b4f
to
ca39858
Compare
0fce516
to
f1f8a33
Compare
501e13f
to
255d46d
Compare
2bbc0cb
to
7c279db
Compare
c3aabc8
to
71df052
Compare
b52a909
to
34922da
Compare
b0dd6af
to
ad6db82
Compare
1c8d3ad
to
3ee56c3
Compare
b4b0ab7
to
a5504d9
Compare
a5504d9
to
f687640
Compare
f687640
to
205a202
Compare
205a202
to
6bab46f
Compare
77cf17f
to
a45656e
Compare
a45656e
to
d2c3b72
Compare
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.
This PR contains the following updates:
0.20.0
->0.26.1
0.20.0
->0.26.1
0.20.0
->0.26.1
0.20.0
->0.26.1
0.20.0
->0.26.1
Release Notes
slackhq/circuit (com.slack.circuit:circuitx-gesture-navigation)
v0.26.1
Compare Source
2025-02-13
CupertinoGestureNavigationDecoration
to be aAnimatedNavDecorator
.removeState
call inRetainedStateHolder
.1.7.8
.Special thanks to @vulpeszerda for contributing to this release!
v0.26.0
Compare Source
2025-02-06
Happy new year!
Shared Elements API!
After a lot of iteration and work, this release adds support for Compose's new shared elements APIs.
These are still experimental and subject to change, both in Circuit and the underlying Compose APIs.
See this PR for full details as well as sample integrations: https://github.com/slackhq/circuit/pull/1550. Please share feedback in this discussion. More formal docs to come as well, we'll publish updates there!
For now, the easiest way to support shared element transitions is to wrap your content with a
SharedElementTransitionLayout
.SharedElementTransitionLayout
creates and provides aSharedElementTransitionScope
to content within it, and in turn exposes aSharedTransitionScope
for use with standard compose shared elements/bounds animations. This is supported inNavigableCircuitContent
and overlays.There is also a
PreviewSharedElementTransitionLayout
for help with Compose previews.Behaviour Changes:
rememberRetained
Previously,
rememberRetained
could sometimes restore values when a composable was re-added, depending on whether its parentRetainedStateRegistry
had been saved (#1783).Now,
rememberRetained
aligns withremember
andrememberSaveable
: if a composable is removed and later re-added, its value will not be restored unless it is explicitly saved and then restored via the registry.Update rememberRetained to allow CanRetainChecker to be updated in place.
Behaviour Change:
RetainedStateRegistry
saveAll
now returns the saved values.RetainedStateRegistry.Entry.unregister
now returns whether the unsaved valueProvider was actually removed.saveAll
andsaveValue
now skip storing child values whenCanRetainChecker
returnsfalse
.New:
RetainedStateHolder
Similar to
SaveableStateHolder
,RetainedStateHolder
provides a mechanism to maintain separateRetainedStateRegistry
entries for specific keys. This allows saving the state defined withrememberRetained
for a subtree before it is disposed, so that the subtree can later be recomposed with its state restored.Implementation Changes:
NavigableCircuitContent
RetainedStateRegistry
for each record has been changed to useRetainedStateHolder
instead.SaveableStateHolder
to release saved states of removed records.Misc
2025.01.01
.1.9.1
.1.10.0
.1.7.7
.1.7.3
.1.9.10
.1.9.10-1.0.29
.2.55
.2.0.0
.0.4.1
. Should still be compatible with square/anvil as well.0.1.2
. Should still be compatible with square/anvil as well.Special thanks to @vulpeszerda, @rharter, @alexvanyo, and @easyhooon for contributing to this release!
v0.25.0
Compare Source
2024-10-23
tonalElevation
toBottomSheetOverlay
so that is reflected inModalBottomSheet
.-dontwarn
on Anvil classes from codegen annotations.0.0.5
.1.9.3
.2.8.6
.2.0.21
.2.0.21-1.0.25
.1.2.0
.1.7.4
.1.7.0
.Special thanks to @eboudrant, @bidrohi, @hossain-khan, and @dturner for contributing to this release!
v0.24.0
Compare Source
2024-09-16
presenterTestOf()
andPresenter.test()
functions now return a newCircuitReceiveTurbine
interface. This interface slightly but importantly modifies the behavior ofawaitItem()
by making it only emit changed items rather than every item. If you do want to assert the equivalent state is emitted across recompositions, you can useawaitUnchanged()
.LocalBackStack
to public API.awaitItem()
, you may need to update tests that previously assumed duplicate emissions.2.0.20
.Uuid
. This release now requires Kotlin2.0.20
or later.rememberAnsweringNavigator
result handling.1.9.0
.2024.09.01
.0.3.8
.1.9.2
.2.8.5
.2.0.20
.2.0.20-1.0.25
.v0.23.1
Compare Source
2024-07-30
NoOpRetainedStateRegistry
to public API for use in testing and previews.CircuitPreview
helper function for composable previews that contain Circuit content.LocalInspectionMode
, Circuit's defaultonUnavailableContent
now shows a simpler non-intrusive placeholder UI instead.BottomSheetOverlay
crash when invoking back-press.2.0.10
.1.8.2
.2.0.10-1.0.24
.v0.23.0
Compare Source
2024-07-30
pausableState
#1455.OverlayHost.showFullScreenOverlay
now returns thePopResult?
that was popped by the screen.backstack
dependency fromcircuit-runtime
. It was unnecessary and also accidentally imposed Compose UI on the runtime/presenter artifacts.Overlay
afun interface
.OverlayEffect
to use a newOverlayScope
API that implements bothCoroutineScope
andOverlayHost
, making both contexts available in the lambda.2.0.0-1.0.24
.1.9.1
.2.8.4
.1.8.1
.1.18.1
.1.6.11
.Special thanks to @aschulz90 and @chrisbanes for contributing to this release!
v0.22.2
Compare Source
2024-06-04
pausableState
recomposition loops by avoiding backward snapshot writes.Circuit.presentWithLifecycle
flag to enable/disable automaticpausableState
use. This is enabled by default.1.6.11
.2.8.1
.1.7.0
.Special thanks to @chrisbanes, @adamp, and Chuck Jazdzewski for contributing to this release and helping us find a runtime fix for the
pausableState
issue!v0.22.1
Compare Source
2024-05-28
rememberRetained
implicitly requiringLocalContext
where it used to no-op.2.0.0
.v0.22.0
Compare Source
2024-05-28
2.0.0
.2.0.0-1.0.21
.1.6.10
.This release is otherwise identical to
0.21.0
, just updated to Kotlin 2.0.v0.21.2
Compare Source
pausableState
recomposition loops by avoiding backward snapshot writes.Circuit.presentWithLifecycle
flag to enable/disable automaticpausableState
use. This is enabled by default.Full Changelog: slackhq/circuit@0.21.1...0.21.2
v0.21.1
Compare Source
rememberRetained
implicitly requiringLocalContext
where it used to no-op (#1438)What's Changed
rememberRetained
if theLocalRetainedStateRegistry
isn't set by @stagg in https://github.com/slackhq/circuit/pull/1438Full Changelog: slackhq/circuit@0.21.0...0.21.1
v0.21.0
Compare Source
2024-05-28
FakeNavigator
functions to check for the lack of pop/resetRoot events.FakeNavigator
constructor param to add additional screens to the backstack.StaticScreen
interface. When aStaticScreen
is used, Circuit will internally allow the UI to run on its own and won't connect it to a presenter if no presenter is provided.RecordLifecycle
andLocalRecordLifecycle
composition local, allowing UIs and presenters to observe when they are 'active'. Currently, a record is considered 'active' when it is the top record on the back stack.rememberRetainedSaveable
variant that participates in bothRetainedStateRegistry
andSaveableStateRegistry
restoration, allowing layered state persistence.rememberRetainedSaveable
entering composition:RetainedStateRegistry
andSaveableStateRegistry
, if availablerememberRetained
that explicitly requires aSaver
parameter.CircuitUiState
when they are not active. Presenters can opt-out of this behavior by implementingNonPausablePresenter
.NavigatorImpl.goTo
no longer navigates if theScreen
is equal toNavigator.peek()
.Presenter.present
is now annotated with@ComposableTarget("presenter")
. This helps prevent use of Compose UI in the presentation logic as the compiler will emit a warning if you do. Note this does not appear in the IDE, so it's recommended to useallWarningsAsErrors
to fail the build on this event.Navigator.goTo()
calls to the same current screen.Navigator.goTo
now returns a Bool indicating navigation success.GestureNavigationDecoration
impl tocommonMain
and rename toCupertinoGestureNavigationDecoration
.1.8
in core libraries.FakeNavigator.assertIsEmpty
andexpectNoEvents
(use the specific event type methods instead)Presenter.Factory
as@Stable
.Ui.Factory
as@Stable
.CircuitContext
as@Stable
.EventListener
as@Stable
.EventListener.Factory
as@Stable
.1.9.24
.1.9.24-2.0.20
.1.5.14
.1.17.0
.2.8.0
.1.4.3
.1.8.0
.1.8.1
.1.6.2
.1.6.7
.1.6.7
.1.6.7
.1.6.7
.1.13.1
.1.9.0
.2.51.1
.0.8.4
.Special thanks to @chrisbanes, @alexvanyo, @eboudrant, @edenman, and @JustinBis for contributing to this release!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.