summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2020-03-09global: optimize importsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09global: get rid of nonnull gradle hackJason A. Donenfeld
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>
2020-03-09Application: simplify static blockJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09gradle: use optimized proguard rulesJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09Use dark system bars on API 21Harsh Shandilya
Light system bars didn't come around until API 23. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09ThemeChangeAwareActivity: recreate activity after changing themeJason A. Donenfeld
API 21 had issues without this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09WgQuickBackend: by default use single-tunnel mode like GoBackend, but add optionJason A. Donenfeld
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>
2020-03-09ObservableTunnel: pass right argument to state transitionJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09ModuleLoader: move to right projectJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09AsyncWorker: move back to original locationJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09Use AndroidX Nullable annotation everywhereHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09Rename app module to uiHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09Enable nonnull generation for tunnel moduleHarsh Shandilya
Also cleanup nonnull.gradle while we're at it Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09Migrate tunnel related classes to tunnel/ Gradle moduleHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09ToolsInstaller: restrict to only main app usageJason A. Donenfeld
We don't want lots of different packages fighting over who gets to install the tools. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09ToolsInstaller: remove versioningJason A. Donenfeld
Not ideal, but allows us to get rid of the BuildConfig requirement. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09RootShell: remove need for BuildConfigJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09Tunnel: move state change into interfaceJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09Fix tablet mode crashes and UI inconsistenciesHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09MainActivity: Dispatch insets to all fragmentsHarsh Shandilya
Fixes tunnel list fragment rendering behind statusbar when other fragments are showing Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09Switch to CoordinatorLayout for activity containerHarsh Shandilya
Snackbars use it to infer the right margins Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09Add coordinatorlayout dependency and sortHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-09global: Use requireContext rather than getContext in fragmentsHarsh Shandilya
requireContext provides helpful error messages when it's null as opposed to getContext which simply throws a NullPointerException. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-08Backend: do not use singletonsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-08GoBackend: setConfigureIntent does nothingJason A. Donenfeld
It's only used from the ManageDialog in VpnDialogs, which in turn is only instantiated in the legacy VPN path. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09ToolsInstaller: do not use RJason A. Donenfeld
This is horible! But ToolsInstaller uses lots of other error strings nakedly, as does ModuleLoader. These both need to be fixed up the proper way (like the last two commits). This commit here is just to make the initial porting a bit easier. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09RootShell: properly use errormessagesJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09ModuleDownloaderPreference: properly use errormessagesJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09ErrorMessages: do not use R from backendJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09ErrorMessages: do not traverse down into remote exceptionsJason A. Donenfeld
Otherwise we miss the actual error message. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-03-09backend: do not depend on anything except configJason A. Donenfeld
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>
2020-03-08Upgrade AGP and KotlinHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-03-08Add Hindi translationShashank Baghel
Signed-off-by: Shashank Baghel <theradcolor@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-28MainActivity: Remove unused importsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-28ModuleLoader: Staticize isModuleLoadedHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-28Upgrade to build tools 29.0.3Harsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-26Resolve some lint and build warningsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Add Simplified Chinese translationLilligantMatsuri
Signed-off-by: LilligantMatsuri <srb12345@vip.qq.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-02-25remove <item quantity=one> tag due to no plural form in Japanese.Eiji Tanioka
Signed-off-by: Eiji Tanioka <tanioka404@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-02-25ThemeChangeAwareActivity: Remove drawable cache busterHarsh Shandilya
Shouldn't be needed anymore. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Make exclusions dialog fit more items in viewportHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25MainActivity: Fix backstack bug exposed by fragment 1.2.2Harsh Shandilya
We've been relying on implicit backstack changes to handle removing the detail fragment for a while which is now gone so let's do this properly like we should Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Resolve deprecation warningsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Cleanup inset dispatch codeHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Replace FrameLayouts with recommended FragmentContainerViewHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Add fragment dependencyHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Ensure insets are dispatched to all fragmentsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Setup EdgeToEdgeHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Add EdgeToEdge and coreKtx dependencyHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-02-25Target JVM 1.8 from Kotlin as wellHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>