1. Are you ready for the Galaxy S20? Here is everything we know so far!

android project organisation

Discussion in 'Android Development' started by androidcp, Jun 18, 2019.

  1. androidcp

    androidcp Lurker
    Thread Starter

    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...
     


  2. Deleted User

    Deleted User Guest

    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.
     
Loading...
Similar Threads - android project organisation
  1. username988
    Replies:
    0
    Views:
    186
  2. hazelly
    Replies:
    0
    Views:
    539
  3. purplebeans
    Replies:
    0
    Views:
    386
  4. MNH
    Replies:
    0
    Views:
    452
  5. Android News
    Replies:
    0
    Views:
    1,175
  6. Android News
    Replies:
    0
    Views:
    720
  7. Android News
    Replies:
    0
    Views:
    222
  8. Android News
    Replies:
    0
    Views:
    138
  9. Aseem Chishti
    Replies:
    0
    Views:
    328

Share This Page

Loading...