Skip to content

Commit

Permalink
Use version name for user agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
rumboalla committed Dec 6, 2019
1 parent f3b40f7 commit b4fa630
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.apkupdater.repository.apkmirror

import android.os.Build
import com.apkupdater.BuildConfig
import com.apkupdater.R
import com.apkupdater.model.ui.AppInstalled
import com.apkupdater.model.ui.AppUpdate
import com.apkupdater.model.apkmirror.AppExistsRequest
import com.apkupdater.model.apkmirror.AppExistsResponse
import com.apkupdater.model.ui.AppInstalled
import com.apkupdater.model.ui.AppUpdate
import com.apkupdater.util.app.AppPrefs
import com.apkupdater.util.ioScope
import com.github.kittinunf.fuel.Fuel
Expand All @@ -18,15 +19,15 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import org.koin.core.KoinComponent
import java.util.Locale
import java.util.*

class ApkMirrorUpdater(private val prefs: AppPrefs): KoinComponent {

private val baseUrl = "https://www.apkmirror.com"
private val appExists = "/wp-json/apkm/v1/app_exists/"
private val user = "api-apkupdater"
private val token = "rm5rcfruUjKy04sMpyMPJXW8"
private val userAgent = "APKUpdater-v1.5.11"
private val userAgent = "APKUpdater-v" + BuildConfig.VERSION_NAME
private val source = R.drawable.apkmirror_logo
private val excludeExperimental get() = prefs.settings.excludeExperimental
private val excludeArch get() = prefs.settings.excludeArch
Expand Down

0 comments on commit b4fa630

Please sign in to comment.