Commit Graph

490 Commits

Author SHA1 Message Date
Davide De Rosa d44c8efefe Rename AppConstants.Web to .Services 2019-12-02 10:46:59 +01:00
Davide De Rosa 89b638eaa3 Fix index caching in Core 2019-11-30 12:32:52 +01:00
Davide De Rosa bbd19427d9 Make sure that provider infrastructure exists
Download in wizard if necessary.
2019-11-30 12:08:30 +01:00
Davide De Rosa c1c7587c8c Handle errors in product requests
Update Convenience due to main queue bugs.
2019-11-30 12:08:30 +01:00
Davide De Rosa d302e504df Fall back to placeholder logo 2019-11-30 11:04:16 +01:00
Davide De Rosa 4a659b8f8d Drop old comments 2019-11-30 10:57:17 +01:00
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 0c9242c5d4 Use provider description in guidance footer
Was showing full lowercase.
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 7865f6a697 Omit category title if single AND unnamed 2019-11-21 15:42:14 +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 a4c71d962b Load trusted networks directly 2019-11-21 12:56:57 +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 0657ae3b92 Only show pushed server configuration 2019-11-20 19:21:38 +01:00
Davide De Rosa e8c838c2e1 Add more support URLs 2019-11-20 19:21:20 +01:00
Davide De Rosa ad9f1b625d Refine feedback eligiblity
- Always show "Join community" in Organizer
- Always show "FAQ" above "Report connectivity issue"
2019-11-19 23:53:10 +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 c2dca8f495 Bump version 2019-11-14 11:53:45 +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 06d21067af Move full version first 2019-11-09 18:08:38 +01:00
Davide De Rosa 6e0ad83520 Replace full version description with bullets 2019-11-09 18:08:38 +01:00
Davide De Rosa ebb486b6de Move price out of product title 2019-11-09 18:08:38 +01:00
Davide De Rosa 21c9e160cb Reduce font in purchase screen 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 441b1059cf Ignore interaction if not eligible for shortcuts 2019-11-09 12:32:58 +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 7b8a40cddc Debug current interfaces in beta 2019-11-05 22:13:31 +01:00
Davide De Rosa c0e5db1ff0 Bump version 2019-11-05 22:07:38 +01:00
Davide De Rosa 7251761942 Delay HUD in purchase until appearance
Fixes vertical centering.
2019-11-04 19:43:04 +01:00
Davide De Rosa 46d4b147c8 Fix offset of proxy bypass domains 2019-11-04 12:07:22 +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 41030d2d17 Prepare Info.plist for localization 2019-11-02 12:18:44 +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 02d9d860b3 Use modern notification structure 2019-11-02 11:34:26 +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 1d7cdc7f19 Move trust actions to separate functions 2019-10-28 10:44:51 +01:00
Davide De Rosa 302e281399 Rename dismiss() to close() for consistency 2019-10-28 10:44:51 +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 b5710cd84b Use .current instead of Theme.current
Class name is redundant for static members.
2019-10-25 19:31:02 +02: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 b5b8ad7077 Hide DNS servers/domains if empty 2019-10-25 19:10:07 +02:00
Davide De Rosa d9788d93b6 Handle multiple domains in network settings 2019-10-25 19:10:07 +02:00
Davide De Rosa defda27835 Show multiple search domains in server network 2019-10-25 19:10:07 +02:00
Davide De Rosa 6ad44216fc Refactor single search domain to TunnelKit update 2019-10-25 19:10:06 +02:00
Davide De Rosa 5387f7c597 Use consistent case in pool subtitle 2019-10-23 18:53:27 +02:00
Davide De Rosa dfa711b335 Customize PAC in network settings 2019-10-23 13:08:04 +02:00
Davide De Rosa 18ff4b69a5 Revert Organizer on launch
Status in Organizer is wrong on first launch.
2019-10-23 12:03:41 +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 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 c034a6457c Show Organizer on launch (do not collapse)
Makes sure that service.delegate is always set to Organizer on
launch.
2019-10-22 23:47:19 +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 0c8ccd8cc3 Add FAQ link in Organizer (home) 2019-10-22 14:25:29 +02:00
Davide De Rosa edeec13ccb Mention FAQ on external file error message 2019-10-22 14:22:01 +02:00
Davide De Rosa 2ef67e73c3 Reword location access motivation 2019-10-22 09:35:06 +02:00
Davide De Rosa fdba9f3815 Auto-trust Wi-Fi only when requesting access
Delegate may invoked in other scenarios. Do nothing in that case.
2019-10-21 00:31:31 +02:00
Davide De Rosa 0893a686da Always deselect after add current Wi-Fi 2019-10-21 00:26:52 +02:00
Davide De Rosa 5ae4abf401 Externalize location alert strings 2019-10-21 00:20:04 +02:00
Davide De Rosa 9b96707d5b Improve interaction after changing location auth
- Auto-add Wi-Fi after granting location access
- Show alert when location access is denied

TODO: localize.
2019-10-21 00:18:16 +02:00
Davide De Rosa fbe7d776e7 Request location access for trusted networks
Policy changed in iOS 13.
2019-10-21 00:05:25 +02:00
Davide De Rosa 802a4a4586 Move trust current Wi-Fi to function 2019-10-20 23:55:37 +02:00