Jason A. Donenfeld
8b0123042f
Implement statistics
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2019-11-20 12:44:54 +01:00
Jason A. Donenfeld
c3e63df7b5
Update copyright
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2019-01-07 19:21:34 -05:00
Harsh Shandilya and Jason A. Donenfeld
6fdf0266cf
Migrate to AndroidX
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-12-18 16:54:54 +01:00
Samuel Holland and Jason A. Donenfeld
d1e85633fb
Remodel the Model
...
- 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-12-08 02:39:41 +01:00
Samuel Holland
a264f7ab36
Auto-format the source directories
...
Blame Jason for writing Java in vim.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2018-11-11 21:50:23 -06:00
Jason A. Donenfeld
5658584803
global: update copyright headers
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2018-09-06 21:32:46 -06:00
Eric Kuck and Jason A. Donenfeld
67ea8b2936
global: Add nullity annotations
...
Signed-off-by: Eric Kuck <eric@bluelinelabs.com >
2018-07-13 03:46:23 +02:00
Jason A. Donenfeld
7b28d51cdd
global: move to Apache 2.0
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2018-07-06 16:28:46 +02:00
Harsh Shandilya and Jason A. Donenfeld
363d0b9126
android: model: Make some methods static
...
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev >
2018-06-30 21:19:59 +02:00
Samuel Holland
4acee49d4b
util: Extract non-Android utility interfaces
...
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-06-19 21:59:44 -05:00
Jason A. Donenfeld and Samuel Holland
f77eac6796
global: fix up copyrights
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2018-05-03 19:15:09 -05:00
Samuel Holland
aa92c4a9d5
global: Add or update copyright headers in Java code
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-05-02 10:31:25 -05:00
Harsh Shandilya and Jason A. Donenfeld
ba862b166b
Quick cleanup across the board
...
- 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-04-28 06:07:48 +02:00
Samuel Holland
7b9c1a536c
model: Use ConfigStore.rename() to avoid recreating tunnels
...
Rename all of the functions to be in line with setConfig/setState
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-10 00:03:03 -06:00
Jason A. Donenfeld
df3062c7ad
Tunnel: ifname has max len 15
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2018-01-10 02:49:06 +01:00
Samuel Holland
933a685585
model: Chain completions to avoid race conditions
...
Otherwise getConfigAsync().thenCompose(x -> setState()) would be unsafe.
This reverts commit a6595a273afd50524cc66765c6bfbdcc34cb12e4.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2018-01-09 10:03:29 -06:00
Samuel Holland
ec81014c4e
Tunnel: Add a State factory method
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-08 04:25:15 -06:00
Samuel Holland
0ab3e29432
Tunnel: Remove UNKNOWN state
...
It's never used.
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-07 20:33:07 -06:00
Samuel Holland
30396b8718
model: Allow renaming tunnels
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-07 01:22:31 -06:00
Samuel Holland
e70b242c01
model: Remove confusing uses of completion chaining
...
This looks like the builder pattern, but isn't.
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-07 00:41:47 -06:00
Samuel Holland
1862ff0bbe
Tunnel: The name passed to isNameValid is never null
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-07 00:25:49 -06:00
Samuel Holland
22bdffcecd
model: Proxy all async work through the TunnelManager
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-06 06:30:41 -06:00
Samuel Holland
df7d18fb5d
Tunnel: Require passing a state to the constructor
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-06 05:18:34 -06:00
Samuel Holland
193de10972
TunnelDetailFragment: Remove state text and last change
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-06 05:18:34 -06:00
Samuel Holland
ff0bb081a0
Convert the list of tunnels to a KeyedObservableList
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-06 04:09:30 -06:00
Samuel Holland
609194fae2
Serviceless rewrite, part 1
...
Signed-off-by: Samuel Holland <samuel@sholland.org >
2018-01-06 04:09:29 -06:00