Add: BooleanPrefs Meta and Dependencies maps

This commit is contained in:
machiav3lli 2022-09-17 02:33:44 +02:00
parent 24063364b7
commit 3156315741

View File

@ -0,0 +1,38 @@
package com.machiav3lli.fdroid.content
import com.machiav3lli.fdroid.R
val BooleanPrefsMeta = mapOf(
Preferences.Key.ShowScreenshots to Pair(
R.string.show_screenshots,
R.string.show_screenshots_description
),
Preferences.Key.InstallAfterSync to Pair(
R.string.install_after_sync,
R.string.install_after_sync_summary
),
Preferences.Key.UpdateNotify to Pair(
R.string.notify_about_updates,
R.string.notify_about_updates_summary
),
Preferences.Key.UpdateUnstable to Pair(
R.string.unstable_updates,
R.string.unstable_updates_summary
),
Preferences.Key.IncompatibleVersions to Pair(
R.string.incompatible_versions,
R.string.incompatible_versions_summary
),
Preferences.Key.RootPermission to Pair(
R.string.root_permission,
R.string.root_permission_description
),
Preferences.Key.RootSessionInstaller to Pair(
R.string.root_session_installer,
R.string.root_session_installer_description
),
)
val PrefsDependencies = mapOf(
Preferences.Key.RootSessionInstaller to Preferences.Key.RootPermission,
)