Skip to content

Commit

Permalink
chore(publish): prepare for version 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Apr 7, 2023
1 parent be039c7 commit e88cf5a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Change Log

## [0.4.0] - Apr 6, 2023
## [Unreleased]

## [0.4.0] - Apr 7, 2023

### Changed

Expand Down Expand Up @@ -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 }
)
}

Expand Down
8 changes: 4 additions & 4 deletions docs/viewmodel-savedstate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand All @@ -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.
}
}
}
Expand All @@ -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.
}
}
}
Expand Down Expand Up @@ -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")
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/viewmodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand All @@ -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.
}
}
}
Expand All @@ -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.
}
}
}
Expand All @@ -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")
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e88cf5a

Please sign in to comment.