mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-04-27 03:08:47 +02:00
Dependency upgrades, running on AS 4.1
This commit is contained in:
@@ -14,6 +14,7 @@ import com.melih.launches.data.LaunchItem
|
||||
import com.melih.launches.databinding.LaunchesBinding
|
||||
import com.melih.launches.ui.adapters.LaunchesAdapter
|
||||
import com.melih.launches.ui.vm.LaunchesViewModel
|
||||
import javax.inject.Inject
|
||||
|
||||
class LaunchesFragment : BaseDaggerFragment<LaunchesBinding>(), SwipeRefreshLayout.OnRefreshListener {
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ class LaunchesPagingSource @Inject constructor(
|
||||
|
||||
//region Functions
|
||||
|
||||
@UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
override fun loadDataForPage(page: Int) =
|
||||
getLaunches(
|
||||
getLaunchesParams.copy(
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
@file:UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
|
||||
package com.melih.launches
|
||||
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
@@ -10,7 +8,7 @@ import kotlinx.coroutines.test.setMain
|
||||
import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
|
||||
@UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
@OptIn(ExperimentalCoroutinesApi::class)
|
||||
abstract class BaseTestWithMainThread {
|
||||
|
||||
protected val dispatcher = TestCoroutineDispatcher()
|
||||
|
||||
Reference in New Issue
Block a user