Skip to content

Feature modules using components #270

Answered by arkivanov
qwert2603 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello. First of all, the main idea of the dynamic-features sample is to demonstrate how Decompose can be integrated with Android Dynamic Features, where modules are loaded on demand. It is required for feature modules to depend on the app module, which completely the opposite way of how feature modules should be organized. This is the only reason why I split features for APIs and impls. In all other cases personally I don't recommend splitting for API and impls, as in most cases it is an over-engineering.

Regardless of the reasons, I still find the way how it is done in the sample is correct. Consider you want to move the Feature1Content interface to another api module feature1UiApi. In t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@qwert2603
Comment options

@arkivanov
Comment options

Answer selected by qwert2603
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants