aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/main/java/com/wireguard/android (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert AsyncWorker to KotlinHarsh Shandilya2020-03-272-66/+43
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* databinding: rewrite in kotlinJason A. Donenfeld2020-03-2718-834/+528
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* util: begin conversion to kotlinJason A. Donenfeld2020-03-274-148/+102
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelManager: convert to kotlinJason A. Donenfeld2020-03-266-317/+252
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* util: Start converting to KotlinHarsh Shandilya2020-03-264-66/+48
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ObservableTunnel: port to kotlinJason A. Donenfeld2020-03-267-150/+121
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* LogViewerActivity: merge lines that don't match regexJason A. Donenfeld2020-03-261-3/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* LogViewerActivity: re-add error case to log exportJason A. Donenfeld2020-03-261-6/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* LogViewerActivity: constify requestJason A. Donenfeld2020-03-261-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: root: rewrite in kotlinJason A. Donenfeld2020-03-267-398/+352
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: cleanup various pieces of kotlinJason A. Donenfeld2020-03-267-16/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Introduce realtime log viewerHarsh Shandilya2020-03-263-101/+329
| | | | | | | | | This contains a share button and a save button, the former using a custom content provider. Co-authored-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* LogExporterPreference: Don't ask for storage permissions on Android 10 and aboveHarsh Shandilya2020-03-251-6/+12
| | | | | | We use the proper MediaStore implementation on Android 10 which makes it unnecessary. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: squelch warningsJason A. Donenfeld2020-03-242-2/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelManager: disallow remote apps for LJason A. Donenfeld2020-03-242-1/+7
| | | | | | I don't trust old Android versions to have gotten this right. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelManager: save settings before restartJason A. Donenfeld2020-03-231-3/+6
| | | | | | Otherwise these get lost and then the restored state is confusing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Preferences: hide advanced settingsJason A. Donenfeld2020-03-221-1/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* SettingsActivity: remove from parent instead of fixed screenJason A. Donenfeld2020-03-221-6/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelManager: enable Tasker supportJason A. Donenfeld2020-03-221-4/+1
| | | | | | | Also fix up wording for the permission prompt that Tasker will show when initially setting this up. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* model: begin conversionJason A. Donenfeld2020-03-222-57/+24
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* viewmodel: port to kotlinJason A. Donenfeld2020-03-217-674/+504
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Replace PermissionRequestCallback with direct methodsHarsh Shandilya2020-03-203-31/+16
| | | | | | These are much cleaner in Kotlin code. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Convert activity package to KotlinHarsh Shandilya2020-03-2014-532/+455
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* widget: rewrite in kotlinJason A. Donenfeld2020-03-2011-460/+359
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* EdgeToEdge: move into widgetJason A. Donenfeld2020-03-204-10/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* preferences: rewrite in kotlinJason A. Donenfeld2020-03-1912-600/+452
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: cleanup list typeJason A. Donenfeld2020-03-191-4/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelListFragment: catch all parsing exceptionsJason A. Donenfeld2020-03-191-4/+1
| | | | | | | Otherwise we crash if weird things happen. Reported-by: Luis Ressel <aranea@aixah.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use more Kotlin-esque code where applicableHarsh Shandilya2020-03-197-90/+70
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: Convert fragment package to KotlinHarsh Shandilya2020-03-1912-1271/+1119
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: Convert configStore package to KotlinHarsh Shandilya2020-03-193-125/+98
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* preference: restart application immediatelyJason A. Donenfeld2020-03-172-19/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: Remove MISSING_VALUE from BadConfigException reasonsHarsh Shandilya2020-03-141-1/+0
| | | | | | | This is covered under SYNTAX_ERROR which feels like a reasonable choice, so get rid of this unused field and associated resource string. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ModuleDownloaderPreference: remove disable_kernel_module after downloadingJason A. Donenfeld2020-03-102-5/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: java access control has important semantic meaningJason A. Donenfeld2020-03-101-1/+1
| | | | | | | It's not right to blindly follow all of AndroidStudio's suggestions, especially for things in tunnel/ which comprise useful API. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: Codestyle cleanupsHarsh Shandilya2020-03-109-60/+62
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* BaseFragment: Always anchor Snackbars to FABHarsh Shandilya2020-03-101-1/+1
| | | | | | This makes tunnel list fragment correctly render them above the FAB. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* KernelModuleDisablerPreference: turn off tunnels before switching backendJason A. Donenfeld2020-03-092-11/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* KernelModuleDisabler: allow disabling the kernel module backendJason A. Donenfeld2020-03-093-1/+87
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VersionPreference: reverse go and wgquick titlesJason A. Donenfeld2020-03-091-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelDetailFragment: avoid integer overflowJason A. Donenfeld2020-03-091-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: format codeJason A. Donenfeld2020-03-098-106/+108
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: optimize importsJason A. Donenfeld2020-03-0947-227/+190
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: get rid of nonnull gradle hackJason A. Donenfeld2020-03-0946-0/+137
| | | | | | | | | | Hacking things up via gradle is not right, and package-info.java poses problems with two modules, so instead we just apply it manually to every class. Remember to add this to new classes! Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Application: simplify static blockJason A. Donenfeld2020-03-091-8/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ThemeChangeAwareActivity: recreate activity after changing themeJason A. Donenfeld2020-03-091-0/+1
| | | | | | API 21 had issues without this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WgQuickBackend: by default use single-tunnel mode like GoBackend, but add optionJason A. Donenfeld2020-03-092-3/+20
| | | | | | | | | Note that this currently doesn't play well with people activating wg-quick tunnels from outside the app. Those tunnels won't be deactivated. But presumably that's desired behavior anyway, considering people are mucking around at the command line. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ObservableTunnel: pass right argument to state transitionJason A. Donenfeld2020-03-091-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ModuleLoader: move to right projectJason A. Donenfeld2020-03-092-188/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* AsyncWorker: move back to original locationJason A. Donenfeld2020-03-091-0/+63
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>