Jan
11/03/2023, 9:44 PMe: kotlin.NotImplementedError: Generation of stubs for class org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl is not supported yet
but on Android it works completely fine. Newest Compose, Kotlin, Gradle and AGP version. Link: https://github.com/jan-tennert/EinkaufszettelMPPablichjenkov
11/03/2023, 9:54 PMJan
11/03/2023, 9:56 PMPablichjenkov
11/03/2023, 9:56 PMJan
11/03/2023, 10:00 PMPablichjenkov
11/03/2023, 10:03 PMJan
11/03/2023, 10:05 PMPablichjenkov
11/03/2023, 10:05 PMJan
11/03/2023, 10:24 PMContent
in this file: https://github.com/jan-tennert/EinkaufszettelNext/blob/master/composeApp/src/commo[…]otlin/io/github/jan/einkaufszettel/ui/screen/auth/AuthScreen.kt
Also fixes the compilation errorPablichjenkov
11/03/2023, 10:33 PMJan
11/03/2023, 10:35 PMPablichjenkov
11/03/2023, 10:36 PMJan
11/03/2023, 10:40 PMComposeAuth.rememberLoginWithGoogle
shouldn't be an extension function?Pablichjenkov
11/03/2023, 10:42 PMJan
11/03/2023, 10:43 PMdefaultLoginBehavior
which itself uses a LaunchedEffectPablichjenkov
11/03/2023, 10:47 PMactual fun ComposeAuth.rememberLoginWithGoogle(onResult: (NativeSignInResult) -> Unit, fallback: suspend () -> Unit): NativeSignInState = defaultLoginBehavior(fallback)
@Composable
actual rememberLoginWithGoogleWrap(onResult: (NativeSignInResult) -> Unit, fallback: suspend () -> Unit) {
rememberLoginWithGoogle(fallback)
}
// commonMain
@Composable
expect rememberLoginWithGoogleWrap(onResult: (NativeSignInResult) -> Unit, fallback: suspend () -> Unit)
Jan
11/03/2023, 10:49 PMrememberLoginWithGoogle
?Pablichjenkov
11/03/2023, 10:49 PMJan
11/03/2023, 10:50 PMrememberLoginWithGoogle
or just the JS actual one?Pablichjenkov
11/03/2023, 10:51 PMJan
11/03/2023, 10:51 PMPablichjenkov
11/03/2023, 10:56 PMdefaultLoginBehavior
directlyJan
11/03/2023, 11:03 PMPablichjenkov
11/03/2023, 11:03 PMJan
11/03/2023, 11:04 PMPablichjenkov
11/03/2023, 11:05 PMJan
11/03/2023, 11:12 PMPablichjenkov
11/03/2023, 11:25 PMval TopBarComponentView: @Composable TopBarComponent<TopBarComponentViewModel>.(
modifier: Modifier,
activeChildComponent: Component
) -> Unit = { modifier, activeChildComponent -> ... }
That works for me an is basically a lambda extension function. Maybe a lambda works for you
The only thing I don't see is the expect/actual symbol. Hopefully has nothing to do with itJan
11/04/2023, 12:29 PMPablichjenkov
11/04/2023, 7:50 PM