alexzhirkevich / compose-cupertino

Compose Multiplatform UI components for iOS (Cupertino Widgets)
Apache License 2.0
1.13k stars 41 forks source link

WASM Target break in 1.7.1 #76

Open JagadishaIncture opened 4 days ago

JagadishaIncture commented 4 days ago
Screenshot 2024-11-18 at 7 18 05 PM

Hi ,

Web Target is throwing above error while using AdaptiveWidget

@ExperimentalAdaptiveApi @Composable fun AdaptiveText( text:String, modifier: Modifier = Modifier, style:TextStyle ) { AdaptiveWidget( material = { Text( text=text, modifier=modifier, style=style ) }, cupertino = { CupertinoText( text=text, modifier=modifier, style=style ) } ) }

Config

CMP: 1.7.1 Kotlin:2.0.0 Compose-cuptertiono : 0.1.0-alpha4

schott12521 commented 3 days ago

Probably related to https://github.com/alexzhirkevich/compose-cupertino/issues/55 - CMP 1.7.1 is known to break compose-cupertino 0.1.0-alpha04

If you're willing to dive a bit deeper, we're still working on getting a release of a compatible version out...hopefully soon

JagadishaIncture commented 3 days ago

Suggest me which version of CMP and kotlin is compatable with compose-cupertino 0.1.0-alpha04

schott12521 commented 3 days ago

Suggest me which version of CMP and kotlin is compatable with compose-cupertino 0.1.0-alpha04

I think you could use CMP 1.6.1 and Kotlin 1.9.23

JagadishaIncture commented 3 days ago

CMP 1.6.11 and Kotlin 2.0.0 combination worked. Thanks