Skip to content

aldirenaldigunawan/dagger-multi-module

Repository files navigation

multiple-module-dagger-2

Created with purpose to separate all Modules into independent module, easy to maintain, testing and develop.

Easy Test

For some reason, there are several issue for testing separate modules while using dependency injection(Dagger). Each module has to create mocking dagger modules and component/s.

But, with Dagger 2 Android all the pain setup could be gone by simpy intercept the injection process.

Easy mock

activity test easy as it looks :

@get:Rule
val rule = InjectedActivityTestRule(YourActivity::class.java,
            dispatchingActivity<YourActivity> {
                it.presenter = mock()
            })

Build with :

  • Dagger 2 for dependency injection (DI)
  • Retrofit for network calls
  • OkHttp for network interceptor(Debugging and so on)
  • RxJava 2 for reactive programming

this project original source : Here

as i lost the credential and cant recover, i've decided to move the project here to my current github account

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •