Skip to content

Commit 8f09afb

Browse files
committed
Multiplatform lifecycle docs
Refs: #12
1 parent 20e7ea6 commit 8f09afb

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Please checkout the Medium article on pattern/library usage.
1111

1212
- [Introduction](#introduction)
1313
- [v3.X Breaking change](#v3x-breaking-change)
14+
- [v4.X Breaking change](#v4x-breaking-change)
1415
- [Dependencies](#dependencies)
1516
- [Examples](#examples)
1617
- [The basic task - Load-Content-Error](#the-basic-task---load-content-error)
@@ -101,6 +102,18 @@ To be able to get the current UI state of the state-machine and to get rid of in
101102
UI state is not yet defined (no updates of UI state happened) the `FlowStateMachine` and
102103
the `ProxyMachineState` now require to pass initial UI state in constructors.
103104

105+
## v4.X Breaking change
106+
107+
The view lifecycle [MachineLifecycle](commonstatemachine/src/commonMain/kotlin/com/motorro/commonstatemachine/lifecycle/MachineLifecycle.kt))
108+
implementation is moved to the separate multiplatform library:
109+
110+
```groovy
111+
dependencies {
112+
// View lifecycle implementation
113+
implementation "com.motorro.commonstatemachine:lifecycle:x.x.x"
114+
}
115+
```
116+
104117
## Dependencies
105118

106119
The project has a very simple core to implement yourself but you could also grab the latest core

lifecycle/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ kotlin {
9494
commonMain.dependencies {
9595
api(project(":commonstatemachine"))
9696
api(libs.kotlin.coroutines.core)
97-
api(libs.composeMultiplatform.runtime)
9897
api(libs.composeMultiplatform.lifecycle)
9998
}
10099
commonTest.dependencies {

0 commit comments

Comments
 (0)