Roopesh Chander
ae991167f2
macOS: Xcode: Add ablity to save files
2019-01-14 14:52:32 +05:30
Roopesh Chander
50ed363ef2
macOS: Manage tunnels: Tunnel detail view
2019-01-14 14:52:31 +05:30
Roopesh Chander
8d39a2725c
macOS: Manage tunnels window: Tunnels list
2019-01-14 14:52:30 +05:30
Roopesh Chander
c1a5fb7ddd
macOS: Ability to import tunnels from file
...
For now, the open panel shows as a separate window.
Later, we'll open it as a sheet on the 'Manage tunnels' window.
2019-01-14 14:52:30 +05:30
Roopesh Chander
c8b3d5a8ed
iOS: Refactor importFromFile
...
So that it can be used in macOS as well
2019-01-14 14:52:29 +05:30
Roopesh Chander
f5e5fa4d5e
macOS: Create status bar with tunnel names
2019-01-14 14:52:29 +05:30
Roopesh Chander
ee4eae0ade
macOS: Remove MainMenu.xib
...
When there's no xib, we should explicitly set the app delegate, so we
override NSApplication and set the app delegate in NSApplication.shared
2019-01-14 14:52:29 +05:30
Roopesh Chander
c41be2a29d
Make app groups work on both iOS and macOS
2019-01-14 14:52:28 +05:30
Roopesh Chander
c8a8d4ba1e
macOS: Add Network Extensions capability to app
2019-01-14 14:52:28 +05:30
Roopesh Chander
2632ead1bf
iOS: Fix WireGuardNetworkExtensioniOS target
...
- Rename WireGuardNetworkExtension.entitlements to WireGuardNetworkExtension_iOS.entitlements
2019-01-14 14:52:28 +05:30
Roopesh Chander
10ff41cc64
iOS: Fix WireGuardiOS target
...
- Move Info.plist and entitlements to WireGuard/UI/iOS/
2019-01-14 14:52:28 +05:30
Roopesh Chander
3ea00e1f41
macOS: Fix WireGuardmacOS target
...
- Include non-UI code from iOS while building
- Add run scripts
- Move files to WireGuard/UI/macOS
- Set Swift-Obj-C bridging header
2019-01-14 14:52:28 +05:30
Roopesh Chander
966883ea05
macOS: Fix WireGuardNetworkExtensionmacOS target
...
- Build using common network extension code
- Add run scripts
- Set Info.plist to common network extension's Info.plist
- Move entitlements to common network extension folder
- Remove Xcode-generated macOS network extension code
- Set Swift-Obj-C bridging header
2019-01-14 14:52:27 +05:30
Roopesh Chander
548d6bda72
macOS: WireGuardNetworkExtensionmacOS depends on WireGuardGoBridgemacOS
2019-01-14 14:52:27 +05:30
Roopesh Chander
fae6bc6bdf
macOS: Add WireGuardNetworkExtensionmacOS target
2019-01-14 14:52:27 +05:30
Roopesh Chander
46b26a146c
macOS: Add WireGuardmacOS target
2019-01-14 14:52:27 +05:30
Roopesh Chander
1fa38101c5
Xcode: Add WireGuardGoBridgemacOS target
2019-01-14 14:52:27 +05:30
Roopesh Chander
ad502331f0
Move iOS images and storyboard into UI/iOS/ folder
2019-01-14 14:52:27 +05:30
Roopesh Chander
6ec9e94a39
Xcode: Rename iOS targets to include an 'iOS' suffix
...
But keep the PRODUCT_NAME as 'WireGuard', not 'WireGuardiOS'.
2019-01-14 14:52:26 +05:30
Roopesh Chander
8715b66caa
xcconfig: Make app id platform-specific
2019-01-14 14:52:26 +05:30
Roopesh Chander
a380f17974
minizip: Remove zip encryption code
...
We can now remove -DNOCRYPT cflag while compiling
2018-12-25 12:48:04 +05:30
Roopesh Chander
baf99733f5
TunnelStatus: Absorb NEVPNStatus+CustomStringConvertible
2018-12-22 15:46:28 +05:30
Eric Kuck
8fb8d9a9d2
All models now Equatable
2018-12-21 22:57:17 -06:00
Jason A. Donenfeld
30cf9a1d1d
Move model helpers to model directory
2018-12-22 01:36:42 +01:00
Eric Kuck
c62c56da13
providerConfiguration is now a WgQuickConfig
2018-12-21 16:32:08 -06:00
Eric Kuck
d7a27426e9
All migration stuff moved to one gross file
2018-12-21 12:51:14 -06:00
Eric Kuck
f39893685f
Updated NETunnelProvider save format
2018-12-21 16:42:16 +01:00
Roopesh Chander
6b48cb3095
Localize all the things
2018-12-21 18:34:09 +05:30
Eric Kuck
cba41de73a
Added a String->[String] helper
2018-12-20 10:46:26 -06:00
Roopesh Chander
92903e5b63
Error handling: Add info on the underlying system error to error alerts
2018-12-17 19:04:17 +05:30
Eric Kuck
d1825d6b6c
Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertible
2018-12-16 23:51:25 -06:00
Roopesh Chander
6d348ab0e6
Provide mock tunnels for the Simulator
...
To help in generation of screenshots for the App Store
2018-12-16 01:15:10 +05:30
Eric Kuck
66fcdfd13c
KeyValueCells now share code
2018-12-14 20:02:37 -06:00
Eric Kuck
4ae0c4bb17
Reorganized project structure
2018-12-14 17:27:11 -06:00
Eric Kuck
b06a43e2a2
Most similar views now shared between ViewControllers
2018-12-14 17:15:22 -06:00
Eric Kuck
a8cbe0d683
Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes)
...
All swiftlint warnings except one fixed up
2018-12-13 12:58:50 -06:00
Roopesh Chander
03680bf3c9
Remove unused code: InternetReachability
2018-12-13 23:45:21 +05:30
Roopesh Chander
3520ad13e7
Logging: Use ringlogger for logging from the extension
2018-12-13 17:37:14 +05:30
Roopesh Chander
3f2e332c27
mv WireGuard/WireGuard/VPN/ WireGuard/WireGuard/Tunnel/
2018-12-13 12:14:21 +05:30
Eric Kuck
965f66e5e2
More linter warnings fixed, enabled more swiftlint rules, project cleanup
2018-12-12 15:33:14 -06:00
Eric Kuck
fa558a4019
Added swiftlint and fixed all errors (and a bunch, but not all, warnings)
2018-12-12 11:40:57 -06:00
Roopesh Chander
8d58a79272
Error handling: Introduce a WireGuardResult type to handle errors in callbacks across the app
2018-12-07 12:36:19 +05:30
Roopesh Chander
5aee6f5753
Error handling: Introduce a WireGuardAppError protocol to manage errors
...
The alert strings shall be located next to where the errors are declared.
2018-12-07 12:36:19 +05:30
Roopesh Chander
5764fa4930
NE: Logging: Log file should begin with version numbers and tunnel name
2018-12-07 12:36:19 +05:30
Roopesh Chander
981b86d357
VPN: Error out when tunnel activation fails because there's no internet
2018-12-03 18:51:42 +05:30
Roopesh Chander
67268a0ce5
NE: Write log to file
2018-11-30 00:36:33 +05:30
Roopesh Chander
41aca352a7
Xcode: Add app groups capability
2018-11-29 12:01:45 +05:30
Roopesh Chander
6857a579b3
Exporting: Refactor out zip exporting into a separate class
2018-11-15 13:39:56 +05:30
Roopesh Chander
b2b2818e2e
Importing: Refactor out zip importing into a separate class
2018-11-14 18:52:10 +05:30
Roopesh Chander
c0eb34c755
Model, Tunnels manager: Rewrite the model for VPN-on-demand
...
The VPN-on-demand settings should not be part of the tunnel
configuration. Rather, the onDemandRules stored in the
tunnel provider configuration serve as the one place
where the VPN-on-demand settings are stored.
2018-11-12 19:24:13 +05:30
Roopesh Chander
75474acb59
Model: ActivityType enum to represent VPN-on-demand options
2018-11-10 19:17:24 +05:30
Roopesh Chander
c9c58f3755
NE: When there's an error starting the tunnel, show it to the user using displayMessage()
2018-11-09 17:07:42 +05:30
Roopesh Chander
fffaba451a
Remove unused file PacketTunnelOptionKey.swift
2018-11-08 18:59:16 +05:30
Roopesh Chander
e83af4bce5
Move logic to extension: NETunnelProviderProtocol extension code should be shared
2018-11-08 17:52:01 +05:30
Roopesh Chander
80e563406b
Move logic to extension: Refactor PacketTunnelOptionsGenerator into a PacketTunnelSettingsGenerator
2018-11-08 15:44:13 +05:30
Roopesh Chander
13eebb2e64
Move logic to extension: Move DNSResolver to extension
2018-11-08 15:09:45 +05:30
Roopesh Chander
6e5b691a83
Move logic to extension: Include shared model code when building the extension
2018-11-08 14:50:05 +05:30
Roopesh Chander
de92f2dcd8
Move logic to extension: Move PacketTunnelOptionsGenerator to the extension
2018-11-08 14:16:30 +05:30
Roopesh Chander
f438f3ef6b
Move logic to extension: Move model files to Shared
2018-11-08 13:56:50 +05:30
Jason A. Donenfeld
2a7aa578d2
Xcode: enable more warnings
2018-11-06 16:27:25 +01:00
Roopesh Chander
5ea1c5aea8
Tunnel detail: Refactor out the label scrolling into a separate UI class
2018-11-06 16:49:09 +05:30
Jason A. Donenfeld
12a4acef61
global: convert to Swift 4.2
2018-11-05 06:31:25 +01:00
Jason A. Donenfeld
54cfa3dba3
XCode: use old network extension ID
2018-11-04 05:42:25 +01:00
Jason A. Donenfeld
1f7aaaa233
XCode: unify version strings
2018-11-04 03:51:50 +01:00
Roopesh Chander
2abcba8031
Add document icon
2018-11-02 17:39:43 +05:30
Roopesh Chander
02ff2f783c
VPN: An ErrorPresenter class to consolidate showing of error alerts
2018-11-01 11:45:44 +05:30
Jason A. Donenfeld
d75a89c09a
wireguard-go-bridge: extract version for consumption by network extension
2018-10-31 04:08:13 +01:00
Jason A. Donenfeld
34b9023f67
UI: More elegant copy-to-clipboard behavior
2018-10-31 02:17:47 +01:00
Jason A. Donenfeld
896ed2b33d
XCode: fall back to default settings
2018-10-30 03:54:00 +01:00
Roopesh Chander
22dd3dcc40
Export: Exporting config files
2018-10-29 23:06:55 +05:30
Roopesh Chander
d63ee03d66
mv Parsing/ ConfigFile/
2018-10-29 19:05:01 +05:30
Roopesh Chander
742da89df3
Settings: Add a settings panel
2018-10-29 17:34:09 +05:30
Roopesh Chander
b060b9ff06
Zip: Import configs from zip files
2018-10-29 01:52:43 +05:30
Roopesh Chander
2d41591cfd
Zip: Add zip file reader
2018-10-29 01:51:49 +05:30
Roopesh Chander
3a58dd9481
Zip: Include minizip in our Xcode project
2018-10-29 01:03:53 +05:30
Roopesh Chander
153c11c42c
QR code: Integrate Eric's QR code scanner
2018-10-28 22:22:32 +05:30
Roopesh Chander
924b824af4
Xcode: Disable bitcode
...
Enabling bitcode generates a linker error when linking with libwg-go.a
2018-10-27 19:07:16 +05:30
Roopesh Chander
7433634b66
VPN: Bring up the tunnel
...
The app figures out all settings and passes them in the
'options' parameter of startTunnel().
The network extension just takes them as is and just plugs the supplied
values into the right places.
2018-10-27 19:07:16 +05:30
Roopesh Chander
be25d9d491
Xcode: Make Xcode build libwg-go.a automatically
...
This is based on Jeroen Leenarts' work (commit a3cdb84
)
and Jason Donenfeld's work (commit 9d01829
).
To reproduce:
In Xcode, add a new target called 'WireGuardGoBridge' with
the Cross-platform > External build system template. Configure
that target with the 'make' build tool and ask it to build on the
wireguard-go-bridge directory.
The Makefile in wireguard-go-bridge is already configured to
handle being called from Xcode as an external build system.
In WireGuardNetworkExtension's build phases, add a dependancy to
WireGuardGoBridge, and ask it to link to libwg-go.a (the make command
shall generate this archive). Add libwg-go.a as a library to be linked
with.
Edit the Xcode pbxproj file and in the file reference entry for
libwg-go.a, set path as "libwg-go.a" and sourceTree as
BUILT_PRODUCTS_DIR.
2018-10-27 19:07:16 +05:30
Roopesh Chander
0f92228136
NE: Add bridging header
2018-10-27 19:07:16 +05:30
Roopesh Chander
b41c6b49d5
NE: Include the network extension in the project
2018-10-27 19:07:16 +05:30
Roopesh Chander
373adc578c
VPN: DNSResolver: A class that does DNS resolution using getaddrinfo
2018-10-27 19:07:16 +05:30
Roopesh Chander
f6620fed9a
Import: Support for importing a config file from file providers
2018-10-27 15:13:02 +05:30
Roopesh Chander
ab3fab4024
Config file: Parsing a wg-quick config file
2018-10-27 15:13:01 +05:30
Roopesh Chander
1f166c8d3e
Crypto: Swift wrapper for the Curve25519 C code
2018-10-27 15:13:01 +05:30
Roopesh Chander
c68c214cbf
Crypto: Add Curve25519 C code to project
2018-10-27 15:13:01 +05:30
Roopesh Chander
a8138efefe
Tunnel detail: Start off with the tunnel detail view
2018-10-27 15:13:01 +05:30
Roopesh Chander
bebbaeaa93
Model for DNS server
2018-10-27 15:13:01 +05:30
Roopesh Chander
0fa97c38ed
Tunnel creation: Refactor by creating a separate view model
2018-10-27 15:13:01 +05:30
Roopesh Chander
bbd13ad4cf
Tunnel creation: Start off with tunnel creation
2018-10-27 15:13:01 +05:30
Roopesh Chander
7482ee8cf5
Model for an endpoint
2018-10-27 15:13:01 +05:30
Roopesh Chander
b690de0d14
VPN: Add TunnelsManager to manage the tunnels in the app
2018-10-27 15:13:01 +05:30
Roopesh Chander
66307fd3c5
Bump deployment target to iOS 12.0
2018-10-27 15:13:01 +05:30
Roopesh Chander
0948363d5b
Model for an IP Address range
2018-10-27 15:13:01 +05:30
Roopesh Chander
995320b958
Models for tunnel, interface and peer
2018-10-27 15:13:01 +05:30
Roopesh Chander
0c7321e923
Use a split-view controller as the main (root) view controller
2018-10-27 15:13:01 +05:30
Roopesh Chander
887678bbf9
Move UI code into a separate platform-specific folder
...
Later, we hope to have a UI/macOS folder for developing a macOS client
from this codebase.
2018-10-27 15:13:01 +05:30
Roopesh Chander
be06f33acc
Use APP_ID in xcconfig rather than PRODUCT_BUNDLE_IDENTIFIER
...
This is required because when we add an app extension to the
project, there will be two PRODUCT_BUNDLE_IDENTIFIER fields
in our project file, so we cannot use xcconfig to set that
key directly.
2018-10-27 15:13:01 +05:30
Roopesh Chander
62987e7a32
Enable Network Extensions capability
2018-10-27 15:13:01 +05:30
Roopesh Chander
c33cf18a2f
Move App ID to Developer.xcconfig as well
2018-10-27 15:13:01 +05:30