• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

android project organisation

androidcp

Lurker
Hi,
I am doing a project with firestore...so my app have model classes.
I need to import data to preload firestore (reference data, test data and so on) so I used admin SDK but the preload code needs models classes too.

My question :

How organize my project :

1) Should I put admin classes (that do import with a main function) in the app module and tell gradle to not put it in the app when building ?

2) Should I put my admin classes in another module (android library, ..) but in this case where should be my models classes ? in the app module, in the library module, .. ?

Please advice
Ty for your help...
 
I would include your classes in the app module. Use a package structure that logically reflects the functionality provided by your classes.
So you may have a 'model' package somewhere in your project hierarchy that would be used to contain the model classes.
 
Back
Top Bottom