Skip to content
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ allprojects {
project build.gradle
```groovy
dependencies {
commonMainApi("dev.icerock.moko:fields-core:0.12.0")
commonMainApi("dev.icerock.moko:fields-core:0.13.0")

// integration with reactive flows
commonMainApi("dev.icerock.moko:fields-livedata:0.12.0")
commonMainApi("dev.icerock.moko:fields-flow:0.12.0")
commonMainApi("dev.icerock.moko:fields-livedata:0.13.0")
commonMainApi("dev.icerock.moko:fields-flow:0.13.0")

androidMainApi("dev.icerock.moko:fields-material:0.12.0")
androidMainApi("dev.icerock.moko:fields-material:0.13.0")
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

package dev.icerock.moko.fields.core

fun List<FormField<*, *>>.validate(): Boolean =
all { it.validate() }
fun List<FormField<*, *>>.validate(): Boolean {
return map { it.validate() }.all { true }
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ coroutinesVersion = "1.6.4"
mokoResourcesVersion = "0.21.2"
mokoMvvmVersion = "0.16.0"
mokoTestVersion = "0.6.1"
mokoFieldsVersion = "0.12.0"
mokoFieldsVersion = "0.13.0"

[libraries]
# android
Expand Down
Loading