diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-05-15 03:28:48 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2023-05-15 03:28:48 +0200 |
commit | 4ee525c37e6f3dbc62b60ac2c68d30d24989b9ad (patch) | |
tree | d6846477f67289ba86b9b3663b5ad358a9556a54 /ui/src/main/java | |
parent | b2466715e7ea26f5465793b17894945559be312e (diff) |
ui: remove debug keys
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/java')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/updater/Updater.kt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/src/main/java/com/wireguard/android/updater/Updater.kt b/ui/src/main/java/com/wireguard/android/updater/Updater.kt index 434fb3bd..f652ae2b 100644 --- a/ui/src/main/java/com/wireguard/android/updater/Updater.kt +++ b/ui/src/main/java/com/wireguard/android/updater/Updater.kt @@ -50,11 +50,9 @@ object Updater { private const val UPDATE_URL_FMT = "https://download.wireguard.com/android-client/%s" private const val APK_NAME_PREFIX = BuildConfig.APPLICATION_ID + "-" private const val APK_NAME_SUFFIX = ".apk" - private val CURRENT_VERSION = Version(BuildConfig.VERSION_NAME.removeSuffix("-debug")) - private val LATEST_FILE = if (BuildConfig.DEBUG) "latest-debug.sig" else "latest.sig" - private val RELEASE_PUBLIC_KEY_BASE64 = - if (BuildConfig.DEBUG) "RWTKFCNaLimMkuolGwAw12XT6sx+nnS7KE1wmhJ7YHXvAPedtPR/rofU" - else "RWTAzwGRYr3EC9px0Ia3fbttz8WcVN6wrOwWp2delz4el6SI8XmkKSMp" + private const val LATEST_FILE = "latest.sig" + private const val RELEASE_PUBLIC_KEY_BASE64 = "RWTAzwGRYr3EC9px0Ia3fbttz8WcVN6wrOwWp2delz4el6SI8XmkKSMp" + private val CURRENT_VERSION by lazy { Version(BuildConfig.VERSION_NAME) } private val updaterScope = CoroutineScope(Job() + Dispatchers.IO) @@ -365,6 +363,9 @@ object Updater { } fun monitorForUpdates() { + if (BuildConfig.DEBUG) + return + val context = Application.get() if (installerIsGooglePlay(context)) @@ -440,4 +441,4 @@ object Updater { context.startActivity(start) } } -}
\ No newline at end of file +} |