Lilly
07/28/2022, 8:52 AMwbertan
07/28/2022, 8:54 AMall-common
, which "aggregates" all shared and common modules, so Android only depends on this one to get all shared modules.Lilly
07/28/2022, 8:55 AMwbertan
07/28/2022, 9:01 AMmodule
, then on the all-common
we expose a method initKoin
, which Android/iOS then calls to configure and initialise Koin itself.
On this initKoin
we have the list of all shared modules there, which they are loaded in Koin.
Basically to add a new module in DI:
• Create the module itself and create the Koin module
for the module;
• Add as dependency to all-common
;
• Go inside the initKoin
and add the Koin module in the list;
• "Done"; (At least the DI part is done)Lilly
07/28/2022, 9:02 AMwbertan
07/28/2022, 9:04 AMpackForXcode
and we finally remove the Dagger/Hilt), but in essence can see our structure and "architecture" for DI.
In that session Umbrella modules
and in the other Interop Koin and Dagger/Hilt
to get roughly the full picture.Tim Oltjenbruns
07/28/2022, 2:41 PMwbertan
07/28/2022, 2:45 PMResourceProvider
to do some handling with text and helper functions to MokoResources, we have some classes abstracting things from Platforms, Like Analytics, their SDK is per platform, we have our own abstractions, leaving the platforms to create and provide it.Tim Oltjenbruns
07/28/2022, 2:47 PMTim Oltjenbruns
07/28/2022, 2:47 PMLilly
07/28/2022, 6:17 PMLilly
07/28/2022, 6:18 PMTim Oltjenbruns
07/29/2022, 1:10 PMLilly
08/03/2022, 12:56 PM