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

viewmodel expect/actual #238

Merged
merged 5 commits into from
Apr 4, 2022
Merged

viewmodel expect/actual #238

merged 5 commits into from
Apr 4, 2022

Conversation

russhwolf
Copy link
Contributor

This is an alternate take on #231 that uses an expect/actual base class in order to avoid one layer of wrapper class on the Android side. This feels nicer in a greenfield context, but has less flexibility to deal with certain scenarios that can come up when migrating a pre-existing app to KMP, such as differences in what functionality is supported per platform, and usage of Android-specific APIs like LiveData.

@kpgalligan
Copy link
Contributor

This PR is the merge of concepts from the various other view model PR's. Adding links here for reference.

#206
#217
#218
#231

@samhill303
Copy link
Contributor

You should update https://github.com/touchlab/KaMPKit/blob/main/docs/GENERAL_ARCHITECTURE.md with the new structure. Explaining the different layers of viewmodel on native side would be helpful

@russhwolf
Copy link
Contributor Author

re readme updates, I think that'll come as part of the separate docs update pass we've been talking about

@russhwolf russhwolf merged commit d636def into main Apr 4, 2022
@russhwolf russhwolf deleted the rw/viewmodel-expect-actual branch April 4, 2022 20:14
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

Successfully merging this pull request may close these issues.

3 participants