Piero Silvestri [5:05 PM] Hi everybody! I would l...
# multiplatform
p
Piero Silvestri [5:05 PM] Hi everybody! I would like to ask you for a suggestion. I'm creating a CMP app that use Firebase Auth (Normal SignIn and Google SinIn using Credential Manager) and also a multimodule structure. I've structured my CMP app in these modules: • composeApp (Navigation) • core (common models and utils) • core_ui (common component, theme) • login (singIn screen, signUp screen, splashScreen, auth repository for firebase) • home (home screen) On my splash screen (login module) I check if my Firebase user is already authenticated. On my home screen, I can log out from the current user. I'm thinking of creating another auth module to move the auth features (signIn, signOut, get current user) from the login module into it. In this way, I can implement my new module in the others instead of the login module which has also some specific code (like the UI). So do you think create another module is a good idea?
b
If its a logical separation, then why not? I generally divide my projects up and separate them even more than you have to isolate the domain and data layers.
❤️ 1
p
Ok thank you Brill!