Hey, I'm proposing migrating our android applicati...
# multiplatform
a
Hey, I'm proposing migrating our android application to KMP. I'm kinda stuck with the approach here. Should DataStore and RoomDB be added in data module? I know local data source lives in data module and so it must use local source and I'm wondering should I put it there or not? since data module is shared KMP module is that a good approach or not? I was thinking about creating another module for handling platform storage stuff and added that module to my data module but I don't wanna do that without a second opinion.
j
That depends on how you define your "data module". It sounds like they should go in there, given your definition is "local data sources live in the data module". Both DataStore and Room are KMP-ready, so I don't think that is a factor here
I don't like to group all my data sources in one place personally, I'd have everythin grouped by feature and maybe layer, rather than just group by layer