Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix confusing indentation | Jason A. Donenfeld | 2018-12-15 | 1 | -3/+1 | |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | |||||
* | KeyValueCells now share code | Eric Kuck | 2018-12-14 | 8 | -374/+192 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | Reorganized project structure | Eric Kuck | 2018-12-14 | 17 | -0/+1 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | Most similar views now shared between ViewControllers | Eric Kuck | 2018-12-14 | 22 | -380/+172 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | Simplify logging tags | Jason A. Donenfeld | 2018-12-14 | 2 | -2/+2 | |
| | | | | | | | This was roop's initial idea, and it turns out to be the better one, now that we can pass cstrings more easily. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | |||||
* | Fix status switch weird state after an error occurs | Roopesh Chander | 2018-12-14 | 2 | -2/+2 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Deduplicate functions | Jason A. Donenfeld | 2018-12-14 | 1 | -9/+1 | |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | |||||
* | Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes) | Eric Kuck | 2018-12-13 | 21 | -645/+1207 | |
| | | | | | | All swiftlint warnings except one fixed up Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | TunnelsManager: Reintroduce waiting for another tunnel to deactivate | Roopesh Chander | 2018-12-13 | 1 | -0/+2 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Rewrite Logger | Jason A. Donenfeld | 2018-12-13 | 2 | -14/+4 | |
| | | | | | | | This reverts all of Roop's changes to the C code, and then rewrites the logger logic to be cleaner. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | |||||
* | More reliable logo sizing | Eric Kuck | 2018-12-13 | 1 | -33/+34 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | TunnelsManager: Report activation errors through the activationDelegate | Roopesh Chander | 2018-12-13 | 3 | -19/+15 | |
| | | | | | | Don't report activation errors through completion handlers Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Logging: Write versions from both app and extension | Roopesh Chander | 2018-12-13 | 1 | -0/+1 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Logging: Tag the entries in the merged log | Roopesh Chander | 2018-12-13 | 1 | -1/+1 | |
| | | | | | | | So we know which entry is from the app and which is from the network extension. Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Logging: Use ringlogger for logging from the app | Roopesh Chander | 2018-12-13 | 1 | -0/+2 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Logging: Use ringlogger for logging from the extension | Roopesh Chander | 2018-12-13 | 2 | -11/+15 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Remove useless whitespace | Jason A. Donenfeld | 2018-12-13 | 3 | -16/+16 | |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | |||||
* | Settings: better padding calculation | Jason A. Donenfeld | 2018-12-13 | 1 | -3/+3 | |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | |||||
* | Fixed hacky logo display for settings | Eric Kuck | 2018-12-12 | 1 | -3/+9 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | More formatting nits and cyclomatic complexity fixes | Eric Kuck | 2018-12-12 | 5 | -61/+52 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | More linter warnings fixed, enabled more swiftlint rules, project cleanup | Eric Kuck | 2018-12-12 | 10 | -397/+439 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | Tons more swiftlint warnings fixed. Still a few remaining. | Eric Kuck | 2018-12-12 | 7 | -108/+106 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | Added swiftlint and fixed all errors (and a bunch, but not all, warnings) | Eric Kuck | 2018-12-12 | 8 | -315/+299 | |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | |||||
* | Zip importing: importFromFile should take a completionHandler | Roopesh Chander | 2018-12-12 | 2 | -7/+13 | |
| | | | | | | | Deletion of the being-imported file should be done in the completionHandler. Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | ErrorPresenter: Support onPresented for showErrorAlert(title:,message:) | Roopesh Chander | 2018-12-12 | 1 | -3/+4 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | State restoration: Don't create duplicate mainVC and tunnelsListVC | Roopesh Chander | 2018-12-11 | 1 | -6/+1 | |
| | | | | | | | | | | | | | | | | | | | This creates a duplicate tunnels manager, leading to problems tracking tunnel statuses. To reproduce the bug that this commit fixes, you can do the following: 1. Remove all tunnels 2. Run in Xcode 3. Import zip with ~10 tunnels 4. Stop app in Xcode 5. Run in Xcode 6. Turn on 1st tunnel, after it's on, turn off Turn on 2nd tunnel, after it's on, turn off ... After 6-8 tunnels, the spinner doesn't show up, indicating that the status is not being tracked. Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Remove the feature of waiting for another tunnel to deactivate | Roopesh Chander | 2018-12-11 | 2 | -4/+2 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Allow turning off the status switch of a waiting tunnel | Roopesh Chander | 2018-12-11 | 2 | -2/+2 | |
| | | | | | | It just means the waiting should be cancelled Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Error handling: alertText() can be nil | Roopesh Chander | 2018-12-11 | 1 | -1/+1 | |
| | | | | | | Indicating that no alert is to be shown for that error. Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Tunnels list: Fix AutoLayout error during deletion of a tunnel | Roopesh Chander | 2018-12-10 | 1 | -2/+6 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Settings: Dynamic Type support | Roopesh Chander | 2018-12-10 | 1 | -2/+6 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Tunnel edit: Dynamic Type support | Roopesh Chander | 2018-12-10 | 1 | -6/+56 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Tunnel detail: Dynamic Type support | Roopesh Chander | 2018-12-10 | 2 | -6/+57 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Tunnels list: Dynamic Type support for the add button at the center | Roopesh Chander | 2018-12-09 | 1 | -0/+2 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Tunnels list: Dynamic Type support for the table view | Roopesh Chander | 2018-12-09 | 1 | -6/+12 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Model: Declare keyLength constant and use that wherever applicable | Roopesh Chander | 2018-12-09 | 1 | -4/+4 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Settings: Export log: Perform file operations in a background thread | Roopesh Chander | 2018-12-08 | 1 | -26/+31 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | On-Demand: TunnelViewModel: Make activate-on-demand methods static | Roopesh Chander | 2018-12-08 | 2 | -4/+4 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | On-Demand: Move detail text to TunnelViewModel | Roopesh Chander | 2018-12-08 | 2 | -20/+13 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Make strings consistent | Jason A. Donenfeld | 2018-12-07 | 3 | -8/+8 | |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | |||||
* | State restoration: Restore tunnel detail view | Roopesh Chander | 2018-12-07 | 4 | -1/+72 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Main VC: No need to refresh statuses if the tunnelsManager isn't initialized yet | Roopesh Chander | 2018-12-07 | 1 | -4/+0 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Tunnels list: Deselect rows correctly | Roopesh Chander | 2018-12-07 | 1 | -1/+7 | |
| | | | | | | Do it like UITableViewController.clearsSelectionOnViewWillAppear would. Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Settings: Exporting configs as zip should open document picker | Roopesh Chander | 2018-12-07 | 1 | -5/+3 | |
| | | | | | | | | Because: - Exporting UI should be consistent with importing UI - UIActivityVC takes a long time to open Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Error handling: Use ErrorPresenter.showErrorAlert() instead of per-VC showErrorAlert() methods | Roopesh Chander | 2018-12-07 | 4 | -38/+9 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Error handling: Use WireGuardAppError and WireGuardResult throughout the app | Roopesh Chander | 2018-12-07 | 2 | -31/+5 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Error handling: Introduce a WireGuardAppError protocol to manage errors | Roopesh Chander | 2018-12-07 | 1 | -28/+2 | |
| | | | | | | The alert strings shall be located next to where the errors are declared. Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Error handling: Cleanup Tunnels Manager errors | Roopesh Chander | 2018-12-07 | 4 | -31/+45 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Error presenter: Always handle the passed error | Roopesh Chander | 2018-12-07 | 1 | -4/+3 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | |||||
* | Tunnel detail: Cell status switch should be toggled only after the alert presentation completes | Roopesh Chander | 2018-12-07 | 1 | -4/+5 | |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> |