Closed arkivanov closed 3 months ago
The recent changes primarily involve renaming methods and properties in the com.arkivanov.decompose.extensions.compose.experimental.stack
module, specifically transitioning from animatableSelector
to animatable
. This adjustment aims to enhance clarity and consistency in the API, thereby improving code readability. The updates affect various classes and test files, necessitating minor changes in code that references the renamed elements, while the overall functionality remains intact.
Files | Change Summary |
---|---|
.../stack/animation/PredictiveBackParams.kt |
Renamed animatableSelector to animatable in the PredictiveBackParams class; updated documentation. |
.../stack/animation/DefaultStackAnimation.kt |
Updated onBackStarted to use predictiveBackParams.animatable(backEvent) instead of animatableSelector . |
.../stack/ChildStackTest.kt , .../stack/animation/PredictiveBackGestureTest.kt |
Updated constructor parameter from animatableSelector to animatable in respective test classes. |
.../extensions-compose-experimental.api/android/extensions-compose-experimental.api |
Renamed public method getAnimatableSelector() to getAnimatable() for clarity in the stack class. |
.../extensions-compose-experimental/api/extensions-compose-experimental.klib.api |
Renamed property animatableSelector to animatable in PredictiveBackParams class. |
sequenceDiagram
participant User
participant App
participant PredictiveBackParams
participant AnimationHandler
User->>App: Trigger back event
App->>PredictiveBackParams: Call animatable(backEvent)
PredictiveBackParams->>AnimationHandler: Create animation handler with returned animatable
AnimationHandler-->>App: Animation properties applied
App-->>User: Visual feedback on back navigation
🐰 In the code where rabbits hop,
Names have changed, we’ll never stop!
Fromselector
toanimatable
,
Our code now feels more relatable.
With clearer paths, we leap and bound,
In joyful hops, our changes found! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
animatableSelector
toanimatable
.