|
|
@ -28,7 +28,7 @@ import com.google.samples.apps.nowinandroid.core.data.repository.AuthorsReposito
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.NewsRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.NewsRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.TopicsRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.data.repository.TopicsRepository
|
|
|
|
import com.google.samples.apps.nowinandroid.core.datastore.ChangeListVersions
|
|
|
|
import com.google.samples.apps.nowinandroid.core.datastore.ChangeListVersions
|
|
|
|
import com.google.samples.apps.nowinandroid.core.datastore.NiaPreferencesLocalDataSource
|
|
|
|
import com.google.samples.apps.nowinandroid.core.datastore.NiaPreferencesDataSource
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.Dispatcher
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.Dispatcher
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.NiaDispatchers.IO
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.NiaDispatchers.IO
|
|
|
|
import com.google.samples.apps.nowinandroid.sync.initializers.SyncConstraints
|
|
|
|
import com.google.samples.apps.nowinandroid.sync.initializers.SyncConstraints
|
|
|
@ -48,7 +48,7 @@ import kotlinx.coroutines.withContext
|
|
|
|
class SyncWorker @AssistedInject constructor(
|
|
|
|
class SyncWorker @AssistedInject constructor(
|
|
|
|
@Assisted private val appContext: Context,
|
|
|
|
@Assisted private val appContext: Context,
|
|
|
|
@Assisted workerParams: WorkerParameters,
|
|
|
|
@Assisted workerParams: WorkerParameters,
|
|
|
|
private val niaPreferences: NiaPreferencesLocalDataSource,
|
|
|
|
private val niaPreferences: NiaPreferencesDataSource,
|
|
|
|
private val topicRepository: TopicsRepository,
|
|
|
|
private val topicRepository: TopicsRepository,
|
|
|
|
private val newsRepository: NewsRepository,
|
|
|
|
private val newsRepository: NewsRepository,
|
|
|
|
private val authorsRepository: AuthorsRepository,
|
|
|
|
private val authorsRepository: AuthorsRepository,
|
|
|
|