Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Modular architecture

Android Modular architecture

As the mobile app grows, the codebase gets larger and the maintainability becomes harder.
One of the most adopted solutions is modular architecture.

In this talk, we will walk you through the modular Android architecture, and how much efficient it is to solve this problem.

Through demos and live coding we will see in details how to apply the modular architecture, then we will cover it’s pros and cons.

oussama ben wafi

November 07, 2019
Tweet

More Decks by oussama ben wafi

Other Decks in Programming

Transcript

  1. 4.Easy & scalable development ⬡ Different teams can work independently

    ⬡ Clear code ⬡ Easy to understand ⬡ Ownership 7
  2. 6.Simple & easy to test ⬡ Easy to test each

    module separately ⬡ Faster ⬡ Reliable 9
  3. How : Android app module 10 App Provides a container

    for our app's source code, resource files, and app level settings
  4. How : Library module 11 :library Provides a container for

    your reusable code, which you can use as a dependency in other app
  5. How : Dynamic module 12 :dynamic Represents a modularized feature

    of your app that can take advantage of Google Play's Dynamic Delivery
  6. Navigation between features 18 private fun callWithExplicitIntent() { val intent

    = Intent( context, Class.forName("com.oussamabw.provisioningfeature.ProvisiongHomeActivity") ) startActivity(intent) } private fun callWithImplicitIntent() { val intent = Intent("action.provisioning.launch").setPackage(context?.packageName) //intent.putExtra() startActivity(intent) }
  7. Summary 1. Faster 2. Good for business 3. App bundle

    benefits 4. Easy & scalable dev 5. Technology experiment 6. Simple & reliable test 7. Navigation (Up to you for now) 20