feat(phone/settings): Schema validation & Reset Settings

You can now reset your settings to default using the action in the Settings App

Setting schema validation has been added that will temporarily reset to default settings if
the JSON string contains unexpected values. A alert will pop up informing the user
that they should reset to default settings using the action in the settings app,
as a permanent solution.
This commit is contained in:
Taso committed 2021-03-20 12:57:22 -04:00
1 parent 97c308f550
commit 2a4457b323
6 files changed
+157 -29

No files matched your search

+14 -7
View File
@@ -3,13 +3,20 @@
"DATE_FORMAT": "MM/DD/YYYY",
"DATE_TIME_FORMAT": "MM/DD/YYYY hh:mm A",
"SETTINGS": {
"CATEGORY": {
"APPEARANCE": "Appearance",
"PHONE": "Phone"
},
"OPTIONS": {
"LANGUAGE": "Language"
}
"CATEGORY": {
"APPEARANCE": "Appearance",
"PHONE": "Phone",
"ACTIONS": "Actions"
},
"OPTIONS": {
"LANGUAGE": "Language",
"RESET_SETTINGS": "Reset Settings",
"RESET_SETTINGS_DESC": "This will clear your locally stored data"
},
"MESSAGES": {
"INVALID_SETTINGS": "Invalid stored settings! Please reset in the Settings App.",
"SETTINGS_RESET": "Settings have been reset!"
}
},
"RELATIVE_TIME": {
"future": "in %s",