Skip to content

Commit

Permalink
Update dependency io.nlopez.compose.rules:ktlint to v0.4.16 (#516)
Browse files Browse the repository at this point in the history
* Update dependency io.nlopez.compose.rules:ktlint to v0.4.16

* Do not use trailing event lambda

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <[email protected]>
  • Loading branch information
renovate[bot] and JakeWharton authored Oct 15, 2024
1 parent b86f879 commit 587de81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-t
kotlinx-binaryCompatibilityValidator = "org.jetbrains.kotlinx:binary-compatibility-validator:0.16.3"

ktlint-core = "com.pinterest.ktlint:ktlint-cli:1.3.1"
ktlint-composeRules = "io.nlopez.compose.rules:ktlint:0.4.12"
ktlint-composeRules = "io.nlopez.compose.rules:ktlint:0.4.16"

maven-publish-plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version = "0.30.0" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MainActivity : ComponentActivity() {
setContent {
RootContainer {
val model by viewModel.models.collectAsState()
PupperPicsScreen(model) { event -> viewModel.take(event) }
PupperPicsScreen(model, onEvent = { event -> viewModel.take(event) })
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import coil.compose.AsyncImage
import coil.compose.AsyncImagePainter

@Composable
fun PupperPicsScreen(model: Model, modifier: Modifier = Modifier, onEvent: (Event) -> Unit) {
fun PupperPicsScreen(model: Model, onEvent: (Event) -> Unit, modifier: Modifier = Modifier) {
Box(
modifier = modifier
.fillMaxSize()
Expand Down

0 comments on commit 587de81

Please sign in to comment.