mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-31 20:52:46 +01:00
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 {
|
ext {
|
||||||
work_manager = "2.3.0"
|
work_manager = "2.3.0"
|
||||||
room = "2.2.3"
|
room = "2.2.3"
|
||||||
dagger = "2.25.4"
|
dagger = "2.26"
|
||||||
chucker = "2.0.4"
|
chucker = "2.0.4"
|
||||||
mockk = "1.9.2"
|
mockk = "1.9.2"
|
||||||
}
|
}
|
||||||
|
@ -29,11 +29,10 @@ import javax.inject.Singleton
|
|||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@AssistedModule
|
@AssistedModule
|
||||||
@Module(includes = [AssistedInject_ServicesModule::class, ServicesModule.Static::class])
|
@Module(includes = [AssistedInject_ServicesModule::class])
|
||||||
abstract class ServicesModule {
|
abstract class ServicesModule {
|
||||||
|
|
||||||
@Module
|
companion object {
|
||||||
object Static {
|
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
fun provideWorkManager(context: Context) = WorkManager.getInstance(context)
|
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
|
import io.github.wulkanowy.ui.modules.grade.summary.GradeSummaryFragment
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@Module(includes = [GradeModule.Static::class])
|
@Module
|
||||||
abstract class GradeModule {
|
abstract class GradeModule {
|
||||||
|
|
||||||
@Module
|
companion object {
|
||||||
object Static {
|
|
||||||
|
|
||||||
@PerFragment
|
@PerFragment
|
||||||
@Provides
|
@Provides
|
||||||
|
@ -12,11 +12,10 @@ import io.github.wulkanowy.ui.modules.login.studentselect.LoginStudentSelectFrag
|
|||||||
import io.github.wulkanowy.ui.modules.login.symbol.LoginSymbolFragment
|
import io.github.wulkanowy.ui.modules.login.symbol.LoginSymbolFragment
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@Module(includes = [LoginModule.Static::class])
|
@Module
|
||||||
internal abstract class LoginModule {
|
internal abstract class LoginModule {
|
||||||
|
|
||||||
@Module
|
companion object {
|
||||||
object Static {
|
|
||||||
|
|
||||||
@PerActivity
|
@PerActivity
|
||||||
@Provides
|
@Provides
|
||||||
|
@ -35,16 +35,14 @@ import io.github.wulkanowy.ui.modules.timetable.TimetableFragment
|
|||||||
import io.github.wulkanowy.ui.modules.timetable.completed.CompletedLessonsFragment
|
import io.github.wulkanowy.ui.modules.timetable.completed.CompletedLessonsFragment
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@Module(includes = [MainModule.Static::class])
|
@Module
|
||||||
abstract class MainModule {
|
abstract class MainModule {
|
||||||
|
|
||||||
@Module
|
companion object {
|
||||||
object Static {
|
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
fun provideFragNavController(activity: MainActivity): FragNavController {
|
fun provideFragNavController(activity: MainActivity) =
|
||||||
return FragNavController(activity.supportFragmentManager, R.id.mainFragmentContainer)
|
FragNavController(activity.supportFragmentManager, R.id.mainFragmentContainer)
|
||||||
}
|
|
||||||
|
|
||||||
//In activities must be injected as Lazy
|
//In activities must be injected as Lazy
|
||||||
@Provides
|
@Provides
|
||||||
|
@ -9,11 +9,10 @@ import io.github.wulkanowy.ui.base.BaseFragmentPagerAdapter
|
|||||||
import io.github.wulkanowy.ui.modules.message.tab.MessageTabFragment
|
import io.github.wulkanowy.ui.modules.message.tab.MessageTabFragment
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@Module(includes = [MessageModule.Static::class])
|
@Module
|
||||||
abstract class MessageModule {
|
abstract class MessageModule {
|
||||||
|
|
||||||
@Module
|
companion object {
|
||||||
object Static {
|
|
||||||
|
|
||||||
@PerFragment
|
@PerFragment
|
||||||
@Provides
|
@Provides
|
||||||
|
@ -10,11 +10,10 @@ import io.github.wulkanowy.ui.modules.schoolandteachers.school.SchoolFragment
|
|||||||
import io.github.wulkanowy.ui.modules.schoolandteachers.teacher.TeacherFragment
|
import io.github.wulkanowy.ui.modules.schoolandteachers.teacher.TeacherFragment
|
||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
@Module(includes = [SchoolAndTeachersModule.Static::class])
|
@Module
|
||||||
abstract class SchoolAndTeachersModule {
|
abstract class SchoolAndTeachersModule {
|
||||||
|
|
||||||
@Module
|
companion object {
|
||||||
object Static {
|
|
||||||
|
|
||||||
@PerFragment
|
@PerFragment
|
||||||
@Provides
|
@Provides
|
||||||
|
Loading…
x
Reference in New Issue
Block a user