Remove network connectivity before downloads

This commit is contained in:
Rahul Kumar Patel
2021-04-12 03:03:10 +05:30
parent b63b75d526
commit 88d4742b24
2 changed files with 0 additions and 3 deletions

View File

@@ -29,7 +29,6 @@ object Constants {
const val FETCH_GROUP_ID = "FETCH_GROUP_ID"
const val APP_ID = "com.aurora.store"
const val CONNECTIVITY_CHECK_URL = "https://connectivitycheck.android.com/generate_204"
const val EXODUS_BASE_URL = "https://reports.exodus-privacy.eu.org/api/search/"
const val EXODUS_REPORT_URL = "https://reports.exodus-privacy.eu.org/reports/"
const val SHARE_URL = "http://play.google.com/store/apps/details?id="

View File

@@ -20,7 +20,6 @@
package com.aurora.store.data.downloader
import android.content.Context
import com.aurora.Constants
import com.aurora.store.data.SingletonHolder
import com.aurora.store.util.Preferences
import com.tonyodev.fetch2.*
@@ -52,7 +51,6 @@ class DownloadManager private constructor(var context: Context) {
.enableFileExistChecks(true)
.enableRetryOnNetworkGain(true)
.enableAutoStart(true)
.setInternetAccessUrlCheck(Constants.CONNECTIVITY_CHECK_URL)
.setAutoRetryMaxAttempts(3)
.setProgressReportingInterval(3000)
.setNamespace(BuildConfig.APPLICATION_ID)