aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/config/Config.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyrightJason A. Donenfeld2019-01-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to AndroidXHarsh Shandilya2018-12-181-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Provide semantically meaningful exceptions for translationSamuel Holland2018-12-151-11/+24
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix locale usageJason A. Donenfeld2018-12-111-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Throw illegalargumentexception instead of nullpointerexception for builder errorsJason A. Donenfeld2018-12-111-1/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Do not close zip input streamJason A. Donenfeld2018-12-081-39/+48
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remodel the ModelSamuel Holland2018-12-081-121/+144
| | | | | | | | | | | | | | - 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>
* Auto-format the source directoriesSamuel Holland2018-11-111-1/+1
| | | | | | Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update copyright headersJason A. Donenfeld2018-09-061-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Extract error messages to string resourcesHarsh Shandilya2018-08-261-2/+6
| | | | | | Useful for validation errors and localisation later on Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Added QR code scanner as tunnel import methodEric Kuck2018-07-251-0/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add nullity annotationsEric Kuck2018-07-131-14/+12
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* global: move to Apache 2.0Jason A. Donenfeld2018-07-061-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* config: loosen parser to match realityJason A. Donenfeld2018-05-031-3/+7
| | | | | | Mid-line comments, mixed case. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: fix up copyrightsJason A. Donenfeld2018-05-031-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-021-0/+5
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Clean up JavaSamuel Holland2018-04-301-12/+12
| | | | | | Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Automatic code formattingSamuel Holland2018-04-301-86/+84
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* TunnelEditorFragment: rewrite and simplifyJason A. Donenfeld2018-04-301-39/+40
| | | | | | | This should remove some null pointer dereferences and overall make the thing more robust. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Allow importing from zip fileJason A. Donenfeld2018-04-281-27/+27
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use validation instead of two-way bindingJason A. Donenfeld2018-04-281-3/+59
| | | | | | | | | | | | | | This is insane, but it appears to be working. We essentially store things in a separate class for editing, and then commit it back at a given time. This business with onViewStateRestored in both TunnelEditorFragment and in TunnelDetailFragment is buggy and likely wrong. In general TunnelEditorFragment should probably be rewritten. The relationship with the changed name is not clear. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Serviceless rewrite, part 1Samuel Holland2018-01-061-116/+22
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* Config: use consistant verbJason A. Donenfeld2017-11-291-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: make parsing stricterJason A. Donenfeld2017-11-261-3/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Centralize/unify validation of configurationsSamuel Holland2017-08-241-9/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config/Interface/Peer: Make ParcelableSamuel Holland2017-08-231-6/+43
| | | | | | This allows saving the editor state across restarts. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config/Interface/Peer: Fix some missed change notificationsSamuel Holland2017-08-231-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config/Interface: Allow copyFrom() to work on nullSamuel Holland2017-08-231-6/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use data binding to provide EditText input filtersSamuel Holland2017-08-221-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Peer: Associate with a ConfigSamuel Holland2017-08-191-3/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigEditFragment: Add extremely basic validationSamuel Holland2017-08-171-0/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: add an isPrimary propertySamuel Holland2017-08-161-0/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: Make it ComparableSamuel Holland2017-08-161-1/+8
| | | | | | This will be used for future sorting. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Config: Rename function to make databinding happySamuel Holland2017-08-161-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Major renaming and refactoring in activity and serviceSamuel Holland2017-08-131-0/+112
Apparently "configuration" is the proper term, not "profile". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>