Cleanup
This commit is contained in:
parent
d4c6a46e90
commit
7884b9dd5e
|
@ -107,10 +107,10 @@ internal class WorkManagerProvider @Inject constructor(
|
|||
fun getWorkConstraints(
|
||||
workManagerConfig: WorkManagerConfig,
|
||||
): Constraints {
|
||||
val widthNetworkConstraint = workManagerConfig.withNetworkConstraint()
|
||||
val withNetworkConstraint = workManagerConfig.withNetworkConstraint()
|
||||
return Constraints.Builder()
|
||||
.apply {
|
||||
if (widthNetworkConstraint) {
|
||||
if (withNetworkConstraint) {
|
||||
setRequiredNetworkType(NetworkType.CONNECTED)
|
||||
} else {
|
||||
Timber.w("Network constraint is disabled")
|
||||
|
|
|
@ -53,7 +53,6 @@ import org.matrix.android.sdk.internal.crypto.store.IMXCommonCryptoStore
|
|||
import org.matrix.android.sdk.internal.di.SessionId
|
||||
import org.matrix.android.sdk.internal.di.WorkManagerProvider
|
||||
import org.matrix.android.sdk.internal.session.content.UploadContentWorker
|
||||
import org.matrix.android.sdk.internal.session.homeserver.HomeServerCapabilitiesDataSource
|
||||
import org.matrix.android.sdk.internal.session.room.send.queue.EventSenderProcessor
|
||||
import org.matrix.android.sdk.internal.session.workmanager.WorkManagerConfig
|
||||
import org.matrix.android.sdk.internal.task.TaskExecutor
|
||||
|
|
|
@ -22,7 +22,6 @@ import androidx.work.ListenableWorker
|
|||
import androidx.work.OneTimeWorkRequest
|
||||
import org.matrix.android.sdk.api.util.Cancelable
|
||||
import org.matrix.android.sdk.internal.di.WorkManagerProvider
|
||||
import org.matrix.android.sdk.internal.session.homeserver.HomeServerCapabilitiesDataSource
|
||||
import org.matrix.android.sdk.internal.session.workmanager.WorkManagerConfig
|
||||
import org.matrix.android.sdk.internal.util.CancelableWork
|
||||
import org.matrix.android.sdk.internal.worker.startChain
|
||||
|
|
|
@ -20,7 +20,6 @@ import org.matrix.android.sdk.api.session.sync.SyncService
|
|||
import org.matrix.android.sdk.internal.di.SessionId
|
||||
import org.matrix.android.sdk.internal.di.WorkManagerProvider
|
||||
import org.matrix.android.sdk.internal.session.SessionState
|
||||
import org.matrix.android.sdk.internal.session.homeserver.HomeServerCapabilitiesDataSource
|
||||
import org.matrix.android.sdk.internal.session.sync.job.SyncThread
|
||||
import org.matrix.android.sdk.internal.session.sync.job.SyncWorker
|
||||
import org.matrix.android.sdk.internal.session.workmanager.WorkManagerConfig
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.matrix.android.sdk.api.failure.isTokenError
|
|||
import org.matrix.android.sdk.internal.SessionManager
|
||||
import org.matrix.android.sdk.internal.di.WorkManagerProvider
|
||||
import org.matrix.android.sdk.internal.session.SessionComponent
|
||||
import org.matrix.android.sdk.internal.session.homeserver.HomeServerCapabilitiesDataSource
|
||||
import org.matrix.android.sdk.internal.session.sync.SyncPresence
|
||||
import org.matrix.android.sdk.internal.session.sync.SyncTask
|
||||
import org.matrix.android.sdk.internal.session.workmanager.WorkManagerConfig
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2023 New Vector Ltd
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.matrix.android.sdk.test.fakes
|
||||
|
||||
class FakeWork {
|
||||
}
|
Loading…
Reference in New Issue