Fixed
Status Update
Comments
ra...@google.com <ra...@google.com>
je...@google.com <je...@google.com>
je...@google.com <je...@google.com>
an...@google.com <an...@google.com> #3
Thank you for the report with a reproduction. I can confirm it's reproduced:
src/main/java/com/example/slacklintinvestigation/MainActivity.kt:41: Error: androidx.compose.runtime.EffectsKt.LaunchedEffect is deprecated; consider using an alternative. [DeprecatedCall from slack-lint]
LaunchedEffect(key1 = "some") {
^
Explanation for issues of type "DeprecatedCall":
Using deprecated classes is not advised; please consider using an
alternative.
Vendor: slack
Identifier: slack-lint
Contact: https://github.com/slackhq/slack-lints
Feedback: https://github.com/slackhq/slack-lints
It's supposed to be:
@Composable
fun LaunchedEffect(
key1: Any?,
block: suspend CoroutineScope.() -> Unit
) { ... }
but resolved to:
@Deprecated(LaunchedEffectNoParamError, level = DeprecationLevel.ERROR)
@Composable
fun LaunchedEffect(
block: suspend CoroutineScope.() -> Unit
): Unit = error(LaunchedEffectNoParamError)
So... seems like the same root cause as
Description
targetSdk
, in androidx we would find it helpful to also haveminSdk
as that would allow us to stop readingbaseExtension.defaultConfig.minSdk