mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Hide compose library on prod build
This commit is contained in:
parent
f37e657a9b
commit
453ea32bc9
1 changed files with 33 additions and 30 deletions
|
@ -394,11 +394,13 @@ class SettingsAdvancedController : SettingsLegacyController() {
|
|||
|
||||
onClick { LibraryUpdateJob.startNow(context, target = Target.TRACKING) }
|
||||
}
|
||||
if (BuildConfig.FLAVOR == "dev" || BuildConfig.DEBUG || BuildConfig.NIGHTLY) {
|
||||
switchPreference {
|
||||
bindTo(basePreferences.composeLibrary())
|
||||
title = context.getString(MR.strings.pref_use_compose_library).addBetaTag(context)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
preferenceCategory {
|
||||
titleRes = MR.strings.reader
|
||||
|
@ -457,9 +459,9 @@ class SettingsAdvancedController : SettingsLegacyController() {
|
|||
}
|
||||
}
|
||||
|
||||
if (BuildConfig.FLAVOR == "dev" || BuildConfig.DEBUG || BuildConfig.NIGHTLY) {
|
||||
preferenceCategory {
|
||||
title = "Danger zone!"
|
||||
isVisible = BuildConfig.FLAVOR == "dev" || BuildConfig.DEBUG || BuildConfig.NIGHTLY
|
||||
|
||||
preference {
|
||||
title = "Crash the app!"
|
||||
|
@ -491,6 +493,7 @@ class SettingsAdvancedController : SettingsLegacyController() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(DelicateCoroutinesApi::class)
|
||||
private fun cleanupDownloads(removeRead: Boolean, removeNonFavorite: Boolean) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue