summaryrefslogtreecommitdiffhomepage
path: root/ui
AgeCommit message (Collapse)Author
2023-03-23Merge branches 'm7n' and 'version' into build5v1.0.20230321-46-g5de71ab5Mikael Magnusson
2023-03-23m7n: revert ndk pinningMikael Magnusson
2023-03-23WIP: add bgp-javaMikael Magnusson
Add bgp-java. Update peer list based on TunnelEncapsAttribute in BGP.
2023-03-23WIP add ConfigDetail and PeerDetailMikael Magnusson
2023-03-23WIP: add dhcp addresses to tunnel detailsMikael Magnusson
2023-03-23tunnel: auto-detect IPv6/IPv4 preferenceMikael Magnusson
Detect IP address change. Request non-VPN network. Update endpoint when needed. Unregister network on wgTurnOff and use IPv4 if network is not known.
2023-03-23ui,tunnel: add lastest handshake to peer detailsMikael Magnusson
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2023-03-23tunnel: implement http proxy for Android 10+Mikael Magnusson
Allow getting package names of tv apps.
2023-03-23ui,tunnel: add HTTP proxy setting to Go backendMikael Magnusson
Only make the HTTP proxy settings visible on supported Android versions, i.e. Android 10 (AKA Android Q) and later. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2023-03-23ui: migrate to OnBackPressedDispatcherHEADmasterJason A. Donenfeld
This is compatible with Android 13's prediction-based back gesture animation. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-23build: raise target SDK to 33Harsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-03-23ui: set selected tunnel after creating fragmentsJason A. Donenfeld
I'm not sure why that comment (Samuel's) was there saying it was necessary. Given it's been async for a long while, this wasn't guaranteed anyway. So let's get rid of it and see what happens. Screen rotation seems fine thus far. Cc: Samuel Holland <samuel@sholland.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-23ui: switch from using launchWhenCreated to using repeatOnLifecycleJason A. Donenfeld
Apparently the former is deprecated. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-23ui: simplify IME displaying in ConfigNamingDialogFragmentJason A. Donenfeld
Also cleanup some event listener flow. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-23ui: bring back donation buttonJason A. Donenfeld
For Google Play Store builds, we'll display an alert box. This was inspired by the discussion around StreetComplete; hopefully we'll have a similar okay outcome. Link: https://github.com/streetcomplete/streetcomplete/issues/3768 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-22ui: migrate to MenuProviderHarsh Shandilya
AndroidX Activity 1.4.0 introduced the new lifecycle-dependent MenuProvider APIs that supersede existing onCreateOptionsMenu-style menus. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-03-22ui: address Parcelable API deprecationsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-03-22ui: address PackageManager API deprecationsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-03-22gradle: use idiomatic task handlingHarsh Shandilya
- The hand-rolled clean task is not required - Tasks should use configureEach to prevent eager evaluation Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-03-22tools: compile with latest NDKJason A. Donenfeld
The -mthumb -> -marm hack is unfortunate. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-22ui: set button text after loading app list in AppListDialogFragmentJason A. Donenfeld
Otherwise, for lots of apps, the dialog shows before they're enumerated, and the button text never gets set. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21gradle: use same NDK for tunnel and UIL.W.Reek
Fixes: 4f261560 ("gradle: force the use of an older NDK version") Signed-off-by: L.W.Reek <syphyr@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21build: Google Play requires target API level 31 or higherL.W.Reek
Fix build failure from lint check Signed-off-by: L.W.Reek <syphyr@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21strings: sync with crowdinJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21global: bump copyright dateJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21build: update to gradle 7.4.2 and restructure lint blockJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-02-11ui: add debug keystoreMikael Magnusson
Allow sharing between machines.
2023-01-20gradle: adjust for and raise compileSdk to 33SlipkHunter
Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-01-20gradle: migrate to namespace attributeHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-07-07ui: add barrier to fix detail fragment overlapSlipkHunter
When listen port and MTU are hidden, we need a barrier here. Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-06-15gradle: update AndroidX and KotlinHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-06-10WIP: build armMikael Magnusson
2022-05-26ui: reorder constraints to fix detail fragment overlapHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-05-26ui: move default style to Material3 with Dynamic ColorsHarsh Shandilya
The TV theme has been kept as-is since Material You guidance around this is a bit scarce at the moment. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-05-26ui: normalise icon tints and remove unused drawableHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-05-26ui: remove unnecessary boolean checkHarsh Shandilya
This check was added in 3c31c340d86f when the kernel module loader was introduced into the app lifecycle, to avoid attempting to start a root shell twice. When the module loader was removed in a03ad51622d338d1c, this flag was accidentally left in when it should have been deleted. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-05-19m7n: local build modificationsMikael Magnusson
Use custom application id: eu.m7n.wireguard.android Set app names to (m7n.eu) WireGuard and (m7n.eu) WireGuard β Limit ABIs to arm64-v8a and x86_64 Use NDK 21.3
2022-03-20ui: word wrap settings headersVlad Loktionov
Apparently some translations make this wrap, which is bad. Signed-off-by: Vlad Loktionov <yobabay23@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-03-20ui: exclude TunnelToggleActivity from recentsRin Patch
Fixes annoying behavior in quick settings widget, when you enable the tunnel, try to switch to last used app, but instead it switches to the toggle activity and turns the tunnel off. Signed-off-by: Rin Patch <rin@patch.cx> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-03-06ui: make validity check from QR code image scanner staticHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-03-06ui: allow importing tunnel from an QR image stored on the deviceNikita Pustovoi
Add a new feature to import a tunnel from a saved QR image, this feature integrates into 'import from file' flow, however adds a condition, if file is an image, attempt to parse it as QR image file. My use case for this feature, is to allow easier sharing of tunnels to family. Scanning QR code is ok when you have an external display to show it, but if you sent QR code to someone, there is no way to import it in the app. If you share a config file, that becomes way harder for a non-technical person to import as now they need to find a file with that name in the file picker etc etc, Where the images are very visible in the file picker, and user can easily recognize it for import. Testing: - Click "+" blue button, try to import a valid `.conf` file - the 'original' file flow should not be affected - Click "+" blue button, try to import a valid QR code image - if QR code was parsed, then a new tunnel will be added. - Click "+" blue button, try to import an invalid QR code image - Error message will be shown Signed-off-by: Nikita Pustovoi <deishelon@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-01-17ui: add margin on empty list textMarcel Joss
Signed-off-by: Marcel Joss <marceljoss@hotmail.ch> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-01-08ui: make when statements exhaustive everywhereHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-10-29global: bump copyright yearJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-29tunnel: remove kernel module downloaderJason A. Donenfeld
Nathan Chance dropped the ball repeatedly and never maintained this in a consistent way that anybody could use. With Android 12 out now, just drop it all together. A bummer, but I don't see much of a choice. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-28ui: fix and silence lint errorsHarsh Shandilya
- The `copied_to_clipboard` translation for Farsi does not include the placeholder, so it has been removed. - A couple lints that are errors but we cannot particularly do anything about were downgraded to warnings. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-10-28gradle: upgrade AndroidX dependenciesHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-10-27strings: sync translationsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-10-25ui: upgrade zxing-android-embeddedHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-09-26strings: sync with crowdinJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>