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

Can't use kodein rememberScreenModel in the common module #56

Closed
dragossusi opened this issue Apr 20, 2022 · 5 comments
Closed

Can't use kodein rememberScreenModel in the common module #56

dragossusi opened this issue Apr 20, 2022 · 5 comments

Comments

@dragossusi
Copy link

Hello, I am trying ot use cafe.adriel.voyager.kodein.rememberScreenModel to create my screen model but it is not available in commonMain.

@adrielcafe
Copy link
Owner

Hi! How are you importing it in build.gradle?

@adrielcafe
Copy link
Owner

adrielcafe commented Apr 24, 2022

This can be related with #48. Please, try the suggested workaround by @DevSrSouza. It's not a library issue.

@dragossusi
Copy link
Author

@adrielcafe it has nothing to do with that issue.
If you go to voyager-kodein/src/ you will see that there is no commonMain folder, the method is implemented twice for both android and JVM, don't know why as everything needed in those methods is available in common as well.

@dragossusi
Copy link
Author

My workaround was to copy paste the implementation myself in my project and place it in commonMain

@adrielcafe
Copy link
Owner

Ah, perfect! Just fixed in 1.0.0-rc01, thanks for your help o/

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

2 participants