Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM Target break in 1.7.1 #76

Open
JagadishaIncture opened this issue Nov 18, 2024 · 7 comments
Open

WASM Target break in 1.7.1 #76

JagadishaIncture opened this issue Nov 18, 2024 · 7 comments

Comments

@JagadishaIncture
Copy link

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
Copy link
Contributor

Probably related to #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
Copy link
Author

JagadishaIncture commented Nov 19, 2024

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

@schott12521
Copy link
Contributor

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
Copy link
Author

CMP 1.6.11 and Kotlin 2.0.0 combination worked. Thanks

@schott12521
Copy link
Contributor

@JagadishaIncture if you'd like to, you can try out my release of this library on my GitHub. It should work with CMP 1.7.1

https://github.com/schott12521/compose-cupertino

@StefanOltmann
Copy link

@schott12521 Your fork is unfortunately not available on Maven Central yet and GitHub packages requires a login.

@alexzhirkevich Can you publish a new release now that we have fixes for the new Compose version?

@schott12521
Copy link
Contributor

@schott12521 Your fork is unfortunately not available on Maven Central yet and GitHub packages requires a login.

Correct, sorry about that, I've never needed to publish to maven directly! I'll get this done in the new year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants