passepartout-apple/Library/Sources/AppUIMain/Views/App
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
..
AddProfileMenu.swift Update library with provider entities (#978) 2024-12-04 12:40:47 +01:00
AppCoordinator+ModalRoute.swift Embrace simplifications in PassepartoutProviders (#975) 2024-12-03 16:18:05 +01:00
AppCoordinator.swift Exclude OpenVPN endpoints (#987) 2024-12-09 02:00:55 +01:00
AppToolbar.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
InstalledProfileView.swift Embrace simplifications in PassepartoutProviders (#975) 2024-12-03 16:18:05 +01:00
OnboardingModifier.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileAttributesView.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileCardView.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileContainerView.swift Fix missing animations in profiles list (#986) 2024-12-09 00:53:46 +01:00
ProfileContextMenu.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfileDuplicateButton.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileFlow.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfileGridView.swift Fix missing animations in profiles list (#986) 2024-12-09 00:53:46 +01:00
ProfileImporterModifier.swift Fix OpenVPN/WireGuard import error messages (#967) 2024-12-01 21:33:58 +01:00
ProfileInfoButton.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileListView.swift Fix missing animations in profiles list (#986) 2024-12-09 00:53:46 +01:00
ProfileRemoveButton.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
ProfileRowView.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00
ProfilesLayoutPicker.swift Move app library to the root (#962) 2024-11-28 17:45:18 +01:00
TunnelRestartButton.swift Handle all connection attempts in AppCoordinator (#968) 2024-12-01 22:34:41 +01:00