1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2025-01-31 20:02:45 +01:00

Bump dagger from 2.24 to 2.25.2 (#564)

This commit is contained in:
dependabot-preview[bot] 2019-10-24 18:24:22 +02:00 committed by Rafał Borcz
parent 497a3391d4
commit f234b71932
7 changed files with 13 additions and 22 deletions

View File

@ -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"
}

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)
}

View File

@ -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)

View File

@ -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)