https://kotlinlang.org logo
#decompose
Title
# decompose
m

Marc

01/27/2023, 10:02 AM
👋 i really enjoyed the droidcon app in which @Arkadii Ivanov explains how to “think in scopes” that get activated or deactivated in response to state. looks close to RIBs from UBER. anyway, there is an example on that talk about twitter screens. do you have a suggestion to split components into packages instead of all in one place and dependent from each other?
a

Arkadii Ivanov

01/27/2023, 10:24 AM
Thanks for the feedback! I guess it depends on the size of the project. Having one module with multiple packages may work just fine. Just handle component dependencies properly, e.g. don't pass parent's things directly to children. For a bigger project it should be better to split it by feature-modules.
m

Marc

01/27/2023, 5:40 PM
do you happen to know any sample of the later?
a

Arkadii Ivanov

01/27/2023, 5:52 PM
m

Marc

01/27/2023, 5:53 PM
thanks!
4 Views