I know that Compose team is planning to address the issue with
@Stable
and
@Immutable
stuck inside the
compose.runtime
artifact, but is there some workaround until then? Especially when I cannot use
.aar
because I'm building a small library which I want to be a
.jar
and so no option of simply adding a dependency on
compose.runtime
...
j
jw
07/30/2022, 6:17 PM
You can depend on the JetBrains runtime as compile only which has a JVM variant
d
dimsuz
07/30/2022, 8:19 PM
Nice! This will do. And when compiling an android compose-based app with this lib in deps, compose compiler will pick up those annotations? (I guess it should, if fqcn is the same)