Created
June 27, 2017 13:36
-
-
Save burakeregar/9e670578f847d40651a71f004e70dcfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.base.di.component | |
import android.app.Application | |
import android.content.res.Resources | |
import com.base.di.module.ApiModule | |
import com.base.di.module.AppModule | |
import com.base.di.module.RetrofitModule | |
import com.burakeregar.kotlinmvparchitecture.api.Endpoints | |
import com.google.gson.Gson | |
import dagger.Component | |
import retrofit2.Retrofit | |
import javax.inject.Singleton | |
/** | |
* Created by Burak Eregar on 19.05.2017. | |
* burakeregar@gmail.com | |
* https://github.com/burakeregar | |
*/ | |
@Singleton | |
@Component(modules = arrayOf(AppModule::class, RetrofitModule::class, ApiModule::class)) | |
interface AppComponent { | |
fun application(): Application | |
fun gson(): Gson | |
fun resources(): Resources | |
fun retrofit():Retrofit | |
fun endpoints():Endpoints | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment