aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.gitmodules (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-03global: fix up copyrightsJason A. Donenfeld54-38/+72
2018-05-02Keypair: Minimize the scope of warning suppressionSamuel Holland1-1/+1
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-05-02KeyEncoding: Address lints/warnings and match line lengthSamuel Holland1-9/+12
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-05-02global: Add or update copyright headers in Java codeSamuel Holland45-1/+224
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-05-02global: Some more lint cleanupHarsh Shandilya2-31/+28
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-05-02drawable: add adaptive iconJason A. Donenfeld4-0/+49
2018-05-02libwg-go: avoid phony target and update goJason A. Donenfeld2-9/+16
2018-05-02wg-build: Update gradle build filesHarsh Shandilya3-31/+43
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-05-02libwg-go: Ignore go{path,root}Harsh Shandilya1-0/+2
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-05-01project: Import select Android Studio configuration filesSamuel Holland8-1/+1098
Having a consistent set of code style and inspection rules makes it easier for contributors to match the existing code. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-05-01libwg-go: do not deadlock on CloseJason A. Donenfeld1-0/+0
2018-04-30Version bumpJason A. Donenfeld1-2/+2
2018-04-30ZipExporterPreference: account for directory already existingJason A. Donenfeld1-1/+1
2018-04-30global: Clean up JavaSamuel Holland13-215/+237
Address Java and Android lints. Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30global: Clean up XMLSamuel Holland3-9/+18
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30global: Automatic code formattingSamuel Holland22-919/+893
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30app: Sort dependenciesSamuel Holland1-2/+2
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30project: Update gradle filesSamuel Holland2-3/+2
Signed-off-by: Samuel Holland <samuel@sholland.org>
2018-04-30libwg-go: use system Go when possibleJason A. Donenfeld1-7/+17
We're still maybe curlzipping and using a binary distribution of Go, but at least this is only the case on machines that don't have go.
2018-04-30Tunnel importer: stricter file filtersJason A. Donenfeld1-2/+8
2018-04-30proguard: enableJason A. Donenfeld2-1/+2
2018-04-30Preferences: use v14 material styleJason A. Donenfeld2-2/+2
2018-04-30ZipExporterPreference: requireNonNull is redundantJason A. Donenfeld1-2/+2
2018-04-30wg: Collapse fab when pressing back before exitingHarsh Shandilya2-2/+19
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30SettingsActivity: Migrate permissions check to AppCompatHarsh Shandilya1-20/+11
Pretty straightforward, I was clearly overthinking this. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30ZipExporterPreference: Correctly get preference activityHarsh Shandilya1-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 <harsh@prjkt.io>
2018-04-30TunnelListFragment: Use Collections methods in place of ArraysHarsh Shandilya1-2/+3
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30wg: Break out crossport dependencyHarsh Shandilya8-20/+12
Replace all crossport uses with upstream design support library components. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30wg-build: Upgrade databinding library to 3.1.2Harsh Shandilya1-1/+1
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30SettingsActivity: Gracefully exit when options menu home is pressedHarsh Shandilya1-0/+12
This is an activity, so it does not join the fragment backstack, but instead piles on top SettingsActivity | -> MainActivity | -> EditorFragment | -> DetailFragment | -> ListFragment Without overriding the back button in the toolbar, it simply kills the entire state on MainActivity and causes it to reload. By calling finish() on the activity when home is pressed from the item menu we can silently make it die without affecting any underlying states held by MainActivity and instead return to the exact fragment we launched settings from. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30SettingsActivity: Define preferenceTheme for AppCompatHarsh Shandilya2-0/+4
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30wg: Migrate menu visibility to AppCompatHarsh Shandilya4-12/+16
Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30wg: Add and use dummy AppThemeHarsh Shandilya2-1/+2
Preparation for when the app will start carrying colors reflecting the WireGuard brand. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30Prefer AppCompat classesHarsh Shandilya8-44/+44
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 <harsh@prjkt.io>
2018-04-30wireguard: Extract dependency versions to ext structHarsh Shandilya1-8/+16
Maintain common versions in a single place Also upgraded the support library to 27.1.1 and databinding library to 3.1.1. Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-30TunnelDetailFragment: rewrite and simplifyJason A. Donenfeld1-22/+10
2018-04-30TunnelEditorFragment: rewrite and simplifyJason A. Donenfeld7-280/+200
This should remove some null pointer dereferences and overall make the thing more robust.
2018-04-29Allow exporting to zip fileJason A. Donenfeld5-2/+180
2018-04-28Allow importing from zip fileJason A. Donenfeld3-46/+119
2018-04-28config: Minor cleanupHarsh Shandilya4-18/+23
- Stop implicitly assuming locales in String.format - Cleanup method visibilities - Improve uses of Integer methods - Remove unused getToken method Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-28Quick cleanup across the boardHarsh Shandilya8-19/+16
- Clean up imports - Adjust method visibility - Drop in NonNull annotations where needed - Prevent potential NPEs from nulled getActivity calls - Remove unused methods Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-04-28Version bumpJason A. Donenfeld1-2/+2
2018-04-28Use validation instead of two-way bindingJason A. Donenfeld11-147/+382
This is insane, but it appears to be working. We essentially store things in a separate class for editing, and then commit it back at a given time. This business with onViewStateRestored in both TunnelEditorFragment and in TunnelDetailFragment is buggy and likely wrong. In general TunnelEditorFragment should probably be rewritten. The relationship with the changed name is not clear.
2018-04-27Do not do DNS lookups for IPsJason A. Donenfeld4-14/+29
This involves reflection, which is a bummer, but it's better than doing unnecessary DNS lookups.
2018-04-27Add build instructionsJason A. Donenfeld1-1/+11
2018-04-27Throw IllegalArgumentExceptions when arguments are badJason A. Donenfeld4-37/+35
This will make the two way data binding crash more, but it will improve the robustness of the config file parser, which deals with exceptions gracefully, and when we move to one way data binding, it will help with that too.
2018-04-27Latest go changesJason A. Donenfeld2-2/+2
2018-04-26WgQuickBackend: always create configuration fileJason A. Donenfeld1-10/+5
It might be removed on an update.
2018-04-26Manifest: disable always-on VPNJason A. Donenfeld1-0/+2
We don't actually comprehend how this works yet, so disable it. But we'll need to add support for this at some point.
2018-04-25GoBackend: bring down tunnels when revoked or disconnectedJason A. Donenfeld1-0/+6
This synchronizes the OS's connection state with ours, such as when the user disconnects using the system UI.