Commit 438b5ce5 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

remove injector

parent ec95f404
package com.biganto.visual.roompark.di.dagger
import com.biganto.visual.androidplayer.data.repository.local.ILocalStore
import com.biganto.visual.roompark.base.RoomParkApplication
import com.biganto.visual.roompark.data.local.LocalStorage
import com.biganto.visual.roompark.data.repository.api.retrofit.di.RetrofitModule
import com.biganto.visual.roompark.data.repository.db.requrey.DbModule
import com.biganto.visual.roompark.domain.contract.AuthContract
import dagger.BindsInstance
import dagger.Component
import dagger.android.AndroidInjectionModule
......@@ -37,10 +37,15 @@ import javax.inject.Singleton
AppActivityModule ::class])
interface AppComponent : AndroidInjector<RoomParkApplication>{
fun authC():AuthContract
@Component.Factory
interface Factory:AndroidInjector.Factory<RoomParkApplication>{
interface Factory{
fun create(
@BindsInstance app:RoomParkApplication
):AppComponent
// @BindsInstance
......
package com.biganto.visual.roompark.presentation.screen.auth
import android.content.Context
import com.biganto.visual.androidplayer.data.repository.local.ILocalStore
import com.biganto.visual.roompark.base.IBottomNavigation
import com.biganto.visual.roompark.base.RoomParkMainActivity
import com.biganto.visual.roompark.di.dagger.AppComponent
......@@ -20,7 +19,6 @@ import dagger.Module
)
interface AuthScreenComponent {
val _local: ILocalStore
@Component.Factory
interface Factory{
fun create(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment