Can the library be used in a pure Android project? #72
-
I would like to know if FlowMVI can be used in a pure Android project. If so, what dependencies are required, and which ones can be skipped? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, the process is not different at all. You just need to use the core dependency as usual and choose from one of the two depending on your UI framework:
For specifics on how to set up the library with Android, you can take a look at https://opensource.respawn.pro/FlowMVI/#/android You can use each module the library provides as you see fit, all of them support android, and some of them offer extra functionality. For example, you can save the state of the store using |
Beta Was this translation helpful? Give feedback.
Yes, the process is not different at all. You just need to use the core dependency as usual and choose from one of the two depending on your UI framework:
pro.respawn.flowmvi:android
for XMLpro.respawn.flowmvi.compose
for ComposeFor specifics on how to set up the library with Android, you can take a look at https://opensource.respawn.pro/FlowMVI/#/android
You can use each module the library provides as you see fit, all of them support android, and some of them offer extra functionality. For example, you can save the state of the store using
parcelizeState
or use the lifecycle dsl to subscribe based on activity/fragment lifecycle