diff --git a/CHANGELOG.md b/CHANGELOG.md index a11985f9..e8a1cae5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Change Log -## [0.4.0] - Apr 6, 2023 +## [Unreleased] + +## [0.4.0] - Apr 7, 2023 ### Changed @@ -45,10 +47,10 @@ init(viewModel: SharedViewModel) { vm = viewModel - state = vm.stateFlow.value // <--- Use `value` getter with type safety (do not need to cast). + state = vm.stateFlow.value // <--- Use `value` property with type safety (do not need to cast). vm.stateFlow.subscribe( // <--- Use `subscribe(scope:onValue:)` method directly. scope: vm.viewModelScope, - onValue: { [weak self] v in self?.state = v } + onValue: { [weak self] in self?.state = $0 } ) } diff --git a/docs/viewmodel-savedstate.md b/docs/viewmodel-savedstate.md index 78a95a0e..913e2d6c 100644 --- a/docs/viewmodel-savedstate.md +++ b/docs/viewmodel-savedstate.md @@ -37,7 +37,7 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - api("io.github.hoc081098:kmp-viewmodel-savedstate:0.3.0") + api("io.github.hoc081098:kmp-viewmodel-savedstate:0.4.0") } } } @@ -53,7 +53,7 @@ kotlin { [...] framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel-savedstate:0.3.0") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel-savedstate:0.4.0") // required to expose the classes to iOS. } } } @@ -66,7 +66,7 @@ kotlin { binaries { framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel-savedstate:0.3.0") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel-savedstate:0.4.0") // required to expose the classes to iOS. } } } @@ -99,7 +99,7 @@ dependencyResolutionManagement { // build.gradle.kts dependencies { - api("io.github.hoc081098:kmp-viewmodel-savedstate:0.3.1-SNAPSHOT") + api("io.github.hoc081098:kmp-viewmodel-savedstate:0.4.1-SNAPSHOT") } ``` diff --git a/docs/viewmodel.md b/docs/viewmodel.md index 83d0df62..312ffe8a 100644 --- a/docs/viewmodel.md +++ b/docs/viewmodel.md @@ -23,7 +23,7 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - api("io.github.hoc081098:kmp-viewmodel:0.3.0") + api("io.github.hoc081098:kmp-viewmodel:0.4.0") } } } @@ -39,7 +39,7 @@ kotlin { [...] framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel:0.3.0") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel:0.4.0") // required to expose the classes to iOS. } } } @@ -52,7 +52,7 @@ kotlin { binaries { framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel:0.3.0") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel:0.4.0") // required to expose the classes to iOS. } } } @@ -75,7 +75,7 @@ dependencyResolutionManagement { // build.gradle.kts dependencies { - api("io.github.hoc081098:kmp-viewmodel:0.3.1-SNAPSHOT") + api("io.github.hoc081098:kmp-viewmodel:0.4.1-SNAPSHOT") } ``` diff --git a/gradle.properties b/gradle.properties index 71feea3b..0856da29 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ kotlin.incremental=true # POM GROUP=io.github.hoc081098 # HEY! If you change the major version here be sure to update publish-release.yaml doc target folder! -VERSION_NAME=0.3.1-SNAPSHOT +VERSION_NAME=0.4.0 POM_INCEPTION_YEAR=2023 POM_URL=https://github.com/hoc081098/kmp-viewmodel