summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/model/Tunnel.java
AgeCommit message (Collapse)Author
2020-03-09backend: do not depend on anything except configJason A. Donenfeld
This is likely broken but should make for a good starting point. It also should hopefully handle stopping tunnels before starting new ones, in the case of the GoBackend. Again, untested. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-11-20Implement statisticsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-07Update copyrightJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-18Migrate to AndroidXHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-12-08Remodel the ModelSamuel Holland
- The configuration and crypto model is now entirely independent of Android classes other than Nullable and TextUtils. - Model classes are immutable and use builders that enforce the appropriate optional/required attributes. - The Android config proxies (for Parcelable and databinding) are moved to the Android side of the codebase, and are designed to be safe for two-way databinding. This allows proper observability in TunnelDetailFragment. - Various robustness fixes and documentation updates to helper classes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-11Auto-format the source directoriesSamuel Holland
Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-06global: update copyright headersJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-13global: Add nullity annotationsEric Kuck
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-07-06global: move to Apache 2.0Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-30android: model: Make some methods staticHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-06-19util: Extract non-Android utility interfacesSamuel Holland
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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-03global: fix up copyrightsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-05-02global: Add or update copyright headers in Java codeSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-28Quick cleanup across the boardHarsh Shandilya
- 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 <me@msfjarvis.dev>
2018-01-10model: Use ConfigStore.rename() to avoid recreating tunnelsSamuel Holland
Rename all of the functions to be in line with setConfig/setState Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-10Tunnel: ifname has max len 15Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-01-09model: Chain completions to avoid race conditionsSamuel Holland
Otherwise getConfigAsync().thenCompose(x -> setState()) would be unsafe. This reverts commit a6595a273afd50524cc66765c6bfbdcc34cb12e4. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-01-08Tunnel: Add a State factory methodSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07Tunnel: Remove UNKNOWN stateSamuel Holland
It's never used. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07model: Allow renaming tunnelsSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07model: Remove confusing uses of completion chainingSamuel Holland
This looks like the builder pattern, but isn't. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-07Tunnel: The name passed to isNameValid is never nullSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06model: Proxy all async work through the TunnelManagerSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Tunnel: Require passing a state to the constructorSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06TunnelDetailFragment: Remove state text and last changeSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Convert the list of tunnels to a KeyedObservableListSamuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-01-06Serviceless rewrite, part 1Samuel Holland
Signed-off-by: Samuel Holland <samuel@sholland.org>