passepartout-apple/Passepartout/App/Constants
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
..
AppContext.swift Persist managers state to generic key-value store 2022-06-16 13:42:37 +02:00
AppPreference.swift Persist managers state to generic key-value store 2022-06-16 13:42:37 +02:00
Constants+Extensions.swift Detect TestFlight on macOS 2022-05-18 11:16:31 +02:00
SwiftGen+Assets.swift Use consistent case in assets 2022-05-19 10:33:36 +02:00
SwiftGen+Strings.swift Group profile actions into menus 2022-04-27 09:53:42 +02:00
Theme.swift Enforce .sidebar on Mac 2022-05-24 09:15:27 +02:00