More precise channel targeting

This commit is contained in:
topjohnwu
2019-10-24 04:25:05 -04:00
parent c30be20e49
commit 7fc7809cfc
2 changed files with 10 additions and 3 deletions

View File

@@ -98,7 +98,12 @@ object Config : PreferenceModel, DBConfig {
}
private val defaultChannel =
if (Utils.isCanary) Value.CANARY_DEBUG_CHANNEL
if (Utils.isCanary) {
if (BuildConfig.DEBUG)
Value.CANARY_DEBUG_CHANNEL
else
Value.CANARY_CHANNEL
}
else Value.DEFAULT_CHANNEL
var downloadPath by preference(Key.DOWNLOAD_PATH, Environment.DIRECTORY_DOWNLOADS)