fix(deps): update android.gradle.plugin to v8.10.0 (#4687)
* fix(deps): update android.gradle.plugin to v8.10.0 * Update lint version to 8.11.0-alpha09 * Fix lint false positive. Error: Modifier factory functions must use the receiver Modifier instance [ModifierFactoryUnreferencedReceiver from androidx.compose.ui] --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
@@ -15,13 +15,13 @@ import androidx.compose.ui.unit.IntOffset
|
||||
* Horizontally aligns the content to the center of the space.
|
||||
* Vertically aligns the bottom edge of the content to the center of the space.
|
||||
*/
|
||||
fun Modifier.centerBottomEdge(scope: BoxScope): Modifier = with(scope) {
|
||||
then(
|
||||
fun Modifier.centerBottomEdge(scope: BoxScope): Modifier = this.then(
|
||||
with(scope) {
|
||||
Modifier.align { size, space, _ ->
|
||||
IntOffset(
|
||||
x = (space.width - size.width) / 2,
|
||||
y = space.height / 2 - size.height,
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@@ -40,7 +40,7 @@ signing.element.nightly.keyPassword=Secret
|
||||
|
||||
# Customise the Lint version to use a more recent version than the one bundled with AGP
|
||||
# https://googlesamples.github.io/android-custom-lint-rules/usage/newer-lint.md.html
|
||||
android.experimental.lint.version=8.10.0-alpha08
|
||||
android.experimental.lint.version=8.11.0-alpha09
|
||||
|
||||
# Enable test fixture for all modules by default
|
||||
android.experimental.enableTestFixtures=true
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
[versions]
|
||||
# Project
|
||||
android_gradle_plugin = "8.9.2"
|
||||
android_gradle_plugin = "8.10.0"
|
||||
kotlin = "2.1.20"
|
||||
kotlinpoet = "2.1.0"
|
||||
ksp = "2.1.20-2.0.1"
|
||||
|
||||
@@ -14,7 +14,7 @@ import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.unit.dp
|
||||
|
||||
fun Modifier.clickableIfNotNull(onClick: (() -> Unit)? = null): Modifier = then(
|
||||
fun Modifier.clickableIfNotNull(onClick: (() -> Unit)? = null): Modifier = this.then(
|
||||
if (onClick != null) {
|
||||
Modifier.clickable { onClick() }
|
||||
} else {
|
||||
|
||||
@@ -177,7 +177,7 @@ private fun Modifier.withAccessibilityModifier(
|
||||
content: ListItemContent?,
|
||||
enabled: Boolean,
|
||||
onClick: (() -> Unit)?,
|
||||
): Modifier = then(
|
||||
): Modifier = this.then(
|
||||
when (content) {
|
||||
is ListItemContent.Checkbox -> {
|
||||
Modifier.toggleable(
|
||||
|
||||
Reference in New Issue
Block a user