Skip to content

Commit 5fb0fc0

Browse files
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 <[email protected]>
1 parent 8ca5f8b commit 5fb0fc0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

features/location/api/src/main/kotlin/io/element/android/features/location/api/internal/ModifierCenterBottomEdge.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import androidx.compose.ui.unit.IntOffset
1515
* Horizontally aligns the content to the center of the space.
1616
* Vertically aligns the bottom edge of the content to the center of the space.
1717
*/
18-
fun Modifier.centerBottomEdge(scope: BoxScope): Modifier = with(scope) {
19-
then(
18+
fun Modifier.centerBottomEdge(scope: BoxScope): Modifier = this.then(
19+
with(scope) {
2020
Modifier.align { size, space, _ ->
2121
IntOffset(
2222
x = (space.width - size.width) / 2,
2323
y = space.height / 2 - size.height,
2424
)
2525
}
26-
)
27-
}
26+
}
27+
)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ signing.element.nightly.keyPassword=Secret
4040

4141
# Customise the Lint version to use a more recent version than the one bundled with AGP
4242
# https://googlesamples.github.io/android-custom-lint-rules/usage/newer-lint.md.html
43-
android.experimental.lint.version=8.10.0-alpha08
43+
android.experimental.lint.version=8.11.0-alpha09
4444

4545
# Enable test fixture for all modules by default
4646
android.experimental.enableTestFixtures=true

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[versions]
55
# Project
6-
android_gradle_plugin = "8.9.2"
6+
android_gradle_plugin = "8.10.0"
77
kotlin = "2.1.20"
88
kotlinpoet = "2.1.0"
99
ksp = "2.1.20-2.0.1"

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/modifiers/Clickable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import androidx.compose.ui.Modifier
1414
import androidx.compose.ui.draw.clip
1515
import androidx.compose.ui.unit.dp
1616

17-
fun Modifier.clickableIfNotNull(onClick: (() -> Unit)? = null): Modifier = then(
17+
fun Modifier.clickableIfNotNull(onClick: (() -> Unit)? = null): Modifier = this.then(
1818
if (onClick != null) {
1919
Modifier.clickable { onClick() }
2020
} else {

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/ListItem.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private fun Modifier.withAccessibilityModifier(
177177
content: ListItemContent?,
178178
enabled: Boolean,
179179
onClick: (() -> Unit)?,
180-
): Modifier = then(
180+
): Modifier = this.then(
181181
when (content) {
182182
is ListItemContent.Checkbox -> {
183183
Modifier.toggleable(

0 commit comments

Comments
 (0)