Is it possible to define `@Composable` s in a kotl...
# compose
j
Is it possible to define
@Composable
s in a kotlin multiplatform library-module and (re-)use those in android app-modules of the same project? I get these errors when building the project:
Copy code
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'remember' into
@androidx.compose.runtime.Composable public fun [...]
t
Yes with the new desktop-compose: https://www.jetbrains.com/lp/compose/ In the samples is code that define the UI in the common code and use it in android and desktop: https://github.com/jetbrains/compose-jb
j
Awesome, right on time! Thank you @Timo Drick 👍!