Skip to content

Commit 4ee525c

Browse files
committed
ui: remove debug keys
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent b246671 commit 4ee525c

File tree

1 file changed

+7
-6
lines changed
  • ui/src/main/java/com/wireguard/android/updater

1 file changed

+7
-6
lines changed

ui/src/main/java/com/wireguard/android/updater/Updater.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ object Updater {
5050
private const val UPDATE_URL_FMT = "https://download.wireguard.com/android-client/%s"
5151
private const val APK_NAME_PREFIX = BuildConfig.APPLICATION_ID + "-"
5252
private const val APK_NAME_SUFFIX = ".apk"
53-
private val CURRENT_VERSION = Version(BuildConfig.VERSION_NAME.removeSuffix("-debug"))
54-
private val LATEST_FILE = if (BuildConfig.DEBUG) "latest-debug.sig" else "latest.sig"
55-
private val RELEASE_PUBLIC_KEY_BASE64 =
56-
if (BuildConfig.DEBUG) "RWTKFCNaLimMkuolGwAw12XT6sx+nnS7KE1wmhJ7YHXvAPedtPR/rofU"
57-
else "RWTAzwGRYr3EC9px0Ia3fbttz8WcVN6wrOwWp2delz4el6SI8XmkKSMp"
53+
private const val LATEST_FILE = "latest.sig"
54+
private const val RELEASE_PUBLIC_KEY_BASE64 = "RWTAzwGRYr3EC9px0Ia3fbttz8WcVN6wrOwWp2delz4el6SI8XmkKSMp"
55+
private val CURRENT_VERSION by lazy { Version(BuildConfig.VERSION_NAME) }
5856

5957
private val updaterScope = CoroutineScope(Job() + Dispatchers.IO)
6058

@@ -365,6 +363,9 @@ object Updater {
365363
}
366364

367365
fun monitorForUpdates() {
366+
if (BuildConfig.DEBUG)
367+
return
368+
368369
val context = Application.get()
369370

370371
if (installerIsGooglePlay(context))
@@ -440,4 +441,4 @@ object Updater {
440441
context.startActivity(start)
441442
}
442443
}
443-
}
444+
}

0 commit comments

Comments
 (0)