I want to develop application by using MVVM architecture, so i want to know whether i can use only viewbinding concept as databinding takes longer compilation time.
Can we achieve MVVM architecture without using databinding and by using only viewbinding concept?
Related
According to my research, viper architecture is mostly used on the iOS side, but is it used with jetpack compose on the android side? What's the difference with most common architecture mvvm in android ? If it is more advantageous than mvvm, what advantage does it have? because it doesn't seem like there are many users on the android side
I'm new to KMM (Kotlin Multiplatform Mobile). I need to use MVVM in this project and I just need to use jetpack for ViewModels. So, how can I organize MVVM architecture in the KMM project?
You can create an expect/actual declaration for your viewmodels, where you can use the architectural ViewModels in your Android actual declarations.
This example does the exact same thing.
The expect/actual documentation you can find here
I am trying to create MVVM architecture in flutter native platform code. so that i can use viewmodel and livedata in either FLutter android plugins or android platform side.
Can anyone give a correct solution for this implementation?
Stacked package in flutter is nearby the MVVM architecture,
But in MVVM, ViewModel can be shared with more than one View but in Stacked state management, we View and ViewModel intact to each other
Here is the Stacked package.
https://pub.dev/packages/stacked
I have a question in Android about architecture.
When using MVVM pattern in Android, do I have to use Databinding??
Have used MVP model in one module of my android app with the help of which code was testable and I was able to run Unit test via that code.
Now I researched for MVVM model, my main focus is to make my code testable, can MVVM model could help me better than MVP model??
The unit testing for the MVP or MVVM are easy to implement with the help of Mockito.
But the only difference is MVVM architecture is bit more complex then MVP.If you are comfortable with subscribers,dependencies injections etc then go for MVVM otherwise till now MVP is the best.
You can check this link or this for more details.