Skip to content

Commit

Permalink
Fixed version typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arkivanov committed Sep 24, 2023
1 parent 8988b84 commit d463103
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/component/state-preservation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions docs/navigation/pages/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -92,7 +92,7 @@ class DefaultPageComponent(
}
```

=== "Since v1.2.0-alpha01"
=== "Since v2.2.0-alpha01"

```kotlin title="PagesComponent"
interface PagesComponent {
Expand Down
4 changes: 2 additions & 2 deletions docs/navigation/slot/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DefaultDialogComponent(
}
```

=== "Before v1.2.0-alpha01"
=== "Before v2.2.0-alpha01"

```kotlin title="Root component"
interface RootComponent {
Expand Down Expand Up @@ -83,7 +83,7 @@ class DefaultDialogComponent(
}
```

=== "Since v1.2.0-alpha01"
=== "Since v2.2.0-alpha01"

```kotlin title="Root component"
interface RootComponent {
Expand Down
4 changes: 2 additions & 2 deletions docs/navigation/stack/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class DefaultItemDetailsComponent(
}
```

=== "Before v1.2.0-alpha01"
=== "Before v2.2.0-alpha01"

```kotlin title="Root component"
interface RootComponent {
Expand Down Expand Up @@ -132,7 +132,7 @@ class DefaultItemDetailsComponent(
}
```

=== "Since v1.2.0-alpha01"
=== "Since v2.2.0-alpha01"

```kotlin title="Root component"
interface RootComponent {
Expand Down

0 comments on commit d463103

Please sign in to comment.