If you work with big android project, its really common to modularize the app. When it happens, gradle dependencies seems really worst because we have to add repetitive dependencies to all of our module. So why Kotlin DSL comes to the world, it can centralize our dependencies and make it more easy with auto complete (In your gradle file). Then for communication between each modules, I'am using Deeplink Dispatcher by Airbnb.
- Kotlin DSL
- Modularize Library
- Deeplink Dispatcher
Clone this project, open with and run with Android Studio. If you want to test Deeplink , you can easily do :
- Open terminal and go to this path file
- After emulator or another devices start then run this in your terminal
adb shell am start -W -a android.intent.action.VIEW -d "nba//:www.nbageek.com/team/123" com.example.nbageek
- Tadaaaa~ you start the activity explicitly
Choose your deeplink :
nba//:www.nbageek.com/team/{id}
nba//:www.nbageek.com/home