Closed arkivanov closed 2 months ago
The changes primarily focus on the PredictiveBackParams
class and the stackAnimation
function within the com.arkivanov.decompose.extensions.compose.experimental.stack.animation
package. Key modifications include the removal of generic type parameters from the PredictiveBackParams
class and adjustments to the stackAnimation
function signatures, enhancing type safety and simplifying usage. The DefaultStackAnimation
class also sees a shift to non-nullable PredictiveBackParams
, further streamlining the API and reducing complexity in function calls and parameter handling.
File | Change Summary |
---|---|
extensions-compose-experimental/api/extensions-compose-experimental.klib.api |
Removed generic type parameters from PredictiveBackParams class; modified stackAnimation function signatures to remove generics from return types. |
extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/stack/animation/DefaultStackAnimation.kt |
Changed predictiveBackParams parameter to return non-nullable PredictiveBackParams ; updated related inner classes for consistency. |
extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/stack/animation/PredictiveBackParams.kt |
Modified PredictiveBackParams class declaration to remove type parameters, simplifying its definition. |
extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/stack/animation/StackAnimation.kt |
Adjusted stackAnimation function signatures to return non-nullable PredictiveBackParams , removing the type parameters from the return type. |
extensions-compose-experimental/src/jvmTest/kotlin/com/arkivanov/decompose/extensions/compose/experimental/stack/ChildStackTest.kt |
Simplified instantiation of PredictiveBackParams by removing type parameters from constructor calls, enhancing code readability. |
sequenceDiagram
participant A as User
participant B as StackAnimation
participant C as PredictiveBackParams
A->>B: Request stack animation
B->>C: Get PredictiveBackParams
C-->>B: Return PredictiveBackParams
B-->>A: Provide stack animation
π In the land of code where rabbits play,
Generics were hopping, but now they're away.
With PredictiveBackParams, simple and bright,
Animation flows smoothly, a pure delight!
So letβs dance with the stacks, in a joyful array,
For changes have come, and theyβre here to stay! π
Summary by CodeRabbit
New Features
PredictiveBackParams
by removing generic type parameters, enhancing usability.PredictiveBackParams
is non-nullable.Bug Fixes