Skip to content

nlgtuankiet/modularization

Repository files navigation

Modularization example project

Featuring module exclusion to achieve O(1) build time.
Blog post: https://medium.com/@nlg.tuan.kiet/o-1-android-build-time-at-tiki-1a27a804bb6a

Badge


background

Install

  • Install debug apk including all feature:
    ./gradlew :app:installDebug

  • Install debug apk with only :home module:
    ./gradlew :app:installDebug -Ponly="home"

  • Install debug apk with only :home module and :detail module:
    ./gradlew :app:installDebug -Ponly="home,detail"

Navigation

Use deep link via adb command:
adb shell am start -a android.intent.action.VIEW -d {deep link}
Ex: adb shell am start -a android.intent.action.VIEW -d module://home

  • Home screen: module://home

  • Detail screen: module://detail/{productId}
    Ex: module://detail/abc

  • Search screen: module://search/{keyword}
    Ex: module://search/android

Special thank to

avatar
@Khang-NT
Who made a clever dagger 2 binds optional setup and fake source

About

Modularization example project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages