aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-18iOS: Consolidate all showConfirmationAlert()s into one placeRoopesh Chander4-47/+33
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18iOS: Tunnels list: Ability to remove multiple tunnels at a timeRoopesh Chander2-4/+137
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18iOS: Tunnel edit: Add missing enum valuesRoopesh Chander1-0/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: View model should account for isActivateOnDemandEnabledRoopesh Chander2-4/+4
This is needed to correctly handle NETunnelProviderManager's isOnDemandEnabled property getting changed outside of the app. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Disable selection in SSID detail table viewRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Only n SSIDs / Except m SSIDsRoopesh Chander2-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Show list of SSIDs in a separate screenRoopesh Chander2-6/+84
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: SSIDs view: Always show the selected SSIDs sectionRoopesh Chander2-23/+35
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Remove ActivateOnDemandSetting typeRoopesh Chander2-7/+7
The ActivateOnDemandOption type shall be used instead Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Update on-demand info shown in tunnel edit viewRoopesh Chander2-4/+16
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Tunnel detail: Show SSID infoRoopesh Chander2-8/+37
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Add ability to add current SSIDRoopesh Chander1-5/+71
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Xcode: Add ability to access current SSIDRoopesh Chander1-0/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: iOS: Support for SSIDsRoopesh Chander5-41/+380
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Infrastructure for supporting SSID-based rulesRoopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Simplify OS-specific code for interface type selectionRoopesh Chander1-3/+3
Previously, the enum values themselves were different for iOS and macOS. With this commit, the enum values are common, and only how they're handled is specific to iOS and macOS. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-17ringlogger: support mpsc for singlefileJason A. Donenfeld2-7/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-25Importing: macOS: Support importing of multiple files at a timeRoopesh Chander2-4/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-21iOS: On changing DNS, update AllowedIPs with the current DNS serversRoopesh Chander2-4/+14
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-12Preshared key field in the detail view should just say 'enabled'Roopesh Chander1-0/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-11Info.plist: Localize with InfoPlist.stringsRoopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-10iOS: Rewrite applying runtime configurationRoopesh Chander1-32/+51
To make scrolling smoother while the fields are modified Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-08Global: fix swiftlint issuesJason A. Donenfeld2-6/+13
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-08Key: Constant time encodingJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-08iOS: Tunnel detail: Turn off animation when showing fields changingRoopesh Chander1-1/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-06PrivateDataConfirmation: prompt with touch/face/pin/password ID for viewing/exporting keysJason A. Donenfeld3-19/+27
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-06Keychain: store configurations in keychain instead of providerConfigJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-05iOS: Ensure fields are updated on savingRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-03iOS: SwitchCell should hold the observation tokenRoopesh Chander2-33/+36
And should nil the token when preparing for reuse. This also reverts "iOS: Tunnel detail: Refactor updation of status" Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-03iOS: KeyValueCell should hold the observation tokenRoopesh Chander2-2/+4
And should nil the token when preparing for reuse. Otherwise, the observation closure is still active even after the cell gets reused. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-02iOS: Apply runtime configuration by diff-ingRoopesh Chander1-14/+80
And apply the diff on the tableView as insert/remove/reloads. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-02iOS: Tunnel detail: Keep track of visible fields with a [Bool] arrayRoopesh Chander1-10/+28
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-01iOS: Tunnel detail: Reload runtime config every secondRoopesh Chander1-3/+46
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-31iOS: Tunnel detail: Refactor updation of statusRoopesh Chander1-33/+35
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-31Fix handling of 'PersistentKeepalive: every n seconds'Roopesh Chander1-1/+5
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-31iOS: Make it compile againRoopesh Chander1-0/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-23iOS: Fix stale tunnel being shown on iPadRoopesh Chander2-12/+7
When the detail view is shown in the iPad and we delete the current tunnel with a list view swipe rather than the delete button, the detail view should go blank. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-23iOS: Fix handling of deletion outside appRoopesh Chander2-24/+14
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-22Avoid using return in single-line closuresRoopesh Chander1-1/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-14iOS: Export log: Should present error from the main threadRoopesh Chander1-4/+4
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-14iOS: Refactor importFromFileRoopesh Chander3-48/+8
So that it can be used in macOS as well Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-14Make app groups work on both iOS and macOSRoopesh Chander1-1/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-14iOS: Fix WireGuardiOS targetRoopesh Chander2-0/+142
- Move Info.plist and entitlements to WireGuard/UI/iOS/ Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-14Move iOS images and storyboard into UI/iOS/ folderRoopesh Chander23-0/+219
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-07Update copyrightJason A. Donenfeld16-16/+16
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-24Tunnel edit: Fix crashRoopesh Chander1-1/+2
This fixes a crash that happens when you: 1. Scroll to the end of the Edit screen 2. Delete a peer 3. Toggle the Activate On Demand switch Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-22SwitchCell nitsEric Kuck2-5/+5
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-23Remove more commentsRoopesh Chander5-20/+0
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-22Clean up trailing whitespaceJason A. Donenfeld3-9/+9
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Removing a tunnel from iOS's settings is now immediately reflected in appEric Kuck4-15/+29
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>