mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 21:28:55 +00:00
Fix API break in Konsist 0.15.1
This commit is contained in:
committed by
Benoit Marty
parent
9d53d64117
commit
b994a1ea91
+7
-1
@@ -87,7 +87,13 @@ class KonsistArchitectureTest {
|
|||||||
.withAnnotationOf(Composable::class)
|
.withAnnotationOf(Composable::class)
|
||||||
.assertTrue(additionalMessage = "Consider adding the @Immutable or @Stable annotation to the sealed interface") {
|
.assertTrue(additionalMessage = "Consider adding the @Immutable or @Stable annotation to the sealed interface") {
|
||||||
it.parameters.all { param ->
|
it.parameters.all { param ->
|
||||||
param.type.fullyQualifiedName !in forbiddenInterfacesForComposableParameter
|
val type = param.type.text
|
||||||
|
return@all if (type.startsWith("@") || type.startsWith("(") || type.startsWith("suspend")) {
|
||||||
|
true
|
||||||
|
} else {
|
||||||
|
val fullyQualifiedName = param.type.declaration.packagee?.fullyQualifiedName + "." + type
|
||||||
|
fullyQualifiedName !in forbiddenInterfacesForComposableParameter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user