Skip to content

Commit 4ab6dee

Browse files
authored
Merge pull request #219 from icerockdev/develop
Release 0.15.0
2 parents 1e9d4bc + 05eff95 commit 4ab6dee

File tree

24 files changed

+275
-40
lines changed

24 files changed

+275
-40
lines changed

.github/workflows/compilation-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ macos-latest, windows-latest, ubuntu-latest ]
14+
os: [ macos-11, windows-latest, ubuntu-latest ]
1515
steps:
1616
- uses: actions/checkout@v1
1717
- name: Set up JDK 11

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ macos-latest, windows-latest, ubuntu-latest ]
17+
os: [ macos-11, windows-latest, ubuntu-latest ]
1818
env:
1919
OSSRH_USER: ${{ secrets.OSSRH_USER }}
2020
OSSRH_KEY: ${{ secrets.OSSRH_KEY }}

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ allprojects {
5050
project build.gradle
5151
```groovy
5252
dependencies {
53-
commonMainApi("dev.icerock.moko:mvvm-core:0.14.0") // only ViewModel, EventsDispatcher, Dispatchers.UI
54-
commonMainApi("dev.icerock.moko:mvvm-flow:0.14.0") // api mvvm-core, CFlow for native and binding extensions
55-
commonMainApi("dev.icerock.moko:mvvm-livedata:0.14.0") // api mvvm-core, LiveData and extensions
56-
commonMainApi("dev.icerock.moko:mvvm-state:0.14.0") // api mvvm-livedata, ResourceState class and extensions
57-
commonMainApi("dev.icerock.moko:mvvm-livedata-resources:0.14.0") // api mvvm-core, moko-resources, extensions for LiveData with moko-resources
58-
commonMainApi("dev.icerock.moko:mvvm-flow-resources:0.14.0") // api mvvm-core, moko-resources, extensions for Flow with moko-resources
53+
commonMainApi("dev.icerock.moko:mvvm-core:0.15.0") // only ViewModel, EventsDispatcher, Dispatchers.UI
54+
commonMainApi("dev.icerock.moko:mvvm-flow:0.15.0") // api mvvm-core, CFlow for native and binding extensions
55+
commonMainApi("dev.icerock.moko:mvvm-livedata:0.15.0") // api mvvm-core, LiveData and extensions
56+
commonMainApi("dev.icerock.moko:mvvm-state:0.15.0") // api mvvm-livedata, ResourceState class and extensions
57+
commonMainApi("dev.icerock.moko:mvvm-livedata-resources:0.15.0") // api mvvm-core, moko-resources, extensions for LiveData with moko-resources
58+
commonMainApi("dev.icerock.moko:mvvm-flow-resources:0.15.0") // api mvvm-core, moko-resources, extensions for Flow with moko-resources
5959
60-
androidMainApi("dev.icerock.moko:mvvm-flow-compose:0.14.0") // api mvvm-flow, binding extensions for Jetpack Compose (jvm, js, android)
61-
androidMainApi("dev.icerock.moko:mvvm-livedata-compose:0.14.0") // api mvvm-livedata, binding extensions for Jetpack Compose (jvm, js, android)
62-
androidMainApi("dev.icerock.moko:mvvm-livedata-material:0.14.0") // api mvvm-livedata, Material library android extensions
63-
androidMainApi("dev.icerock.moko:mvvm-livedata-glide:0.14.0") // api mvvm-livedata, Glide library android extensions
64-
androidMainApi("dev.icerock.moko:mvvm-livedata-swiperefresh:0.14.0") // api mvvm-livedata, SwipeRefreshLayout library android extensions
65-
androidMainApi("dev.icerock.moko:mvvm-databinding:0.14.0") // api mvvm-livedata, DataBinding support for Android
66-
androidMainApi("dev.icerock.moko:mvvm-viewbinding:0.14.0") // api mvvm-livedata, ViewBinding support for Android
60+
androidMainApi("dev.icerock.moko:mvvm-flow-compose:0.15.0") // api mvvm-flow, binding extensions for Jetpack Compose (jvm, js, android)
61+
androidMainApi("dev.icerock.moko:mvvm-livedata-compose:0.15.0") // api mvvm-livedata, binding extensions for Jetpack Compose (jvm, js, android)
62+
androidMainApi("dev.icerock.moko:mvvm-livedata-material:0.15.0") // api mvvm-livedata, Material library android extensions
63+
androidMainApi("dev.icerock.moko:mvvm-livedata-glide:0.15.0") // api mvvm-livedata, Glide library android extensions
64+
androidMainApi("dev.icerock.moko:mvvm-livedata-swiperefresh:0.15.0") // api mvvm-livedata, SwipeRefreshLayout library android extensions
65+
androidMainApi("dev.icerock.moko:mvvm-databinding:0.15.0") // api mvvm-livedata, DataBinding support for Android
66+
androidMainApi("dev.icerock.moko:mvvm-viewbinding:0.15.0") // api mvvm-livedata, ViewBinding support for Android
6767
68-
commonTestImplementation("dev.icerock.moko:mvvm-test:0.14.0") // test utilities
68+
commonTestImplementation("dev.icerock.moko:mvvm-test:0.15.0") // test utilities
6969
}
7070
```
7171

@@ -75,10 +75,10 @@ kotlin {
7575
// export correct artifact to use all classes of library directly from Swift
7676
targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget::class.java).all {
7777
binaries.withType(org.jetbrains.kotlin.gradle.plugin.mpp.Framework::class.java).all {
78-
export("dev.icerock.moko:mvvm-core:0.14.0")
79-
export("dev.icerock.moko:mvvm-livedata:0.14.0")
80-
export("dev.icerock.moko:mvvm-livedata-resources:0.14.0")
81-
export("dev.icerock.moko:mvvm-state:0.14.0")
78+
export("dev.icerock.moko:mvvm-core:0.15.0")
79+
export("dev.icerock.moko:mvvm-livedata:0.15.0")
80+
export("dev.icerock.moko:mvvm-livedata-resources:0.15.0")
81+
export("dev.icerock.moko:mvvm-state:0.15.0")
8282
}
8383
}
8484
}
@@ -94,7 +94,7 @@ generation enabled. All `LiveData` to `UIView` bindings is extensions for UI ele
9494
To use MOKO MVVM with SwiftUI set name of your kotlin framework to `MultiPlatformLibrary` and add
9595
dependency to CocoaPods:
9696
```ruby
97-
pod 'mokoMvvmFlowSwiftUI', :podspec => 'https://raw.githubusercontent.com/icerockdev/moko-mvvm/release/0.14.0/mokoMvvmFlowSwiftUI.podspec'
97+
pod 'mokoMvvmFlowSwiftUI', :podspec => 'https://raw.githubusercontent.com/icerockdev/moko-mvvm/release/0.15.0/mokoMvvmFlowSwiftUI.podspec'
9898
```
9999
required export of `mvvm-core` and `mvvm-flow`.
100100

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ androidLifecycleVersion = "2.2.0"
44
coroutinesVersion = "1.6.0-native-mt"
55
mokoResourcesVersion = "0.18.0"
66
mokoTestVersion = "0.6.1"
7-
mokoMvvmVersion = "0.14.0"
7+
mokoMvvmVersion = "0.15.0"
88
mokoKSwiftVersion = "0.4.0"
99
composeVersion = "1.1.1"
1010
composeJetBrainsVersion = "1.1.1"
@@ -41,7 +41,7 @@ androidCoreTesting = { module = "androidx.arch.core:core-testing", version = "2.
4141
dokkaGradlePlugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "kotlinVersion" }
4242
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinVersion" }
4343
mobileMultiplatformGradlePlugin = { module = "dev.icerock:mobile-multiplatform", version = "0.13.0" }
44-
androidGradlePlugin = { module = "com.android.tools.build:gradle", version = "7.0.4" }
44+
androidGradlePlugin = { module = "com.android.tools.build:gradle", version = "7.2.2" }
4545
detektGradlePlugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version = "1.19.0" }
4646
kswiftGradlePlugin = { module = "dev.icerock.moko:kswift-gradle-plugin", version.ref = "mokoKSwiftVersion" }
4747
composeJetBrainsGradlePlugin = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "composeJetBrainsVersion" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

mokoMvvmFlowSwiftUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'mokoMvvmFlowSwiftUI'
3-
s.version = '0.13.0'
3+
s.version = '0.15.0'
44
s.summary = 'MOKO MVVM SwiftUI additions for Flow'
55
s.description = 'some description here'
66
s.homepage = 'localhost'

mvvm-build-logic/src/main/kotlin/android-base-convention.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import com.android.build.gradle.BaseExtension
66

77
configure<BaseExtension> {
8-
compileSdkVersion(30)
8+
compileSdkVersion(33)
99

1010
defaultConfig {
11-
minSdkVersion(16)
12-
targetSdkVersion(30)
11+
minSdk = 16
12+
targetSdk = 33
1313
}
1414
}

mvvm-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ dependencies {
1313

1414
commonMainApi(libs.coroutines)
1515

16-
androidMainApi(libs.appCompat)
16+
androidMainApi(libs.lifecycleKtx)
1717
androidMainApi(libs.androidViewModel)
1818
}

mvvm-core/src/androidMain/kotlin/dev/icerock/moko/mvvm/viewmodel/ViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import kotlinx.coroutines.cancel
1111

1212
@Suppress("EmptyDefaultConstructor")
1313
actual open class ViewModel actual constructor() : ViewModel() {
14-
protected actual val viewModelScope: CoroutineScope = createViewModelScope()
14+
actual val viewModelScope: CoroutineScope = createViewModelScope()
1515

1616
public actual override fun onCleared() {
1717
super.onCleared()

mvvm-core/src/commonMain/kotlin/dev/icerock/moko/mvvm/viewmodel/ViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import kotlinx.coroutines.CoroutineScope
88

99
@Suppress("EmptyDefaultConstructor")
1010
expect open class ViewModel() {
11-
protected val viewModelScope: CoroutineScope
11+
val viewModelScope: CoroutineScope
1212

1313
open fun onCleared()
1414
}

0 commit comments

Comments
 (0)