Commit Graph

146 Commits

Author SHA1 Message Date
Davide De Rosa
f936cffe5e Finish up ProductManager implementation
- Reload receipt on updated transactions (e.g. promo code)
- Implement restore purchases (refresh receipt before restoring)
2019-10-31 09:35:58 +01:00
Davide De Rosa
026a94065c Read features from app store receipt
- Use Kvitto to parse App Store receipt
- Infer feature/provider eligibility from features
- Assume full version in beta
- Read receipt even if no products were purchased
2019-10-31 09:32:25 +01:00
Davide De Rosa
e62aae16fc Add new in-app purchases
- Rename Donation to Product accordingly
- Infer product from provider name
2019-10-30 15:21:37 +01:00
Davide De Rosa
aea5dc330c Reuse delay() function as global macro 2019-10-28 09:55:18 +01:00
Davide De Rosa
5f3ebfd9fe Drop VersionViewController
Reuse from Convenience.
2019-10-28 09:53:32 +01:00
Davide De Rosa
03649b56f3 Use theme accent for cell checkmarks
Probably a regression after Convenience integration.
2019-10-25 19:31:01 +02:00
Davide De Rosa
d9788d93b6 Handle multiple domains in network settings 2019-10-25 19:10:07 +02:00
Davide De Rosa
e0a9fadac4 Add server network screen 2019-10-23 11:59:30 +02:00
Davide De Rosa
458041bdc8 Add cells to disclose server settings
TODO: server network.
2019-10-23 11:19:00 +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
edeec13ccb Mention FAQ on external file error message 2019-10-22 14:22:01 +02:00
Davide De Rosa
5ae4abf401 Externalize location alert strings 2019-10-21 00:20:04 +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
95f5ae8733 Comply with iOS 13 Dark Mode
Fixes #93
2019-09-11 09:25:02 +02:00
Davide De Rosa
f90a84f1a4 Reuse Issue from Core 2019-09-05 22:50:56 +02:00
Davide De Rosa
a8a8cdd027 Update Core 2019-09-05 12:04:29 +02:00
Davide De Rosa
3b9e3879ca Move InAppHelper to Core 2019-08-16 00:24:05 +02:00
OnlyThen
cea4aad60f Add Simplified Chinese Translaion 2019-08-10 11:26:47 +08:00
Davide De Rosa
d6fc6a2f47 Comment Dark Mode themes out
Dark Mode cannot be enabled until iOS 13 release, because the
App Store rejects binaries built with Beta SDKs.

Uncomment when rebuilding with iOS 13 SDK.

See #93
2019-07-28 17:08:43 +02:00
Davide De Rosa
4c591fc6f4 Adjust theme to future iOS 13 Dark Mode
Update provider logos where adequate:

- NordVPN (use white on dark)
- ProtonVPN (use green)
2019-07-28 17:06:34 +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
41ed10e76e Fall back to mailto URL when no email account
Useful with third party mail apps.
2019-07-05 11:11:22 +02:00
Davide De Rosa
ac071cf6ec Move "Reconnect" string to Core 2019-07-04 10:50:14 +02:00
Davide De Rosa
50a458f151 Add missing LZO error handling 2019-06-28 10:23:52 +02:00
Davide De Rosa
40a7ac56f7 Move some strings to Core 2019-06-23 10:33:43 +02:00
Davide De Rosa
42e2c83eb5 Move platform-specific extensions around 2019-06-23 00:17:37 +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
f546ca33ae Update TunnelKit with gateway fixes 2019-05-11 17:43:30 +02:00
Davide De Rosa
c6fbdca342 Move network settings to ad-hoc screen
Can now set gateway/DNS/proxy settings explicitly.

- Read from .ovpn (hosts only)
- Pull from server (PUSH_REPLY)
- Set manually
2019-05-01 23:00:28 +02:00
Davide De Rosa
ba8afd9ad7 Move changelog/credits to About main screen 2019-04-26 18:23:07 +02:00
Davide De Rosa
d9a0ebd923 Upgrade API to v2 (entities) 2019-04-25 21:30:43 +02:00
Davide De Rosa
3b1b34f15c Detect missing VPN routing info 2019-04-19 09:55:26 +02:00
Davide De Rosa
2088795a9c Add NordPVN provider 2019-04-11 19:11:03 +02:00
Davide De Rosa
8203bc99f8 Import downloaded resources into provider cache
Show message in HUD while extracting files
2019-04-11 19:01:59 +02:00
Davide De Rosa
35605ba89f Download resource with progress HUD 2019-04-11 19:01:59 +02:00
Davide De Rosa
4add7a695c Migrate to Swift 5
Last time was probably incomplete.
2019-04-11 16:51:12 +02:00
Davide De Rosa
fca1aee73e Use form sheet presentation in more vcs
- Shortcuts
- Mail composers

BEWARE: viewDidAppear is NOT called, move code to dismiss callback.
2019-04-09 11:01:11 +02:00
Davide De Rosa
bb299335ad Add activity cell 2019-04-08 22:59:24 +02:00
Davide De Rosa
b745e37671 Drop redundant color prefix in Palette fields 2019-04-08 22:45:46 +02:00
Davide De Rosa
e68c46d729 Set email subjects statically
App name is constant.
2019-04-07 16:56:38 +02:00
Davide De Rosa
77ce52ac33 Do not localize email templates
Risk is not understanding them!
2019-04-07 16:30:38 +02:00
Davide De Rosa
d13f813236 Add email template to offer as translator 2019-04-07 16:20:15 +02:00
Davide De Rosa
70863da4ab Add method to purchase a product 2019-04-07 15:29:10 +02:00
Davide De Rosa
724a4bc10a Request products in separate class 2019-04-07 15:29:10 +02:00
Davide De Rosa
26453f9612 Add donation view controller 2019-04-07 15:29:10 +02:00
Davide De Rosa
895c19328e Add in-app donation identifiers 2019-04-07 15:29:10 +02:00
Davide De Rosa
920c704359 Externalize About storyboard 2019-04-07 08:52:16 +02:00
Davide De Rosa
36ee076c9c Add ProtonVPN provider 2019-04-06 20:25:26 +02:00
Davide De Rosa
6503e3e015 Scroll to selected option 2019-04-06 16:20:01 +02:00
Davide De Rosa
03dd33852b Drop OptionViewControllerDelegate, use blocks 2019-04-06 16:20:01 +02:00
Davide De Rosa
00a4fe9a74 Fix SwiftGen after Countries -> Flags 2019-04-05 16:12:56 +02:00
Davide De Rosa
7d417e14ee Add pool country flags 2019-04-05 11:59:39 +02:00
Davide De Rosa
b9de756253 Move provider logos to own assets 2019-04-05 10:17:29 +02:00
Davide De Rosa
f97b8447d9 Show provider logos in Organizer and Wizard 2019-04-05 00:52:36 +02:00
Davide De Rosa
97db759242 Drop empty space between Account sections
Reuse code for heightForHeader.
2019-04-04 19:53:41 +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
1904687a22 Upgrade to TunnelKit 1.6.0
- Make cipher/digest/compressionFraming optional
- Move endpointProtocols inside SessionProxy.Configuration
- Rename OptionsError to ConfigurationError
2019-04-04 19:03:53 +02:00
Davide De Rosa
ae88fdfad6 Rename shortcut manager vc 2019-03-27 22:09:08 +01:00
Davide De Rosa
d5b7a1e576 Show existing Siri shortcuts as first controller 2019-03-27 21:08:51 +01:00
Davide De Rosa
baff0435e8 Mask encryption passphrase input 2019-03-26 11:23:49 +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
15602f7dc9 Pick profile/location for connection intent
- Host: ConnectVPN intent
- Provider: requires Pool selection
2019-03-18 22:13:36 +01:00
Davide De Rosa
1c103c639d Add shortcuts view controller stub 2019-03-18 20:54:47 +01:00
Davide De Rosa
5237aa3916 Import Core framework into iOS target 2019-03-18 11:52:19 +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
7a21338042 Update copyright 2019-03-09 11:44:44 +01:00
Davide De Rosa
f335440800 Shut down if server pushes a compression directive 2019-02-25 23:13:12 +01:00
Davide De Rosa
534f1e2094 Show activity indicator while loading license 2018-12-04 10:34:38 +01:00
Davide De Rosa
3d5c2bb8f5 Move .ovpn parser to TunnelKit 2018-11-10 11:39:36 +01:00
Davide De Rosa
c1065751b6 Add method to parse configuration from [String]
With an optional original URL. Helps testing. Take the chance to
also disambiguate method overloads.
2018-11-04 11:45:19 +01:00
Davide De Rosa
9e7c4960e5 Update GitHub URL in license preamble 2018-11-04 10:53:16 +01:00
Davide De Rosa
b051f8118f Add "Edit" item to rename host profile
Disabled in network profiles. Reuse same title style/constraints
and message strings in host wizard.

For consistency, rename activate() to activateProfile(). And it's
not even an IBAction.
2018-11-02 15:52:36 +01:00
Davide De Rosa
2564f2446d Show disclaimer from website 2018-10-29 21:25:22 +01:00
Davide De Rosa
fec2f02df5 Move Credits inside Version 2018-10-29 21:25:06 +01:00
Davide De Rosa
0d49d1abc8 Upgrade SwiftGen 2018-10-28 14:50:12 +01:00
Davide De Rosa
0f43255676 Show warning alert before continuing import
Fixes #16
2018-10-27 15:01:51 +02:00
Davide De Rosa
8d2ce2e7ae Handle potentially unsupported as a warning alert
Configuration is imported anyway, so alert must be asynchronous.
2018-10-27 14:57:37 +02:00
Davide De Rosa
05d745ad6d Remove unused code 2018-10-27 13:35:21 +02:00
Davide De Rosa
25523b5f61 Add stubs for imported hosts 2018-10-27 12:43:26 +02:00
Davide De Rosa
8c1e6d00ca Parse .ovpn file outside of wizard context 2018-10-27 12:33:17 +02:00
Davide De Rosa
422c4da09c Move ParsedFile out of WizardHostVC 2018-10-27 12:08:44 +02:00
Davide De Rosa
4b075bcc95 Improve alerts on configuration import error
Issue reporting is currently disabled because un unparsed .ovpn
may contain sensitive data.
2018-10-27 09:43:57 +02:00
Davide De Rosa
c7639daf0d Strip configuration file before attaching
Of sensitive or private data.
2018-10-27 09:42:41 +02:00
Davide De Rosa
dfde9c51e3 Fine-grain report attachments
- Debug log
- .ovpn profile (if any)
2018-10-27 09:42:41 +02:00
Davide De Rosa
ebbba3a713 Update TunnelKit to handle new error codes 2018-10-23 23:51:50 +02:00
Davide De Rosa
e8f2aaaf08 Show tunnel failure reason in VPN status 2018-10-22 21:49:43 +02:00
Davide De Rosa
23e27535c6 Split support requests
- Generic support on Reddit
- Debug log via email
2018-10-18 16:40:58 +02:00
Davide De Rosa
b93000819b Reuse Credits VC to add a Disclaimer 2018-10-18 10:19:08 +02:00
Davide De Rosa
62d1c2d882 Add promoting alert for subreddit 2018-10-18 10:04:23 +02:00
Davide De Rosa
ac06d2ccde Group accessory color with less alpha 2018-10-15 00:12:37 +02:00
Davide De Rosa
5c0738b136 Apply accent color to accessory checkmarks 2018-10-15 00:11:46 +02:00
Davide De Rosa
b9ec01945d Initial commit 2018-10-11 09:13:19 +02:00