mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-31 17:12:44 +01:00
Bump dagger from 2.24 to 2.25.2 (#564)
This commit is contained in:
parent
497a3391d4
commit
f234b71932
@ -112,7 +112,7 @@ play {
|
||||
ext {
|
||||
work_manager = "2.3.0-alpha03"
|
||||
room = "2.2.1"
|
||||
dagger = "2.24"
|
||||
dagger = "2.25.2"
|
||||
chucker = "2.0.4"
|
||||
mockk = "1.9.2"
|
||||
}
|
||||
|
@ -29,17 +29,15 @@ import javax.inject.Singleton
|
||||
|
||||
@Suppress("unused")
|
||||
@AssistedModule
|
||||
@Module(includes = [AssistedInject_ServicesModule::class])
|
||||
@Module(includes = [AssistedInject_ServicesModule::class, ServicesModule.Static::class])
|
||||
abstract class ServicesModule {
|
||||
|
||||
@Module
|
||||
companion object {
|
||||
object Static {
|
||||
|
||||
@JvmStatic
|
||||
@Provides
|
||||
fun provideWorkManager(context: Context) = WorkManager.getInstance(context)
|
||||
|
||||
@JvmStatic
|
||||
@Singleton
|
||||
@Provides
|
||||
fun provideNotificationManager(context: Context) = NotificationManagerCompat.from(context)
|
||||
|
@ -11,13 +11,12 @@ import io.github.wulkanowy.ui.modules.grade.statistics.GradeStatisticsFragment
|
||||
import io.github.wulkanowy.ui.modules.grade.summary.GradeSummaryFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module
|
||||
@Module(includes = [GradeModule.Static::class])
|
||||
abstract class GradeModule {
|
||||
|
||||
@Module
|
||||
companion object {
|
||||
object Static {
|
||||
|
||||
@JvmStatic
|
||||
@PerFragment
|
||||
@Provides
|
||||
fun provideGradeAdapter(fragment: GradeFragment) = BaseFragmentPagerAdapter(fragment.childFragmentManager)
|
||||
|
@ -11,13 +11,12 @@ import io.github.wulkanowy.ui.modules.login.studentselect.LoginStudentSelectFrag
|
||||
import io.github.wulkanowy.ui.modules.login.symbol.LoginSymbolFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module
|
||||
@Module(includes = [LoginModule.Static::class])
|
||||
internal abstract class LoginModule {
|
||||
|
||||
@Module
|
||||
companion object {
|
||||
object Static {
|
||||
|
||||
@JvmStatic
|
||||
@PerActivity
|
||||
@Provides
|
||||
fun provideLoginAdapter(activity: LoginActivity) = BaseFragmentPagerAdapter(activity.supportFragmentManager)
|
||||
|
@ -29,25 +29,22 @@ import io.github.wulkanowy.ui.modules.note.NoteFragment
|
||||
import io.github.wulkanowy.ui.modules.schoolandteachers.SchoolAndTeachersFragment
|
||||
import io.github.wulkanowy.ui.modules.schoolandteachers.SchoolAndTeachersModule
|
||||
import io.github.wulkanowy.ui.modules.settings.SettingsFragment
|
||||
import io.github.wulkanowy.ui.modules.schoolandteachers.teacher.TeacherFragment
|
||||
import io.github.wulkanowy.ui.modules.timetable.TimetableFragment
|
||||
import io.github.wulkanowy.ui.modules.timetable.completed.CompletedLessonsFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module
|
||||
@Module(includes = [MainModule.Static::class])
|
||||
abstract class MainModule {
|
||||
|
||||
@Module
|
||||
companion object {
|
||||
object Static {
|
||||
|
||||
@JvmStatic
|
||||
@Provides
|
||||
fun provideFragNavController(activity: MainActivity): FragNavController {
|
||||
return FragNavController(activity.supportFragmentManager, R.id.mainFragmentContainer)
|
||||
}
|
||||
|
||||
//In activities must be injected as Lazy
|
||||
@JvmStatic
|
||||
@Provides
|
||||
fun provideElevationOverlayProvider(activity: MainActivity) = ElevationOverlayProvider(activity)
|
||||
}
|
||||
|
@ -9,13 +9,12 @@ import io.github.wulkanowy.ui.base.BaseFragmentPagerAdapter
|
||||
import io.github.wulkanowy.ui.modules.message.tab.MessageTabFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module
|
||||
@Module(includes = [MessageModule.Static::class])
|
||||
abstract class MessageModule {
|
||||
|
||||
@Module
|
||||
companion object {
|
||||
object Static {
|
||||
|
||||
@JvmStatic
|
||||
@PerFragment
|
||||
@Provides
|
||||
fun provideMessageAdapter(fragment: MessageFragment) = BaseFragmentPagerAdapter(fragment.childFragmentManager)
|
||||
|
@ -10,13 +10,12 @@ import io.github.wulkanowy.ui.modules.schoolandteachers.school.SchoolFragment
|
||||
import io.github.wulkanowy.ui.modules.schoolandteachers.teacher.TeacherFragment
|
||||
|
||||
@Suppress("unused")
|
||||
@Module
|
||||
@Module(includes = [SchoolAndTeachersModule.Static::class])
|
||||
abstract class SchoolAndTeachersModule {
|
||||
|
||||
@Module
|
||||
companion object {
|
||||
object Static {
|
||||
|
||||
@JvmStatic
|
||||
@PerFragment
|
||||
@Provides
|
||||
fun provideSchoolAndTeachersAdapter(fragment: SchoolAndTeachersFragment) = BaseFragmentPagerAdapter(fragment.childFragmentManager)
|
||||
|
Loading…
x
Reference in New Issue
Block a user