passepartout-apple/Passepartout
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
..
App Fix compile errors from #984 2024-12-08 19:02:31 +01:00
Intents Fix extra team prefix in keychain group (#721) 2024-10-11 03:45:20 +02:00
LoginItem Add explicit environment objects to TableColumn (#873) 2024-11-15 01:47:52 +01:00
Shared Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
Tests Localize WireGuard errors (#934) 2024-11-25 11:34:31 +01:00
Tunnel Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
UITests Update SwiftLint/SwiftGen YAML 2024-11-28 19:54:50 +01:00
Config.xcconfig Store complex preferences to Core Data (#981) 2024-12-06 11:24:51 +01:00
Passepartout.xctestplan Fix missing test targets 2024-12-06 15:52:25 +01:00