ChatRoomsModule.kt 468 Bytes
Newer Older
1 2 3 4
package chat.rocket.android.chatrooms.di

import android.content.Context
import chat.rocket.android.chatrooms.presentation.ChatRoomsNavigator
5
import chat.rocket.android.main.ui.MainActivity
6 7 8 9 10 11 12 13 14
import chat.rocket.android.dagger.scope.PerActivity
import dagger.Module
import dagger.Provides

@Module
class ChatRoomsModule {

    @Provides
    @PerActivity
15
    fun provideChatRoomsNavigator(activity: MainActivity, context: Context) = ChatRoomsNavigator(activity, context)
16
}