/
Jojer
/
RepTrack
Обзор
Документация
Войти
/
Jojer
/
RepTrack
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
app/src/main/java/com/example/reptrack/di/AuthModule.kt
40 строк
933 B
MaximOdincov
23.05.2026
23 май 2026, 13:23
23 май 2026, 13:23
c406647
Код
Авторство
О чём код?
package com.example.reptrack.di import com.example.reptrack.data.auth.AuthRepositoryImpl import com.example.reptrack.data.auth.FirebaseAuthDataSource import com.example.reptrack.data.auth.FirebaseUserDataSource import com.example.reptrack.domain.auth.AuthRepository import com.example.reptrack.domain.auth.usecases.SignOutUseCase import com.google.firebase.auth.FirebaseAuth import org.koin.dsl.module val authModule = module { includes( signInModule, signUpModule, splashModule ) single { FirebaseAuth.getInstance() } single { FirebaseAuthDataSource( firebaseAuth = get() ) } single { FirebaseUserDataSource( firestore = get() ) } single<AuthRepository> { AuthRepositoryImpl( dataSource = get(), context = get() ) } factory { SignOutUseCase(repository = get()) } }