Newer
Older
DevAndroid / app / src / main / java / keijumt / devandroid / di / module / ActivityModule.kt
package keijumt.devandroid.di.module

import dagger.Module
import dagger.android.ContributesAndroidInjector
import keijumt.devandroid.activity.ApiActivity
import keijumt.devandroid.activity.AsyncActivity
import keijumt.devandroid.activity.MainActivity

/**
 * Module: Activity 定義
 */
@Module
internal abstract class ActivityModule {

    @ContributesAndroidInjector(modules = arrayOf(FragmentModule::class))
    internal abstract fun mainActivity(): MainActivity

    @ContributesAndroidInjector(modules = arrayOf(FragmentModule::class))
    internal abstract fun apiActivity(): ApiActivity

    @ContributesAndroidInjector(modules = arrayOf(FragmentModule::class))
    internal abstract fun asyncActivity(): AsyncActivity
}