forked from github/wulkanowy-mirror
Bump dagger from 2.25.4 to 2.26 (#673)
This commit is contained in:
parent
c3a6842027
commit
2f56f7e4a4
@ -112,7 +112,7 @@ play {
|
||||
ext {
|
||||
work_manager = "2.3.0"
|
||||
room = "2.2.3"
|
||||
dagger = "2.25.4"
|
||||
dagger = "2.26"
|
||||
chucker = "2.0.4"
|
||||
mockk = "1.9.2"
|
||||
}
|
||||
|
@ -29,11 +29,10 @@ import javax.inject.Singleton
|
||||
|
||||
@Suppress("unused")
|
||||
@AssistedModule
|
||||
@Module(includes = [AssistedInject_ServicesModule::class, ServicesModule.Static::class])
|
||||
@Module(includes = [AssistedInject_ServicesModule::class])
|
||||
abstract class ServicesModule {
|
||||
|
||||
@Module
|
||||
object Static {
|
||||
companion object {
|
||||
|
||||
@Provides
|
||||
fun provideWorkManager(context: Context) = WorkManager.getInstance(context)
|
||||
|
@ -11,11 +11,10 @@ import io.github.wulkanowy.ui.modules.grade.statistics.GradeStatisticsFragment
|
||||
import io.github.wulkanowy.ui.modules.grade.summary.GradeSummaryFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module(includes = [GradeModule.Static::class])
|
||||
@Module
|
||||
abstract class GradeModule {
|
||||
|
||||
@Module
|
||||
object Static {
|
||||
companion object {
|
||||
|
||||
@PerFragment
|
||||
@Provides
|
||||
|
@ -12,11 +12,10 @@ import io.github.wulkanowy.ui.modules.login.studentselect.LoginStudentSelectFrag
|
||||
import io.github.wulkanowy.ui.modules.login.symbol.LoginSymbolFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module(includes = [LoginModule.Static::class])
|
||||
@Module
|
||||
internal abstract class LoginModule {
|
||||
|
||||
@Module
|
||||
object Static {
|
||||
companion object {
|
||||
|
||||
@PerActivity
|
||||
@Provides
|
||||
|
@ -35,16 +35,14 @@ import io.github.wulkanowy.ui.modules.timetable.TimetableFragment
|
||||
import io.github.wulkanowy.ui.modules.timetable.completed.CompletedLessonsFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module(includes = [MainModule.Static::class])
|
||||
@Module
|
||||
abstract class MainModule {
|
||||
|
||||
@Module
|
||||
object Static {
|
||||
companion object {
|
||||
|
||||
@Provides
|
||||
fun provideFragNavController(activity: MainActivity): FragNavController {
|
||||
return FragNavController(activity.supportFragmentManager, R.id.mainFragmentContainer)
|
||||
}
|
||||
fun provideFragNavController(activity: MainActivity) =
|
||||
FragNavController(activity.supportFragmentManager, R.id.mainFragmentContainer)
|
||||
|
||||
//In activities must be injected as Lazy
|
||||
@Provides
|
||||
|
@ -9,11 +9,10 @@ import io.github.wulkanowy.ui.base.BaseFragmentPagerAdapter
|
||||
import io.github.wulkanowy.ui.modules.message.tab.MessageTabFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module(includes = [MessageModule.Static::class])
|
||||
@Module
|
||||
abstract class MessageModule {
|
||||
|
||||
@Module
|
||||
object Static {
|
||||
companion object {
|
||||
|
||||
@PerFragment
|
||||
@Provides
|
||||
|
@ -10,11 +10,10 @@ import io.github.wulkanowy.ui.modules.schoolandteachers.school.SchoolFragment
|
||||
import io.github.wulkanowy.ui.modules.schoolandteachers.teacher.TeacherFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module(includes = [SchoolAndTeachersModule.Static::class])
|
||||
@Module
|
||||
abstract class SchoolAndTeachersModule {
|
||||
|
||||
@Module
|
||||
object Static {
|
||||
companion object {
|
||||
|
||||
@PerFragment
|
||||
@Provides
|
||||
|
Loading…
x
Reference in New Issue
Block a user