Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- open class App : Application() {
- override fun onCreate() {
- super.onCreate()
- component = buildComponent()
- }
- private fun buildComponent(): ApplicationComponent {
- return DaggerApplicationComponent.builder()
- .applicationModule(ApplicationModule(this))
- .dataSourceModule(DataSourceModule())
- .repositoryModule(RepositoryModule())
- .netModule(NetModule())
- .dbModule(DbModule())
- .build()
- }
- companion object {
- @JvmStatic
- lateinit var component: ApplicationComponent
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement