passepartout-apple/Passepartout/App
Davide De Rosa 14b42fbea5 Persist managers state to generic key-value store
Move all persisted state out of AppManager to where it really
belongs. To do that, inject a shared KeyValueStore object into
managers that need to persist part of their state in a strongly
typed manner.

Below are persisted states:

- PersistenceManager
    - persistenceAuthor

- ProfileManager
    - activeProfileId

- UpgradeManager (formerly AppManager)
    - didMigrateToV2 (migrate former value)

- VPNManager
    - tunnelLogFormat
    - masksPrivateData

A similar approach is used for app-specific preferences, by using
a strongly typed enum (AppPreference) together with SwiftUI
@AppStorage property wrapper.

Worth moving logging logic into a specific LogManager.

Finally, drop any former view dependency on AppManager, as states
are now accessed through specific managers.
2022-06-16 13:42:37 +02:00
..
Assets.xcassets Use consistent case in assets 2022-05-19 10:33:36 +02:00
Constants Persist managers state to generic key-value store 2022-06-16 13:42:37 +02:00
de.lproj Add missing translations 2022-05-01 19:34:43 +02:00
el.lproj Add missing translations 2022-05-01 19:34:43 +02:00
en.lproj Import new translations 2022-04-28 22:47:07 +02:00
es.lproj Add missing translations 2022-05-01 19:34:43 +02:00
Extensions Fix repeating "Default" servers in some providers 2022-04-26 22:12:22 +02:00
fastlane Attempt beta release 2022-05-01 20:44:17 +02:00
Flags.xcassets Merge project into iOS + macOS 2022-04-19 16:14:23 +02:00
fr.lproj Add missing translations 2022-05-01 19:34:43 +02:00
InApp Wrap/refine a few OS conditionals 2022-05-16 11:19:18 +02:00
Intents Use NEHotspotNetwork to fetch current SSID 2022-05-15 22:24:36 +02:00
it.lproj Add missing translations 2022-05-01 19:34:43 +02:00
L10n Update and extend copyright notices 2022-06-16 13:42:21 +02:00
nl.lproj Add missing translations 2022-05-01 19:34:43 +02:00
pl.lproj Add missing translations 2022-05-01 19:34:43 +02:00
Providers.xcassets Merge project into iOS + macOS 2022-04-19 16:14:23 +02:00
pt.lproj Add missing translations 2022-05-01 19:34:43 +02:00
Reusable Simplify a few things of CopySavingButton 2022-05-18 14:10:11 +02:00
ru.lproj Add missing translations 2022-05-01 19:34:43 +02:00
Scripts Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00
Settings.bundle Merge project into iOS + macOS 2022-04-19 16:14:23 +02:00
sv.lproj Add missing translations 2022-05-01 19:34:43 +02:00
Views Persist managers state to generic key-value store 2022-06-16 13:42:37 +02:00
zh-Hans.lproj Add missing translations 2022-05-01 19:34:43 +02:00
App.entitlements Revert "Enable "DNS Settings" capability" 2022-05-04 09:01:27 +02:00
Credits.rtf Add credits in Mac about 2022-05-17 19:57:19 +02:00
Info.plist Fix required capabilities 2022-06-01 21:14:21 +02:00
PassepartoutApp.swift Adjust navigation style to all devices 2022-04-29 19:29:47 +02:00
swiftgen.yml Refactor strings and add new ones 2022-04-22 13:12:42 +02:00