mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-03-17 23:14:07 +01:00
Dependency upgrades, running on AS 4.1
This commit is contained in:
@@ -8,6 +8,7 @@ import dagger.android.DispatchingAndroidInjector
|
||||
import dagger.android.HasAndroidInjector
|
||||
import dagger.android.support.AndroidSupportInjection
|
||||
import javax.inject.Inject
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
|
||||
/**
|
||||
@@ -24,11 +25,11 @@ abstract class BaseDaggerFragment<T : ViewDataBinding> : BaseFragment<T>(), HasA
|
||||
|
||||
//region Properties
|
||||
|
||||
@get:Inject
|
||||
internal var androidInjector: DispatchingAndroidInjector<Any>? = null
|
||||
@Inject
|
||||
protected lateinit var androidInjector: DispatchingAndroidInjector<Any>
|
||||
|
||||
@Inject
|
||||
lateinit var viewModelFactory: ViewModelFactory
|
||||
protected lateinit var viewModelFactory: ViewModelFactory
|
||||
//endregion
|
||||
|
||||
//region Functions
|
||||
@@ -38,6 +39,6 @@ abstract class BaseDaggerFragment<T : ViewDataBinding> : BaseFragment<T>(), HasA
|
||||
super.onAttach(context)
|
||||
}
|
||||
|
||||
override fun androidInjector(): AndroidInjector<Any>? = androidInjector
|
||||
override fun androidInjector(): AndroidInjector<Any> = androidInjector
|
||||
//endregion
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ const val INITIAL_PAGE = 0
|
||||
* It's cancelled automatically when source factory [invalidates][invalidate] the source.
|
||||
*/
|
||||
|
||||
@UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
@OptIn(ExperimentalCoroutinesApi::class)
|
||||
abstract class BasePagingDataSource<R : ViewEntity> : PageKeyedDataSource<Int, R>() {
|
||||
|
||||
//region Abstractions
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
import kotlin.coroutines.suspendCoroutine
|
||||
|
||||
@UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
@OptIn(ExperimentalCoroutinesApi::class)
|
||||
abstract class BaseTestWithMainThread {
|
||||
|
||||
private val dispatcher = TestCoroutineDispatcher()
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
@file:UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
|
||||
package com.melih.core.paging
|
||||
|
||||
import androidx.paging.PageKeyedDataSource
|
||||
|
||||
Reference in New Issue
Block a user