Commit Graph

463 Commits

Author SHA1 Message Date
Davide De Rosa c3e6e1ecd5 Move intents to Core target
Suppress responses for consistency.
2019-03-18 17:06:35 +01:00
Davide De Rosa 8a63be8856 Share platform value in Podfile 2019-03-18 17:01:16 +01:00
Davide De Rosa 542f4ac522 Update API 2019-03-18 13:55:15 +01:00
Davide De Rosa 82087eeebb Merge branch 'refactor-core-framework' 2019-03-18 13:55:09 +01:00
Davide De Rosa 5237aa3916 Import Core framework into iOS target 2019-03-18 11:52:19 +01:00
Davide De Rosa f661008679 Make framework internal components public 2019-03-18 11:50:52 +01:00
Davide De Rosa cf499739f7 Export SwiftGen strings as public
Required as part of an external framework.
2019-03-18 11:19:24 +01:00
Davide De Rosa de944acabb Fall back to documents container
Convenient for test target.
2019-03-18 11:19:24 +01:00
Davide De Rosa d983362815 Use relative bundle to locate URL in framework 2019-03-18 11:19:24 +01:00
Davide De Rosa c7f522f55e Create Passepartout-Core framework target
Move all sources to this target, out of Passepartout-iOS.

FIXME: TrustedNetworks uses ServiceViewController.RowType
FIXME: make iOS target depend on Core.
2019-03-18 11:19:24 +01:00
Davide De Rosa 8adc125f9b Merge branch 'migrate-to-app-group-documents' 2019-03-18 10:09:31 +01:00
Davide De Rosa 39fb191309 Log documents migration event
If anything was moved.
2019-03-11 10:17:45 +01:00
Davide De Rosa 9005bf6c19 Skip "Inbox" during migration
No permission.
2019-03-11 10:17:01 +01:00
Davide De Rosa 87249cb8ad Migrate documents to App Group 2019-03-11 10:16:33 +01:00
Davide De Rosa 8ede1ed3d4 Use App Group container for documents and caches 2019-03-11 10:05:54 +01:00
Davide De Rosa 446736851f Merge branch 'refactor-service-updates' 2019-03-11 10:05:38 +01:00
Davide De Rosa 1eca19e96f Update whole views when back from backgorund 2019-03-11 09:55:25 +01:00
Davide De Rosa 1dd3ad18aa Use updateViewsIfNeeded() for consistency 2019-03-11 09:55:25 +01:00
Davide De Rosa 29f34cd206 Report .inactiveProfile on nil GracefulVPN.vpn
Methods:

- reconnect
- reinstall
- disconnect
2019-03-11 09:55:25 +01:00
Davide De Rosa f50cf44bab Switch to active profile on intent update
Better user experience.
2019-03-11 09:55:25 +01:00
Davide De Rosa 439c9c0b0f Set profile directly in GracefulVPN
No need to pass through prepare(). Couple with setProfile() for
robustness.
2019-03-11 09:55:25 +01:00
Davide De Rosa e74ed46ed8 Merge branch 'refine-custom-intents' 2019-03-11 09:55:19 +01:00
Davide De Rosa ba0d3a8010 Use consistent intent logging 2019-03-10 14:14:14 +01:00
Davide De Rosa c8be5d0de6 Donate enable+disable on VPN on/off 2019-03-10 14:14:07 +01:00
Davide De Rosa ab500cccb0 Add EnableVPN intent 2019-03-10 14:14:02 +01:00
Davide De Rosa 9dcd6de873 Always donate a MoveTo when provider 2019-03-10 14:13:30 +01:00
Davide De Rosa b841552121 Do not necessarily reconnect on intent
Trust intents just reinstall VPN profile.
2019-03-10 14:13:30 +01:00
Davide De Rosa 670139d807 Reuse reconnection code 2019-03-10 14:12:34 +01:00
Davide De Rosa 1dc659dbe1 Localize intents definition
And drop redundant ConnectVPN intent subtitle.
2019-03-10 14:11:59 +01:00
Davide De Rosa 7a21338042 Update copyright 2019-03-09 11:44:44 +01:00
Davide De Rosa e8678e4eea Set beta release
Update to recommended project settings.
2019-03-09 11:39:35 +01:00
Davide De Rosa 72f36dd28b
Merge pull request #40 from passepartoutvpn/custom-intents
Custom intents
2019-03-09 11:31:04 +01:00
Davide De Rosa e3a0a10753 Drop another redundant import 2019-03-09 11:30:36 +01:00
Davide De Rosa 5af7103c36 Update CHANGELOG 2019-03-09 11:29:37 +01:00
Davide De Rosa fb5cd52eea Drop redundant import 2019-03-09 11:24:04 +01:00
Davide De Rosa 77c40cb169 Notify intent updates to ServiceVC
Postpone notification until VPN updates.

Fixes the following scenario:

1. Use <foo> profile
2. Send to background
3. Connect to <foo> via shortcut
4. Toggle stays disabled (too early)
2019-03-09 11:24:03 +01:00
Davide De Rosa 5d2450b985 Donate interactions
- Connect on add profile (covers first profile)
- Connect on activate profile
- Disable on connect to VPN
- Trust on add current Wi-Fi
- Trust on cellular network
- MoveTo on first connected location (if provider)
- MoveTo on location change (if provider)
2019-03-09 11:23:50 +01:00
Davide De Rosa 2e4d2162ac Define custom intents
- Connect
- Disable
- (Un)Trust current network
- (Un)Trust cellular network
- Move to location
2019-03-09 11:23:47 +01:00
Davide De Rosa f01027bca5 Add Siri capability 2019-03-09 08:45:48 +01:00
Davide De Rosa 9ace65e607 Update TunnelKit 2019-03-08 13:39:02 +01:00
Davide De Rosa 29c51753fe Update CHANGELOG 2019-03-08 12:59:55 +01:00
Davide De Rosa 5ccdece72b Do not reload views on profile renaming
Use explicit accessor, implicit didSet is worrisome.

Fixes #37
2019-03-08 12:57:51 +01:00
Davide De Rosa 7774143e17 Activate profile before any action
Otherwise GracefulVPN.vpn will always return nil.

Fixes #38
2019-03-08 12:32:45 +01:00
Davide De Rosa c0c8ed3fc9 Hide beta testing section 2019-03-08 11:01:21 +01:00
Davide De Rosa ce3781e3b5 Be more formal about ProfileKey parsing 2019-03-08 10:21:08 +01:00
Davide De Rosa 05daa8f77a Delete log file on start 2019-03-08 09:39:37 +01:00
Davide De Rosa 97d28c0753 Set beta release 2019-03-08 00:03:59 +01:00
Davide De Rosa b50cb4681b Fix stupid parsing of ProfileKey from String
Fixes #19
2019-03-08 00:01:52 +01:00
Davide De Rosa 786d5d2782 Merge branch 'test-file-logging' 2019-03-08 00:01:20 +01:00
Davide De Rosa ccf7a68ba8 Show raw debug log in beta 2019-03-07 23:00:14 +01:00