From 43ec4aabe4e7d6200637f75cae9bcf5d184e077a Mon Sep 17 00:00:00 2001 From: hoc081098 Date: Sat, 17 Feb 2024 13:32:50 +0700 Subject: [PATCH] chore(publish): prepare for v0.7.0 --- CHANGELOG.md | 27 ++++++++++++++++----------- docs/viewmodel-compose.md | 4 ++-- docs/viewmodel-koin-compose.md | 4 ++-- docs/viewmodel-savedstate.md | 8 ++++---- docs/viewmodel.md | 8 ++++---- gradle.properties | 2 +- 6 files changed, 29 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8475c8e..76952b05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,42 +2,45 @@ ## [Unreleased] - TBD +## [0.7.0] - Feb 17, 2024 + ### Update dependencies -- [AndroidX Lifecycle `2.7.0`](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.7.0). -- Android target: update `Compile SDK` and `Target SDK` to `34`. -- [KotlinX Coroutines `1.8.0`](https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.8.0). +- [AndroidX Lifecycle `2.7.0`](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.7.0). +- Android target: update `Compile SDK` and `Target SDK` to `34`. +- [KotlinX Coroutines `1.8.0`](https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.8.0). ### `kmp-viewmodel` and `kmp-viewmodel-savedstate` -- **New**: Add support for Kotlin/Wasm (`wasmJs` target) 🎉. +- **New**: Add support for Kotlin/Wasm (`wasmJs` target) 🎉. - The behavior of `ViewModel.addCloseable(Closeable)` on _non-Android targets_ has been changed to be consistent with _Android target_. `ViewModel`'s `addCloseable()` now **immediately closes** the `Closeable` if the `ViewModel` has been cleared. - **This behavior is the same across all targets ✅**. + **This behavior is the same across all targets ✅**. ### `kmp-viewmodel-koin` - **Fixed**: `koinViewModelFactory`: `CreationExtras` passed to `ViewModelFactory.create` will now be - passed to the constructor of the ViewModel if it's requested. + passed to the constructor of the ViewModel if it's requested. ```kotlin class MyViewModel(val extras: CreationExtras) : ViewModel() val myModule: Module = module { factoryOf(::MyViewModel) } - + val factory = koinViewModelFactory( scope = KoinPlatformTools.defaultContext().get().scopeRegistry.rootScope, ) val extras = buildCreationExtras { /* ... */ } - + val viewModel: MyViewModel = factory.create(extras) - viewModel.extras === extras // true <--- `extras` is the same as `extras` passed to `factory.create(extras)` + viewModel.extras === extras // true <--- `viewModel.extras` is the same as `extras` passed to `factory.create(extras)` ``` ### Example, docs and tests -- Add more tests to `kmp-viewmodel-compose` (android & jvm), `kmp-viewmodel-koin` (common), and `kmp-viewmodel-koin-compose` (common & jvm). +- Add more tests to `kmp-viewmodel-compose` (android & jvm), `kmp-viewmodel-koin` (common), + and `kmp-viewmodel-koin-compose` (common & jvm). ## [0.6.2] - Feb 5, 2024 @@ -393,7 +396,9 @@ Share everything including data, domain, presentation, and UI. - Initial release. -[Unreleased]: https://github.com/hoc081098/kmp-viewmodel/compare/0.6.2...HEAD +[Unreleased]: https://github.com/hoc081098/kmp-viewmodel/compare/0.7.0...HEAD + +[0.7.0]: https://github.com/hoc081098/kmp-viewmodel/releases/tag/0.7.0 [0.6.2]: https://github.com/hoc081098/kmp-viewmodel/releases/tag/0.6.2 diff --git a/docs/viewmodel-compose.md b/docs/viewmodel-compose.md index d475e0fb..1ec7f7bd 100644 --- a/docs/viewmodel-compose.md +++ b/docs/viewmodel-compose.md @@ -25,7 +25,7 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - api("io.github.hoc081098:kmp-viewmodel-compose:0.6.2") + api("io.github.hoc081098:kmp-viewmodel-compose:0.7.0") } } } @@ -48,7 +48,7 @@ dependencyResolutionManagement { // build.gradle.kts dependencies { - api("io.github.hoc081098:kmp-viewmodel-compose:0.6.3-SNAPSHOT") + api("io.github.hoc081098:kmp-viewmodel-compose:0.7.1-SNAPSHOT") } ``` diff --git a/docs/viewmodel-koin-compose.md b/docs/viewmodel-koin-compose.md index cc20313e..d9ea8c33 100644 --- a/docs/viewmodel-koin-compose.md +++ b/docs/viewmodel-koin-compose.md @@ -34,7 +34,7 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - implementation("io.github.hoc081098:kmp-viewmodel-koin-compose:0.6.2") + implementation("io.github.hoc081098:kmp-viewmodel-koin-compose:0.7.0") // NOTE: You can add `koin-core` dependency to your project to specify the version of Koin. // For more information check out the [Koin KMP documentation](https://insert-koin.io/docs/reference/koin-mp/kmp#gradle-dependencies). @@ -61,7 +61,7 @@ dependencyResolutionManagement { // build.gradle.kts dependencies { - api("io.github.hoc081098:kmp-viewmodel-koin-compose:0.6.3-SNAPSHOT") + api("io.github.hoc081098:kmp-viewmodel-koin-compose:0.7.1-SNAPSHOT") } ``` diff --git a/docs/viewmodel-savedstate.md b/docs/viewmodel-savedstate.md index bbf68fbb..b0af8f40 100644 --- a/docs/viewmodel-savedstate.md +++ b/docs/viewmodel-savedstate.md @@ -39,7 +39,7 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - api("io.github.hoc081098:kmp-viewmodel-savedstate:0.6.2") + api("io.github.hoc081098:kmp-viewmodel-savedstate:0.7.0") } } } @@ -55,7 +55,7 @@ kotlin { [...] framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel-savedstate:0.6.2") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel-savedstate:0.7.0") // required to expose the classes to iOS. } } } @@ -68,7 +68,7 @@ kotlin { binaries { framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel-savedstate:0.6.2") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel-savedstate:0.7.0") // required to expose the classes to iOS. } } } @@ -101,7 +101,7 @@ dependencyResolutionManagement { // build.gradle.kts dependencies { - api("io.github.hoc081098:kmp-viewmodel-savedstate:0.6.3-SNAPSHOT") + api("io.github.hoc081098:kmp-viewmodel-savedstate:0.7.1-SNAPSHOT") } ``` diff --git a/docs/viewmodel.md b/docs/viewmodel.md index 638cf18c..5982f01a 100644 --- a/docs/viewmodel.md +++ b/docs/viewmodel.md @@ -25,7 +25,7 @@ kotlin { sourceSets { val commonMain by getting { dependencies { - api("io.github.hoc081098:kmp-viewmodel:0.6.2") + api("io.github.hoc081098:kmp-viewmodel:0.7.0") } } } @@ -41,7 +41,7 @@ kotlin { [...] framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel:0.6.2") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel:0.7.0") // required to expose the classes to iOS. } } } @@ -54,7 +54,7 @@ kotlin { binaries { framework { baseName = "shared" - export("io.github.hoc081098:kmp-viewmodel:0.6.2") // required to expose the classes to iOS. + export("io.github.hoc081098:kmp-viewmodel:0.7.0") // required to expose the classes to iOS. } } } @@ -77,7 +77,7 @@ dependencyResolutionManagement { // build.gradle.kts dependencies { - api("io.github.hoc081098:kmp-viewmodel:0.6.3-SNAPSHOT") + api("io.github.hoc081098:kmp-viewmodel:0.7.1-SNAPSHOT") } ``` diff --git a/gradle.properties b/gradle.properties index 4017bfcd..242311d0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -25,7 +25,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.6.3-SNAPSHOT +VERSION_NAME=0.7.0 POM_INCEPTION_YEAR=2023 POM_URL=https://github.com/hoc081098/kmp-viewmodel