aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/java/com/wireguard/android/preference (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename app module to uiHarsh Shandilya2020-03-095-496/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ModuleDownloaderPreference: properly use errormessagesJason A. Donenfeld2020-03-091-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ErrorMessages: do not use R from backendJason A. Donenfeld2020-03-091-3/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* backend: do not depend on anything except configJason A. Donenfeld2020-03-091-3/+3
| | | | | | | | | 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>
* Google doesn't want to enable others to support free open source softwareJason A. Donenfeld2019-10-161-44/+0
| | | | | | | | | | | | Revert "preferences: add donation link" This reverts commit e5455f579aec48abb30ba68b0248b02d79303126. The app was removed from the Play Store for violating their payments policy. Upon filing an appeal, I was told that they do not allow donations to projects like WireGuard. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Download modules after verifying signify signatureJason A. Donenfeld2019-10-141-0/+91
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* export: use content resolver on android Q+Jason A. Donenfeld2019-10-122-37/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* preferences: add donation linkJason A. Donenfeld2019-10-121-0/+44
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Update copyrightJason A. Donenfeld2019-01-074-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Migrate to AndroidXHarsh Shandilya2018-12-184-10/+10
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Clean up error messagesSamuel Holland2018-12-152-6/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix locale usageJason A. Donenfeld2018-12-112-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Localize exception messagesZachary Wander2018-12-113-6/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Export actual configuration for zipsJason A. Donenfeld2018-12-101-1/+1
| | | | | Reported-by: John Greenwood <ijohnyyh@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use English lower casingJason A. Donenfeld2018-12-091-2/+4
| | | | | | | In Turkish, I becomes ı instead of i, which is a problem when matching things like "AllowedIPs". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Remodel the ModelSamuel Holland2018-12-081-1/+2
| | | | | | | | | | | | | | - 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/+2
| | | | | | Blame Jason for writing Java in vim. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update copyright headersJason A. Donenfeld2018-09-064-7/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MonkeyedSnackbar: removeJason A. Donenfeld2018-08-262-4/+2
| | | | | | This didn't actually help with much and caused problems. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MonkeyedSnackbar: work around Harsh's broken phoneJason A. Donenfeld2018-07-292-2/+4
| | | | | | | | I think I'd probably like to revert this, since presumably there's a good reason in the first place why the support lib disables animations when accessibility services are turned on? Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelDetailFragment now restores state correctly after process deathEric Kuck2018-07-261-1/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: use proper completablefuture for backendJason A. Donenfeld2018-07-261-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add nullity annotationsEric Kuck2018-07-134-10/+13
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* global: move to Apache 2.0Jason A. Donenfeld2018-07-064-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* android: VersionPreference: Handle no-browser-installed caseHarsh Shandilya2018-06-301-1/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* android: Consolidate getPrefActivity into FragmentUtilsHarsh Shandilya2018-06-232-28/+6
| | | | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> [Samuel: Changed static to non-static import] Signed-off-by: Samuel Holland <samuel@sholland.org>
* treewide: Optimize importsHarsh Shandilya2018-06-232-8/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* global: supply backend asynchronouslyJason A. Donenfeld2018-06-141-7/+8
| | | | | | | We can't block for IO, so move everything to async workers or to callbacks. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: safer state machineJason A. Donenfeld2018-06-101-25/+22
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Backend: abstract version informationJason A. Donenfeld2018-06-071-17/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Give Samuel heart attack by removing DaggerJason A. Donenfeld2018-06-074-26/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VersionPreference: account for checking state and move away from tools installerJason A. Donenfeld2018-06-071-2/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstallerPreference: do not check for magisk on main threadJason A. Donenfeld2018-06-061-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: allow installing as Magisk moduleJason A. Donenfeld2018-06-051-7/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* LogExporterPreference: get all past processesJason A. Donenfeld2018-06-041-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* android: Cleanup classesHarsh Shandilya2018-06-023-7/+6
| | | | | | | - Use final modifer wherever possible - Use try-with-resources for input/output streams Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ExporterPreferences: disable control immediatelyJason A. Donenfeld2018-06-022-4/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Preferences: add log exporterJason A. Donenfeld2018-06-022-14/+128
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Settings: add versionJason A. Donenfeld2018-06-011-0/+56
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ExceptionLoggers: never have a null messageJason A. Donenfeld2018-05-161-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: fix up copyrightsJason A. Donenfeld2018-05-032-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Add or update copyright headers in Java codeSamuel Holland2018-05-022-0/+10
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Some more lint cleanupHarsh Shandilya2018-05-021-27/+24
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ZipExporterPreference: account for directory already existingJason A. Donenfeld2018-04-301-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: Clean up JavaSamuel Holland2018-04-301-17/+19
| | | | | | Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
* global: Automatic code formattingSamuel Holland2018-04-301-16/+15
| | | | Signed-off-by: Samuel Holland <samuel@sholland.org>
* ZipExporterPreference: requireNonNull is redundantJason A. Donenfeld2018-04-301-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ZipExporterPreference: Correctly get preference activityHarsh Shandilya2018-04-301-2/+14
| | | | | | | | In AppCompat based preferences, this#getContext returns an object of android.view.ContextThemeWrapper class from where we can safely extract a reference to our parent activity. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* wg: Break out crossport dependencyHarsh Shandilya2018-04-301-1/+1
| | | | | | | Replace all crossport uses with upstream design support library components. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Prefer AppCompat classesHarsh Shandilya2018-04-302-22/+18
| | | | | | | | | | AppCompat is the preferred way to go for any app targetting a wider range of SDKs. Replace all activities and fragments with their AppCompat variants and fixup method calls to use support variants. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>