Tie addon account preferences back to BuildConfig

pull/58/head fork-9
Adam Novak 4 years ago
parent 5097afad8e
commit f90adf5ce5

@ -115,6 +115,9 @@ android {
// Need to replicate default debug config features // Need to replicate default debug config features
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
debuggable true debuggable true
// Use custom default allowed addon list
buildConfigField "String", "AMO_ACCOUNT", "\"16201230\""
buildConfigField "String", "AMO_COLLECTION", "\"What-I-want-on-Fenix\""
} }
forkRelease releaseTemplate >> { forkRelease releaseTemplate >> {
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "true" buildConfigField "boolean", "USE_RELEASE_VERSIONING", "true"
@ -124,6 +127,9 @@ android {
manifestPlaceholders = [ manifestPlaceholders = [
"deepLinkScheme": deepLinkSchemeValue "deepLinkScheme": deepLinkSchemeValue
] ]
// Use custom default allowed addon list
buildConfigField "String", "AMO_ACCOUNT", "\"16201230\""
buildConfigField "String", "AMO_COLLECTION", "\"What-I-want-on-Fenix\""
} }
} }

@ -867,12 +867,12 @@ class Settings(private val appContext: Context) : PreferencesHolder {
val customAddonsAccount by stringPreference( val customAddonsAccount by stringPreference(
appContext.getPreferenceKey(R.string.pref_key_addons_custom_account), appContext.getPreferenceKey(R.string.pref_key_addons_custom_account),
"16201230" BuildConfig.AMO_ACCOUNT
) )
val customAddonsCollection by stringPreference( val customAddonsCollection by stringPreference(
appContext.getPreferenceKey(R.string.pref_key_addons_custom_collection), appContext.getPreferenceKey(R.string.pref_key_addons_custom_collection),
"What-I-want-on-Fenix" BuildConfig.AMO_COLLECTION
) )
private var savedLoginsSortingStrategyString by stringPreference( private var savedLoginsSortingStrategyString by stringPreference(

Loading…
Cancel
Save