Skip to content

Instantly share code, notes, and snippets.

@burakeregar
Created June 27, 2017 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burakeregar/9e670578f847d40651a71f004e70dcfe to your computer and use it in GitHub Desktop.
Save burakeregar/9e670578f847d40651a71f004e70dcfe to your computer and use it in GitHub Desktop.
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