Move where the developer options are shown and store them in the app settings.

This commit is contained in:
Stefan Ceriu
2025-04-30 14:01:28 +03:00
committed by Stefan Ceriu
parent eaa6dd9240
commit 0c5be93a75
11 changed files with 65 additions and 39 deletions
@@ -58,6 +58,7 @@ final class AppSettings {
case enableOnlySignedDeviceIsolationMode
case knockingEnabled
case threadsEnabled
case developerOptionsEnabled
}
private static var suiteName: String = InfoPlistReader.main.appGroupIdentifier
@@ -328,6 +329,9 @@ final class AppSettings {
@UserPreference(key: UserDefaultsKeys.threadsEnabled, defaultValue: false, storageType: .userDefaults(store))
var threadsEnabled
@UserPreference(key: UserDefaultsKeys.threadsEnabled, defaultValue: isDevelopmentBuild, storageType: .userDefaults(store))
var developerOptionsEnabled
#endif
// MARK: - Shared