Hilt Decompose Plugin #191
Replies: 3 comments 6 replies
-
Hello. Could you explain in more detail what specific problems you are trying to solve by DI frameworks? Maybe you could provide some examples of issues? But regardless, thanks for sharing the info! Feel free to create whatever is useful for you, and ask any questions about Decompose here. Useful tools could be linked in the documentation website. |
Beta Was this translation helpful? Give feedback.
-
I analyzed and worked in the last few months with Decompose's project structure (with Compose) as well as with DI libraries. My experience with DI libraries was that testing was made significantly harder, but in Decompose's structure everything can be tested individually or in combinations with ease. In Decompose there is no magic and once you understand the structure and role of every class / interface (there is a steep learning curve), you will very likely enjoy using it without DIs. I was also thinking about creating a library for simplifying the generation of those "class collections" as module generation or something like that, but aside from various IDE plugins I could think of and of which I am not capable implementing on my own, there was no way I could simplify further the structure without overcomplicating and hiding things (casting unwanted magic). Therefore, DI libraries like Hilt, Dagger or Koin with Decompose would not add to the code quality in my opinion. And one of the reasons for Decompose is to not have to use DIs at all.
EDIT: But I like the willingness of developing libraries for Decompose. I would definitely try them. 🛩️ |
Beta Was this translation helpful? Give feedback.
-
Hi arkivanov, your library(Decompose) doesn't support SavedStateHandler, isn't it? |
Beta Was this translation helpful? Give feedback.
-
Hi, i am doing my compose-android native project, and for DI i wanted to use Hilt, but it was very difficult, and in my opinion it is impossible, so i started to create a plugin for arkivanov/Decompose, it will work as ViewModel, and i am started, i learned basic of annotation.process and more, and start to copy with original project(hilt library), at there it has a ViewModel.Provider and Factory, so i hope do to this step by step for Decompose, what is your mean? Could i do this? Have you any idea or method to do this?
Beta Was this translation helpful? Give feedback.
All reactions