diff --git a/docs/component/state-preservation.md b/docs/component/state-preservation.md index 90f827ca7..1b681654c 100644 --- a/docs/component/state-preservation.md +++ b/docs/component/state-preservation.md @@ -8,7 +8,7 @@ Since Decompose `v2.2.0-alpha01` the recommended way is to use [kotlinx-serializ ## Usage examples -=== "Before v1.2.0-alpha01" +=== "Before v2.2.0-alpha01" ```kotlin title="Saving state in a component" import com.arkivanov.decompose.ComponentContext @@ -31,7 +31,7 @@ Since Decompose `v2.2.0-alpha01` the recommended way is to use [kotlinx-serializ } ``` -=== "After v1.2.0-alpha01" +=== "After v2.2.0-alpha01" ```kotlin title="Saving state in a component" import kotlinx.serialization.Serializable diff --git a/docs/getting-started/quick-start.md b/docs/getting-started/quick-start.md index b34a5cb91..cd5cbb870 100644 --- a/docs/getting-started/quick-start.md +++ b/docs/getting-started/quick-start.md @@ -139,11 +139,11 @@ Child component configurations is another important concepts of Decompose. It al Each child component is represented by a persistent configuration class. A configuration class denotes which child component should be instantiated, and holds persistent arguments required for instantiation. A configuration class must be defined for every child component. !!!warning - Before `v1.2.0-alpha01`, configuration classes must implement `Parcelable` interface and be annotated with [@Parcelize](https://developer.android.com/kotlin/parcelize) annotation. Starting with `v1.2.0-alpha01`, Parcelable/Parcelize support is deprecated and the recommended way is to annotate configuration classes with [@Serializable](https://github.com/Kotlin/kotlinx.serialization) annotation. + Before `v2.2.0-alpha01`, configuration classes must implement `Parcelable` interface and be annotated with [@Parcelize](https://developer.android.com/kotlin/parcelize) annotation. Starting with `v2.2.0-alpha01`, Parcelable/Parcelize support is deprecated and the recommended way is to annotate configuration classes with [@Serializable](https://github.com/Kotlin/kotlinx.serialization) annotation. ### Using the Child Stack -=== "Before 1.2.0-alpha01" +=== "Before 2.2.0-alpha01" ```kotlin interface RootComponent { @@ -207,7 +207,7 @@ Each child component is represented by a persistent configuration class. A confi } ``` -=== "Since 1.2.0-alpha01" +=== "Since 2.2.0-alpha01" ```kotlin interface RootComponent { diff --git a/docs/navigation/pages/overview.md b/docs/navigation/pages/overview.md index f42a8725c..ca109d9e0 100644 --- a/docs/navigation/pages/overview.md +++ b/docs/navigation/pages/overview.md @@ -52,7 +52,7 @@ class DefaultPageComponent( ) : PageComponent, ComponentContext by componentContext ``` -=== "Before v1.2.0-alpha01" +=== "Before v2.2.0-alpha01" ```kotlin title="PagesComponent" interface PagesComponent { @@ -92,7 +92,7 @@ class DefaultPageComponent( } ``` -=== "Since v1.2.0-alpha01" +=== "Since v2.2.0-alpha01" ```kotlin title="PagesComponent" interface PagesComponent { diff --git a/docs/navigation/slot/overview.md b/docs/navigation/slot/overview.md index 4de44cab6..29209c5f2 100644 --- a/docs/navigation/slot/overview.md +++ b/docs/navigation/slot/overview.md @@ -45,7 +45,7 @@ class DefaultDialogComponent( } ``` -=== "Before v1.2.0-alpha01" +=== "Before v2.2.0-alpha01" ```kotlin title="Root component" interface RootComponent { @@ -83,7 +83,7 @@ class DefaultDialogComponent( } ``` -=== "Since v1.2.0-alpha01" +=== "Since v2.2.0-alpha01" ```kotlin title="Root component" interface RootComponent { diff --git a/docs/navigation/stack/overview.md b/docs/navigation/stack/overview.md index 7b3b32ac9..77c1d155f 100644 --- a/docs/navigation/stack/overview.md +++ b/docs/navigation/stack/overview.md @@ -76,7 +76,7 @@ class DefaultItemDetailsComponent( } ``` -=== "Before v1.2.0-alpha01" +=== "Before v2.2.0-alpha01" ```kotlin title="Root component" interface RootComponent { @@ -132,7 +132,7 @@ class DefaultItemDetailsComponent( } ``` -=== "Since v1.2.0-alpha01" +=== "Since v2.2.0-alpha01" ```kotlin title="Root component" interface RootComponent {