Commit Graph

190 Commits

Author SHA1 Message Date
Davide De Rosa
1619c7f46c Use placeholder when provider logo is missing
So far it's what happens for dynamically added providers, because
there is no local asset.
2019-11-28 11:44:39 +01:00
Davide De Rosa
28a7dcdcf7 Update providers via web service
Reload products after update. Always re-list products!

Had to fix web services in Convenience, completion handler not
invoked from main queue.
2019-11-28 11:34:01 +01:00
Davide De Rosa
e5325cea7e Make in-app product identifiers dynamic 2019-11-28 11:33:53 +01:00
Davide De Rosa
d4977f499a Add "Update list" stub in provider wizard 2019-11-28 11:27:23 +01:00
Davide De Rosa
97f458385c Update to API v3
- Dynamic providers
- Add index.json to API
2019-11-28 09:57:34 +01:00
Davide De Rosa
d43acb8593 Display informational footer on empty favorites 2019-11-21 15:42:22 +01:00
Davide De Rosa
05697b12cc Use primary color for normal actions 2019-11-21 15:42:14 +01:00
Davide De Rosa
9c916b335e Highlight item when in favorites 2019-11-21 15:42:14 +01:00
Davide De Rosa
b88eedc42c Manage favorites through swipe 2019-11-21 15:42:05 +01:00
Davide De Rosa
2c4dea7b43 Configure trusted networks in profile 2019-11-21 09:55:44 +01:00
Davide De Rosa
1fd2d18653 Refactor trusted networks code 2019-11-21 09:15:24 +01:00
Davide De Rosa
70783f9dda Reuse Credits from Convenience 2019-11-20 23:14:19 +01:00
Davide De Rosa
d8ef4f96e0 Fix text size in purchase cells 2019-11-20 20:00:51 +01:00
Davide De Rosa
3c2df0c6e5 Use Dynamic Type in labels 2019-11-20 19:36:56 +01:00
Davide De Rosa
816c7ca575 Use Dynamic Type in cells
Also fix activity cell layout.
2019-11-20 19:36:53 +01:00
Davide De Rosa
8f3d69fc4c Move FAQ about report issue
Reuse visiURL() as global macro.
2019-11-19 23:38:37 +01:00
Davide De Rosa
99da23de8e Simulate full version through scheme arguments 2019-11-19 23:38:04 +01:00
Davide De Rosa
bacd510345 Create modal presentation theme 2019-11-19 23:20:22 +01:00
Davide De Rosa
39ff0e3093 Drop redundant title themes 2019-11-19 23:17:55 +01:00
Davide De Rosa
1578b82beb Refine in-app related strings
XXX: Google Translate
2019-11-19 23:13:00 +01:00
Davide De Rosa
4ee56d8e7b Clean up IAP receipt loop 2019-11-09 18:29:50 +01:00
Davide De Rosa
2c6033f20a Translate new strings
XXX: Google Translate
2019-11-09 18:17:34 +01:00
Davide De Rosa
6e0ad83520 Replace full version description with bullets 2019-11-09 18:08:38 +01:00
Davide De Rosa
7510839804 Add important clarifications below paid products 2019-11-09 18:08:38 +01:00
Davide De Rosa
63bd33aa4e Iterate feature-based products 2019-11-09 18:08:38 +01:00
Davide De Rosa
e704c7fe6c Reinstant hide deleted profile after review
Also, viewWillAppear() is too early. If profile deletion happens
on launch, ServiceVC will not be aware of the change until
viewDidAppear().
2019-11-09 13:21:37 +01:00
Davide De Rosa
495e714737 Revert refunded features on launch 2019-11-09 12:53:36 +01:00
Davide De Rosa
2d0680db54 Handle cancellationDate when parsing features 2019-11-09 12:18:31 +01:00
Davide De Rosa
08ff3d01dc Attach provider info to connectivity issue 2019-11-07 15:14:09 +01:00
Davide De Rosa
05dd40939d Move some flags into app 2019-11-04 10:05:38 +01:00
Davide De Rosa
72d8ffb8f6 Add forgotten "Add domain" string
XXX: Google Translate
2019-11-02 17:48:52 +01:00
Davide De Rosa
c8e06faaaa Add in-app translations
XXX: Google Translate before real translators.
2019-11-02 17:48:52 +01:00
Davide De Rosa
3046f0a6a8 Add new translations
XXX: patch late with Google Translate

- de
- fr
- ru
- zh-Hans
2019-11-02 17:48:48 +01:00
Davide De Rosa
0b23f011c4 Add specific flag to assume full version in beta
To skip in-app testing.
2019-11-02 11:46:16 +01:00
Davide De Rosa
c938023483 Infer beta build from App Store receipt URL 2019-11-02 11:42:33 +01:00
Davide De Rosa
f9093715a8 Reload affected tables on reload receipt 2019-11-02 11:28:35 +01:00
Davide De Rosa
ebbcaa674b Restrict "Feedback" sections to beta/paying users
Act as a rudimental spam filter.
2019-11-02 11:21:32 +01:00
Davide De Rosa
14edeab889 Fix license header 2019-11-02 11:19:16 +01:00
Davide De Rosa
a9065bf9b7 Move Flags from Core to app 2019-11-02 11:18:43 +01:00
Davide De Rosa
5a7adf0721 Interpret originalAppVersion as build number 2019-11-01 16:17:30 +01:00
Davide De Rosa
b77f677671 Present purchase as full screen 2019-11-01 16:17:30 +01:00
Davide De Rosa
1e6c5ba91b Design purchase screen
- Required product
- Full version
- Restore purchases
2019-11-01 16:17:30 +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
e99cc3669d Add stubs for purchase screen
With macro for presenting it everywhere.
2019-10-31 09:36:08 +01:00
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