Dependency upgrades, running on AS 4.1

This commit is contained in:
Melih
2020-03-31 11:45:25 +02:00
parent bd1bc9cab0
commit 927c5c02ca
19 changed files with 64 additions and 53 deletions

View File

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

View File

@@ -16,7 +16,6 @@ class LaunchesPagingSource @Inject constructor(
//region Functions
@UseExperimental(ExperimentalCoroutinesApi::class)
override fun loadDataForPage(page: Int) =
getLaunches(
getLaunchesParams.copy(

View File

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