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-26 16:19:52 +0200 |
commit | d8838021785f769b28ac95dd5bca6f92533b0cde (patch) | |
tree | 523449b53fd8de124e19bcf5f469f63573b3e2d0 /ui | |
parent | 8d990be204824cf5d70707d696d9bf50fd7b0b3a (diff) |
ui: remove debug keys
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-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 +} |