diff --git a/Podfile.lock b/Podfile.lock index 30aed5be3efa84440b4e42bafe60d57e1402dda8..a195ec749285096e4ace55b112e5b5d8981b130e 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -205,4 +205,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 65a7fa9ee482022fade614219df0522c6399aafe -COCOAPODS: 1.15.2 +COCOAPODS: 1.16.2 diff --git a/Resources/iOS/Settings.bundle/en.lproj/Root.strings b/Resources/iOS/Settings.bundle/en.lproj/Root.strings index 533c90bd7d489466e65cc99270b30deca5611c96..b2881aee2277ac6f1df66ff70c784cf70793d7b5 100644 --- a/Resources/iOS/Settings.bundle/en.lproj/Root.strings +++ b/Resources/iOS/Settings.bundle/en.lproj/Root.strings @@ -171,3 +171,5 @@ "SETTINGS_RESET" = "Reset the settings"; "SETTINGS_RESET_TITLE" = "Reset"; + +"SETTINGS_KIDSMODE_TOGGLE" = "Kids mode"; diff --git a/Resources/iOS/Settings.bundle/pt-BR.lproj/Root.strings b/Resources/iOS/Settings.bundle/pt-BR.lproj/Root.strings index 38832c02ce9be7bc71aa79f05a889d12578ace9e..69b15228f48d738f576a10ce90a14a2c756842e4 100644 Binary files a/Resources/iOS/Settings.bundle/pt-BR.lproj/Root.strings and b/Resources/iOS/Settings.bundle/pt-BR.lproj/Root.strings differ diff --git a/Sources/Headers/VLCConstants.h b/Sources/Headers/VLCConstants.h index c5d22a5b154c56bff82141ad42060c657cdc2bda..453e9628683b3626b76589751cdc7d26d09b8b5d 100644 --- a/Sources/Headers/VLCConstants.h +++ b/Sources/Headers/VLCConstants.h @@ -185,6 +185,8 @@ #define kVLCDonationAnonymousCustomerID @"kVLCDonationAnonymousCustomerID" +#define kVLCSettingEnableKidsMode @"kVLCSettingEnableKidsMode" + /* LEGACY KEYS, DO NOT USE IN NEW CODE */ #define kVLCFTPServer @"ftp-server" #define kVLCFTPLogin @"ftp-login" diff --git a/Sources/Settings/Model/SettingsSection.swift b/Sources/Settings/Model/SettingsSection.swift index a7b6ffbe598ddc6c2906c0d78aae9d2ab5a88f9c..bd5ec53132c6669ad4981f37771e6256574efbdb 100644 --- a/Sources/Settings/Model/SettingsSection.swift +++ b/Sources/Settings/Model/SettingsSection.swift @@ -175,11 +175,19 @@ enum MainOptions { subtitle: Localizer.getSubtitle(for: k), action: .showActionSheet(title: "SETTINGS_DARKTHEME", preferenceKey: k, hasInfo: false)) } + + static var kidsMode: SettingsItem { + .init(title: "SETTINGS_KIDSMODE_TOGGLE", + subtitle: "SETTINGS_KIDSMODE_SUBTITLE", + action: .toggle(SettingsItem.Toggle(preferenceKey: kVLCSettingEnableKidsMode)), + isTitleEmphasized: false) + } static func section() -> SettingsSection? { .init(title: nil, items: [ privacy, appearance, + kidsMode ]) } }