passepartout-apple/Library/Sources
Davide fae0200995
Exclude OpenVPN endpoints (#987)
Exclude endpoints from OpenVPN modules and providers with the generic
Blacklist<T> observable. Eventually, rebuild the Profile in
PacketTunnelProvider (via DefaultTunnelProcessor) with the applied
exclusions from preferences.

Revisit approach to preferences:

- Module preferences
  - Tied to the module and therefore to the parent profile
- Load/save in ProfileEditor on request (rather than on
ProfileEditor.load)
- Provider preferences
  - Shared globally across profiles
  - Load/save in module view if needed

For more consistency with Core Data:

- Revert to observables for both module and provider preferences
- Treat excluded endpoints as relationships rather than a serialized
Array
- Add/remove single relationships over bulk delete + re-add
- Do not map the relationships, Blacklist only needs exists/add/remove:
  - isExcludedEndpoint
  - addExcludedEndpoint
  - removeExcludedEndpoint

Some clean-up:

- Move the importer logic to OpenVPNView.ImportModifier
- Move the preview data to OpenVPN.Configuration.Builder.forPreviews
- Drop objectWillChange.send() on .repository didSet to avoid potential
recursion during SwiftUI updates

Closes #971
2024-12-09 02:00:55 +01:00
..
AppData Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
AppDataPreferences Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
AppDataProfiles Store complex preferences to Core Data (#981) 2024-12-06 11:24:51 +01:00
AppDataProviders Handle load/save preferences inside ProfileEditor (#982) 2024-12-08 16:05:23 +01:00
AppUI Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
AppUIMain Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
AppUIMainWrapper Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
AppUITV Handle load/save preferences inside ProfileEditor (#982) 2024-12-08 16:05:23 +01:00
AppUITVWrapper Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
CommonAPI Bump version 2024-12-04 14:21:29 +01:00
CommonIAP Redesign confusing paywall (#973) 2024-12-02 10:40:25 +01:00
CommonLibrary Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
CommonUtils Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
LegacyV2 Embrace simplifications in PassepartoutProviders (#975) 2024-12-03 16:18:05 +01:00
PassepartoutImplementations Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
UILibrary Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
UITesting Move app library to the root (#962) 2024-11-28 17:45:18 +01:00