aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* version: bump1.0.20200920Jason A. Donenfeld2020-09-201-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* AddTunnelsSheet: disable qrcode scanning if no cameraJason A. Donenfeld2020-09-201-1/+8
| | | | | | Part of the enhancements for Android TV. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add tooling label for exclusions buttonHarsh Shandilya2020-09-201-1/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: add navigation hints for D-Pad and IMEHarsh Shandilya2020-09-207-0/+106
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* version: bump1.0.20200918Jason A. Donenfeld2020-09-181-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add xhdpi banner resourceHarsh Shandilya2020-09-181-0/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* SettingsActivity: account for module present but no rootJason A. Donenfeld2020-09-181-0/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: move to Jetpack DataStore instead of SharedPrefsJason A. Donenfeld2020-09-1810-101/+304
| | | | | | | Hopefully PreferencesPreferenceDataStore gets to go away sometime down the line. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: reformat codeJason A. Donenfeld2020-09-183-5/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: downgrade androidx.{fragment,activity} to alpha07Jason A. Donenfeld2020-09-171-2/+2
| | | | | | | The alpha08 version introduced regressions that we can't deal with at the moment. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: retire EdgeToEdgeHarsh Shandilya2020-09-176-101/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: replace deprecated onActivityCreated with onViewCreatedHarsh Shandilya2020-09-171-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: refactor AddTunnelsSheet's selection communicationHarsh Shandilya2020-09-173-42/+43
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: refactor AppListDialogFragment's selection communicationHarsh Shandilya2020-09-172-33/+31
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* activityx: use contracts more and refineJason A. Donenfeld2020-09-172-26/+22
| | | | | | | This is the beginning; there are still many of the old API's callsites to convert. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* DownloadsFileSaver: encapsulate permission checksJason A. Donenfeld2020-09-176-91/+70
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* LogViewerActivity: simplify scopingJason A. Donenfeld2020-09-161-23/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ZipExporterPreference: don't ask for storage permissions on newer androidJason A. Donenfeld2020-09-162-4/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: use PeekLookAtSocketFd6(), not PeekLookAtSocketFd4()Jonathan Davies2020-09-161-1/+1
| | | | | | | Signed-off-by: Jonathan Davies <jpds@protonmail.com> Fixes: 3d088411 ("libwg-go: use conn.Bind for socketfd peek") Cc: David Crawshaw <crawshaw@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: resolve getColor deprecation in LogViewerActivityHarsh Shandilya2020-09-161-14/+6
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* LogViewerActivity: destroy process when coroutine scope is cancelledJason A. Donenfeld2020-09-161-37/+42
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: await activity creation to change selected tunnelHarsh Shandilya2020-09-161-2/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: document more public API from backend packageHarsh Shandilya2020-09-166-1/+174
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: replace GlobalScope with a hand-rolled CoroutineScopeHarsh Shandilya2020-09-166-16/+25
| | | | | | | | | | | | | | | | | GlobalScope has numerous problems[1] that make it unfit for use in most applications and making it behave correctly requires an excessive amount of verbosity that's alleviated simply by using any other scope. Since we run multiple operations in the context of the application's lifecycle, introduce a new scope that is created when our application is, and cancelled upon its termination. While at it, make the scope default to Dispatchers.IO to reduce pressure on the UI event loop. Tasks requiring access to the UI thread appropriately switch context making the change completely safe. 1: https://medium.com/@elizarov/the-reason-to-avoid-globalscope-835337445abc Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Ed25519: use implementation from TinkJason A. Donenfeld2020-09-165-24/+2513
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ConfigNamingDialogFragment: fix focus request for config naming dialogHarsh Shandilya2020-09-162-5/+18
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* TunnelEditorFragment: move backwards using fragment manager instead of hackJason A. Donenfeld2020-09-162-7/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelEditorFragment: avoid extra trip through event loopJason A. Donenfeld2020-09-161-7/+6
| | | | | | | | | onSelectedTunnelChanged is already queueing us to Dispatchers.Main (rather than Dispatchers.Main.immediate, which would crash, but why?), so avoid the extra trip through the event loop by toggling the selected tunnel right away. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Extensions: use more idiomatic kotlinJason A. Donenfeld2020-09-161-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: lint codebase with recent changesJason A. Donenfeld2020-09-168-7/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: don't use low-level logger APIHarsh Shandilya2020-09-164-7/+7
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: update manifest for API 30 changesHarsh Shandilya2020-09-161-1/+11
| | | | | | | | - Mark WRITE_EXTERNAL_STORAGE as unused above API 29 since we defer to Storage Access Framework on P and above - Adds a <queries> tag to allow listing apps for exclusion/inclusion dialog Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* coroutines: lifecycleScope is by default on Main.immediateJason A. Donenfeld2020-09-1613-29/+23
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* coroutines: use lifecycleScope where appropriateJason A. Donenfeld2020-09-1519-82/+66
| | | | | | | There's still a bit of GlobalScope lingering around, which might be removable. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MonkeyedTextInputEditText: au revoirJason A. Donenfeld2020-09-155-46/+16
| | | | | | | Remember to go back to using com.google.android.material when 1.3.0-alpha03 comes out. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* wireguard-tools: bump to fix invalid freeJason A. Donenfeld2020-09-151-0/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: set selection on Main, not Main.immediateJason A. Donenfeld2020-09-151-1/+1
| | | | | | Otherwise, we crash when saving the config. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: update to go 1.15.2Jason A. Donenfeld2020-09-153-21/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* MonkeyedTextInputEditText: add note about sunset planJason A. Donenfeld2020-09-151-0/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* idea: import new import sorting rulesJason A. Donenfeld2020-09-151-1/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: desugar retrofuture and remove old depsJason A. Donenfeld2020-09-1511-34/+25
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: do not use retrofuture in uiJason A. Donenfeld2020-09-151-1/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* coroutines: convert the restJason A. Donenfeld2020-09-1523-532/+569
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* coroutines: convert low-hanging fruitsJason A. Donenfeld2020-09-145-73/+106
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: remove hacky manual check for keyguardHarsh Shandilya2020-09-131-20/+1
| | | | | | Setting the correct value for the allowedAuthenticators field lets the library correctly detect this by itself as verified on an API 21 emulator Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: update BiometricAuthenticator for API changesHarsh Shandilya2020-09-131-2/+6
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: fix memory leak from statically held Handler instanceHarsh Shandilya2020-09-131-2/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: uprev dependencies and fix script block orderHarsh Shandilya2020-09-131-12/+11
| | | | | | | | | | - buildscript must always be the first block in a Gradle build - ConstraintLayout, Kotlin and bintray plugin are updated to their latest stable revisions - Biometrics is updated to the latest alpha release to make use of multiple memory leak fixes that plague the 1.0.x implementations Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: update to Gradle 6.6.1Harsh Shandilya2020-08-302-4/+4
| | | | | | While praying F-Droid gets their shit together by the time we do our next release Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tools: bump for Android 11 ndc fixHarsh Shandilya2020-08-261-0/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>