aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/model (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Auto-format the source directoriesSamuel Holland2018-11-113-20/+20
| | | | Blame Jason for writing Java in vim.
* global: update copyright headersJason A. Donenfeld2018-09-063-6/+3
|
* Extract error messages to string resourcesHarsh Shandilya2018-08-261-4/+6
| | | | | | Useful for validation errors and localisation later on Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* TunnelDetailFragment now restores state correctly after process deathEric Kuck2018-07-261-7/+11
|
* global: Add nullity annotationsEric Kuck2018-07-133-32/+26
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* global: move to Apache 2.0Jason A. Donenfeld2018-07-063-3/+3
|
* TunnelEditor: fix nitsJason A. Donenfeld2018-07-061-2/+8
|
* AppListDialogFragment: add implementation for excluding applicationsEric Kuck2018-07-061-0/+54
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* android: model: Make some methods staticHarsh Shandilya2018-06-302-5/+5
| | | | Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* util: Extract non-Android utility interfacesSamuel Holland2018-06-191-1/+1
| | | | | | As part of a refactoring that will likely introduce more custom collection classes, move the non-Android-specific parts outside the com.wireguard.android package.
* global: supply backend asynchronouslyJason A. Donenfeld2018-06-141-14/+11
| | | | | We can't block for IO, so move everything to async workers or to callbacks.
* Give Samuel heart attack by removing DaggerJason A. Donenfeld2018-06-071-31/+19
|
* TunnelManager: disable dangerous intents for nowJason A. Donenfeld2018-06-041-0/+6
| | | | | We need to think about how to allow this securely. It's not okay for all apps to be allowed to twiddle with VPN settings.
* TunnelManager: new intentsJason A. Donenfeld2018-06-041-0/+37
|
* android: Cleanup classesHarsh Shandilya2018-06-021-4/+4
| | | | | | | - Use final modifer wherever possible - Use try-with-resources for input/output streams Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* Support always-on-vpnJason A. Donenfeld2018-05-271-2/+28
|
* global: fix up copyrightsJason A. Donenfeld2018-05-032-0/+2
|
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-022-0/+10
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Automatic code formattingSamuel Holland2018-04-301-9/+9
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Quick cleanup across the boardHarsh Shandilya2018-04-282-4/+4
| | | | | | | | | | - Clean up imports - Adjust method visibility - Drop in NonNull annotations where needed - Prevent potential NPEs from nulled getActivity calls - Remove unused methods Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
* Update application state based on wg-quickJason A. Donenfeld2018-04-231-0/+9
|
* TunnelManager: Use constants directly where appropriateSamuel Holland2018-01-171-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* model: Use ConfigStore.rename() to avoid recreating tunnelsSamuel Holland2018-01-102-54/+46
| | | | | | Rename all of the functions to be in line with setConfig/setState Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: ifname has max len 15Jason A. Donenfeld2018-01-101-2/+2
|
* model: Chain completions to avoid race conditionsSamuel Holland2018-01-092-23/+18
| | | | | | Otherwise getConfigAsync().thenCompose(x -> setState()) would be unsafe. This reverts commit a6595a273afd50524cc66765c6bfbdcc34cb12e4.
* global: Fix or suppress most lints/warningsSamuel Holland2018-01-081-3/+4
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Prefix tags with WireGuard/Jason A. Donenfeld2018-01-081-1/+1
|
* ToggleSwitch: Improve reliabilitySamuel Holland2018-01-081-3/+4
| | | | | | It's not great, but it's better than it was. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: Add a State factory methodSamuel Holland2018-01-081-1/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Simplify save/resume methodsSamuel Holland2018-01-071-9/+8
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager/QuickTileService: Remember last used tunnelSamuel Holland2018-01-071-18/+82
| | | | | | | This is actually a bit simpler than having a manually-selected "primary" tunnel, and is hopefully easier for the user. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: Remove UNKNOWN stateSamuel Holland2018-01-071-6/+1
| | | | | | It's never used. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Move bundle keys where they are usedSamuel Holland2018-01-071-1/+0
| | | | | | This both clarifies and simplifies the code. Signed-off-by: Samuel Holland <samuel@sholland.org>
* model: Allow renaming tunnelsSamuel Holland2018-01-072-0/+32
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* model: Remove confusing uses of completion chainingSamuel Holland2018-01-072-16/+23
| | | | | | This looks like the builder pattern, but isn't. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: The name passed to isNameValid is never nullSamuel Holland2018-01-071-2/+2
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Make TunnelManager the point of asynchronicitySamuel Holland2018-01-071-23/+35
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Sort tunnels case-insensitivelySamuel Holland2018-01-061-1/+5
| | | | | | | The second comparator is required to allow multiple tunnels that differ only in case. Signed-off-by: Samuel Holland <samuel@sholland.org>
* Keyed...: Rename all the thingsSamuel Holland2018-01-061-5/+5
| | | | | | Hooray for diamond interface inheritance. Signed-off-by: Samuel Holland <samuel@sholland.org>
* model: Proxy all async work through the TunnelManagerSamuel Holland2018-01-062-69/+68
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Enumerate running tunnels only onceSamuel Holland2018-01-061-7/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Tunnel: Require passing a state to the constructorSamuel Holland2018-01-062-6/+8
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelDetailFragment: Remove state text and last changeSamuel Holland2018-01-061-12/+0
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Convert the list of tunnels to a KeyedObservableListSamuel Holland2018-01-063-21/+15
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelManager: Clear primary tunnel when it's removedSamuel Holland2018-01-061-1/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Serviceless rewrite, part 1Samuel Holland2018-01-063-0/+287
Signed-off-by: Samuel Holland <samuel@sholland.org>