summaryrefslogtreecommitdiffhomepage
path: root/app/src/main
AgeCommit message (Collapse)Author
2017-07-30binding: Weakly reference adapter in list change callbackSamuel Holland
This allows the ObservableListAdapter to be garbage collected along with its activity. On the next list change, the OnListChangedCallback will detect that the adapter is gone and clean itself up. This avoids needing to manually remove the list from the adapter, as would otherwise be required to break the reference cycle adapter→list→listener→adapter. This will be relevant once the list of profiles outlives the activity. 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-29Profile: Add a blank line before each peer sectionSamuel Holland
This is purely a cosmetic change in the generated config files. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29Profile: Parse config file to a string per attributeSamuel Holland
This parser should be able to handle any valid WireGuard or wg-quick configuration file. It separates the file into a single interface object and a peer object for each peer. All "[Interface]" sections in the file are combined into the one object. For now, later lines in a block with the same key overwrite earlier lines. This is only relevant for attributes that are lists, such as Address and AllowedIPs, where additional lines may be expected to append to the list. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-07-29Profile: Add minimal implementationSamuel Holland
This represents a wg-quick profile as two strings: the file name and the file contents. 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>