summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res
AgeCommit message (Collapse)Author
2017-11-24VpnService: Move it to a backends packageSamuel Holland
It should be split into two pieces: configuration file management (loading/saving/renaming/deleting) and calling into wg-quick via RootShell. The configuration file management part should then go back into the main package. This is in preparation for adding additional backends based on wg(8) and wireguard-go. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-08ConfigActivity: Add import menu itemSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-08Bindings: Merge bugfixes and updatesSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-11-07Bindings: Move to a separate packageSamuel Holland
These are really app-independent reusable classes. Moving them to a separate package helps avoid polluting the main app package, and makes them easier to upgrade. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigListFragment: Prevent config names from wrappingSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigActivity: Only use split layout on tablet-sized screensSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigEditFragment: Copy public key on clickSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigEditFragment: Mark the persistent keepalive as optionalSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-24ConfigEditFragment: Add a field for the optional pre-shared keySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22Finish first pass of config editor fieldsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22Add an adapter for binding an ObservableList to a LinearLayoutSamuel Holland
EditTexts do not work in ListViews. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22Use data binding to provide EditText input filtersSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-22ConfigAddActivity: Rename to AddActivitySamuel Holland
Not everything needs to start with Config Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17ConfigListFragment: Restore the non-FAB add menuSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17QuickTileService: Implement and update from VpnServiceSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-17Convert to using the ObservableTreeMap and its adapterSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16preferences: Control restoring enabled configsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16SettingsActivity: Implement primary config settingSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigList: Denote the primary config with bold textSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16Detail/Edit/ListFragment: Update the layoutsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigActivity: Inline PlaceholderFragment into the layoutSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigActivity: Make the two-pane layout more readableSamuel Holland
Highlight the selected configuration, and add a border between the two panes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-16ConfigListFragment: Implement config selection and removalSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-15ConfigAddActivity: Add an standalone config-creating activitySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-13Major renaming and refactoring in activity and serviceSamuel Holland
Apparently "configuration" is the proper term, not "profile". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-10ProfileEdit: Finish writing code-behindSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-10ProfileActivity: Do menus correctlySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileEdit: Add empty activity/fragmentSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileList: Add the list fragment in code so it knows the layoutSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileActivity: Replace fragments instead of hidingSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-09ProfileActivity: Extract base class for fixing fragmentsSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-08res: Add icons for quick settings tileSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-08ProfileActivity: Refactor into clean layers of functionalitySamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-07ProfileService: Use a map to store profile dataSamuel Holland
This has no visible changes at the moment, but will allow most functions to pass around strings instead of Profile objects, obviating the need to implement serialization for them. It also trades some naive linear searches for the binary search in SimpleArrayMap. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-07ProfileActivity: Add two-pane master-detail layoutSamuel Holland
This is designed for tablets, but for testing purposes, it is currently enabled for all devices in landscape orientation. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-07PlaceholderFragment: Simple fragment that shows a messageSamuel Holland
This is used for the detail pane when no profile is selected. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-07ProfileList: Load fragment programmaticallySamuel Holland
This is necessary to replace it with the profile detail fragment later. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-04ProfileList: Convert to a fragmentSamuel Holland
This is required for a future two-fragment tablet layout, and simplifies the code a bit since the profile detail (view/edit) will be implemented as fragments anyway. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-04ProfileList: remove generated config from UISamuel Holland
It was only there for developing the parser. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-04icon: Remove transparency inside non-round dragonSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-01ProfileList: Remove "Add" menu action, to be replaced by a FABSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29ProfileList: Add a simple menuSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-31ProfileList: Toggle connection state on clickSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-31ProfileList: Add indicator of profile connection stateSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29ProfileList: Add minimal activitySamuel Holland
For now, it simply reads the files in the app's data directory with file names ending in ".conf" and displays them in a list. This includes the generic list data binding setup for future use. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-30icon: Use the uncropped logo for the non-round iconSamuel Holland
The round icon remains the same. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-28project: Create empty project with WireGuard iconSamuel Holland
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>