Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This project is example of multiple 'target' for one application.

Notifications You must be signed in to change notification settings

hbb20/mobileCompany

Repository files navigation

mobileCompany

This project is example of multiple 'target' for one application.

This is an android project which shows how to use resources for specific client.

Scenario There is an advertising company which have a basic app with a screen on which company's name , tagline and logo are there. Suppose motorola and apple are clients of this advertising company. So now if company wants to manage single app and wants to export .apk using client specific resource. This project demonstrate best practice for such scenario.

Steps

  1. Created a new project named 'MobileCompany'
  2. Designed one sample activity layout with titleTextView, taglineTextView and Logo image
  3. Added two new library module named 'apple' and 'motorola'. Stackover flow question shows how to add library
  4. Added company specific resources in associated library module. For this project resources are company's logo, tagline, app-name, company's theme color.
  5. Goto project structure -> app (from left bottom pane) -> dependancies
  6. Add new module dependency and choose appropriate module (either of motorola or apple)
  7. gradle will take time to configure it self.
  8. Once gradle completes execution successfully run app.
  9. To change target got remove the older dependency which we included in step 6. and add other dependency.
  10. DONE!

Outputs Application for APPLE Application for apple

Application for MOTOROLA Application for motorola

References

  1. Google guidelines
  2. Stackover flow question

About

This project is example of multiple 'target' for one application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages