Commit Graph

34 Commits

Author SHA1 Message Date
Davide De Rosa 93b0a02568 Update copyright 2020-12-27 17:36:48 +01:00
Davide De Rosa 0acef41a7f Share import logic between browser and imported 2020-07-23 11:51:50 +02:00
Davide De Rosa 2485c5b588 Simplify import .ovpn from Files
- Browse files directly from Organizer
- Add "Import new host" entry to open imported hosts
2020-07-23 11:51:50 +02:00
Davide De Rosa 9a807d16b3 Update copyright clause 2020-01-11 09:30:46 +01:00
Davide De Rosa 6e46757d99 Verify feature/provider eligibility
Limit hosts to 2.
2019-10-31 09:36:09 +01:00
Davide De Rosa 70a7bd02d7 Parse and import configuration URL from picker 2019-10-22 23:58:31 +02:00
Davide De Rosa 9bff8629b3 Present picker for .ovpn files
Do not auto-dismiss anymore if no imported files available.

XXX: use generic file types due to idiotic iOS 13 bug still unfixed.
2019-10-22 23:58:31 +02:00
Davide De Rosa a8f37cfd82 Add item to open configuration file 2019-10-22 23:58:31 +02:00
Davide De Rosa d550461c60 Deselect imported host row regardless 2019-10-22 23:04:39 +02:00
Davide De Rosa 68da29474b Refactor import logic into HostImporter
Cover the parsing steps + passphrase. Leave name and credentials
as is.
2019-10-22 23:03:46 +02:00
Davide De Rosa 2cd6677e16 Replace with Convenience entities
- About
- Alerts
- Dialogs
- InApp
- Reviewer
- SingleOptionViewController
- StrongTableModel
2019-10-11 12:43:05 +02:00
Davide De Rosa f543b0d753 Do not delete imported host on error
Could be an app bug or something to be implemented in the future.
2019-07-08 08:44:54 +02:00
Davide De Rosa 282728ae1e Move app-related strings in
Move Core strings to app target.

SwiftGen uses same bundle by default. No problem because Core
does not (and should not) any string internally.
2019-06-23 00:11:56 +02:00
Davide De Rosa 84eb9d09c4 Rename Core targets
Fix import in Core umbrella header.
2019-05-27 00:13:33 +02:00
Davide De Rosa 87527ed290 Upgrade to TunnelKit 2.0
Major reorganization. No changes in logic.

Rename by_* to pod_*.
2019-05-25 18:29:10 +02:00
Davide De Rosa ab5517dcba Rename ParsingResult to Result
From ConfigurationParser in TunnelKit.
2019-04-04 19:26:08 +02:00
Davide De Rosa b459495e90 Reuse controller title 2019-03-27 21:08:36 +01:00
Davide De Rosa f3e6c34bd1 Customize block on passphrase input cancellation
Do not delete .ovpn file when importing from iTunes.
2019-03-25 20:33:17 +01:00
Davide De Rosa 8f0e28e315 Forward input passphrase to parser 2019-03-25 20:33:17 +01:00
Davide De Rosa dc81356b31 Retry import after passphrase input
Isolate .ovpn parsing routines.

- AppDelegate (external URL)
- ImportedHosts

Only delete URL if error is not encryption passphrase.
2019-03-25 20:33:07 +01:00
Davide De Rosa 5237aa3916 Import Core framework into iOS target 2019-03-18 11:52:19 +01:00
Davide De Rosa 7a21338042 Update copyright 2019-03-09 11:44:44 +01:00
Davide De Rosa 3d5c2bb8f5 Move .ovpn parser to TunnelKit 2018-11-10 11:39:36 +01:00
Davide De Rosa 9e7c4960e5 Update GitHub URL in license preamble 2018-11-04 10:53:16 +01:00
Davide De Rosa 326c5b823d Observe wizard creation via notifications
Flow is too scattered to safely maintain delegation.
2018-10-27 20:11:26 +02:00
Davide De Rosa b7dc72a5e9 Sort hosts ignoring case 2018-10-27 16:56:41 +02:00
Davide De Rosa ad063965da Retain back button in import flow 2018-10-27 15:01:51 +02:00
Davide De Rosa 0f43255676 Show warning alert before continuing import
Fixes #16
2018-10-27 15:01:51 +02:00
Davide De Rosa 4098a15172 Allow deletion of imported profiles 2018-10-27 12:43:26 +02:00
Davide De Rosa 5dcc9ff970 Sort imported profiles alphabetically 2018-10-27 12:43:26 +02:00
Davide De Rosa 7b7804091b Deselect profile row on parsing error 2018-10-27 12:43:26 +02:00
Davide De Rosa 663764177a Forward wizard delegate after import
Necessary to delegate adding to organizer.
2018-10-27 12:43:26 +02:00
Davide De Rosa 0e7c0b6388 List imported .ovpn if any, fall back to alert
Use .formSheet presentation (iPad).
2018-10-27 12:43:26 +02:00
Davide De Rosa 25523b5f61 Add stubs for imported hosts 2018-10-27 12:43:26 +02:00