aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-08-14Reland symlink support (#1020)Fabian Henneke4-1/+13
* Add symlink support to JGit (#1016) * Add symlink support to JGit * Fix a typo Co-authored-by: Harsh Shandilya <me@msfjarvis.dev> * Prevent crash when following a broken symlink Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-13Restore workaround for preventing empty commits (#1019)Harsh Shandilya7-28/+41
* Revert "Add symlink support to JGit (#1016)" This reverts commit 5032696cec9da86c2ad97b9931e8d85feb18da0c. * Restore workaround for empty commits and document commands Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update app/src/main/java/com/zeapo/pwdstore/git/GitCommandExecutor.kt
2020-08-13github: set git config for PSL workflow (#1018)Harsh Shandilya1-0/+5
user.name and user.email are not set by default in a standard Actions workflow Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-13Add symlink support to JGit (#1016)Fabian Henneke2-0/+4
* Add symlink support to JGit * Fix a typo Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-13Update R8 rules (#1017)Fabian Henneke1-6/+5
Removes superfluous dontwarn rules, adds relevant new ones and removes a keep rule for SearchView that has meanwhile been added to the dependency.
2020-08-12Create only one SSH session per GitOperation (#1012)Fabian Henneke3-60/+34
2020-08-12Improve Git error message handling (#1011)Fabian Henneke3-37/+24
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-12Improve clone operation semantics (#1010)Harsh Shandilya3-2/+13
* Improve clone operation semantics Fixes #1003 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update changelog Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-11Notify user when remote branch is up-to-date (#1009)Harsh Shandilya3-0/+13
* Notify user when remote branch is up-to-date Fixes #1000 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update changelog Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-11Switch to URL-based Git config and refactor Git settings (#1008)Fabian Henneke44-585/+395
* Make Git config URL-based and refactor * Use Kotlin style null handling for string prefs * Also show an error if generated URL can't be parsed * Add some testcases for migration strategy Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-11Uprev Gradle and dependencies (#1007)Harsh Shandilya7-36/+17
* build: uprev Gradle Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * build: uprev dependencies Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * app/proguard: remove Tink rules I'm assuming the R8 problems fixed by the Tink upgrade cover this as well Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-10Replicate key selection flow for directory creation (#999)Harsh Shandilya8-22/+80
* Replicate key selection flow Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Review fixes Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Set --user 0 in adb options to prevent automatically installing to work profile Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Fix committing regression Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update changelog Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-10Disable automatic copy on decrypt by default (#1006)Harsh Shandilya2-1/+2
Fixes #476 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-10Prompt user to install OpenKeychain when missing (#1005)Harsh Shandilya3-3/+68
* Prompt user to install OpenKeychain when missing Fixes #996 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update changelog Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-06Refactor uses of applicationContext and startActivityForResult (#997)Fabian Henneke25-190/+158
* Refactor uses of applicationContext and startActivityForResult This commit applies three types of refactoring: 1. Remove context argument from PasswordRepository companion functions by relying on Application.instance. 2. Introduce a sharedPrefs extension function on Context that returns the default SharedPreferences for the applicationContext. 3. Use OpenDocument() and OpenDocumentTree() contracts. * Drop toPasswordItem argument
2020-08-05Remove GitAsyncTask and replace with non-blocking coroutines (#865)Harsh Shandilya32-649/+631
Co-authored-by: Fabian Henneke <fabian@henneke.me>
2020-07-31Merge branch 'release' into developHarsh Shandilya2-2/+10
* release: build: bump version Downgrade coroutines to 1.3.6 to fix VerifyErrors Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-31build: bump versionHarsh Shandilya2-3/+7
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-31Downgrade coroutines to 1.3.6 to fix VerifyErrorsFabian Henneke2-2/+7
2020-07-31Switch to non-deprecated stdlib methods (#990)Harsh Shandilya1-2/+2
min and max were deprecated in favor of minOrNull and maxOrNull respectively to match their names to the typical naming format used by stdlib methods with nullable return types Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-30Merge branch 'release' into developHarsh Shandilya2-5/+12
* release: build: bump version Prepare release 1.10.2 Fix two SMS Autofill crashes (#985) Fix TOTP import button check semantics (#982) Properly handle files without passwords (#969) Expand OTP and PasswordEntry tests (#968) Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-30build: bump versionHarsh Shandilya1-2/+2
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-30Prepare release 1.10.2GitHub Actions1-4/+8
2020-07-30Fix two SMS Autofill crashes (#985)Fabian Henneke2-5/+29
SMS OTP Autofill currently crashes for two reasons: 1. Tasks.await has a precondition of not running on the UI thread. 2. Exceptions thrown from Tasks are always wrapped into ExecutionExceptions and need to be unwrapped before they can be identified as ResolvableApiException. This commit addresses both issues by making waitForSms a proper coroutine using withContext and a custom wrapper around Task<T> that relies on suspendCoroutine and automatically unwraps exceptions. (cherry picked from commit 3afeff45d8bd5fff66e1d0fa2c15fa2527487af1)
2020-07-30Fix TOTP import button check semantics (#982)Harsh Shandilya2-5/+4
* Improve TOTP checking semantics Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Fix return label Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * update CHANGELOG Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Move updateViewState() call outside with(binding) scope Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> (cherry picked from commit ecf96aa0668a758b2408284facda41ac70fe10aa)
2020-07-30Fix two SMS Autofill crashes (#985)Fabian Henneke2-5/+29
SMS OTP Autofill currently crashes for two reasons: 1. Tasks.await has a precondition of not running on the UI thread. 2. Exceptions thrown from Tasks are always wrapped into ExecutionExceptions and need to be unwrapped before they can be identified as ResolvableApiException. This commit addresses both issues by making waitForSms a proper coroutine using withContext and a custom wrapper around Task<T> that relies on suspendCoroutine and automatically unwraps exceptions.
2020-07-30Properly handle files without passwords (#969)Harsh Shandilya5-8/+67
* Properly handle files without passwords Fixes #967 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Fix tests Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Only look for TOTP URI Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> (cherry picked from commit 62dbc183d52d93860228316b209ec5aa15f16a08)
2020-07-30Expand OTP and PasswordEntry tests (#968)Harsh Shandilya3-3/+111
(cherry picked from commit e3cf73885c112bc553d6a0cc01d594a87728f448)
2020-07-30Add "challenge" and "verification" to OTP heuristic terms (#984)Fabian Henneke1-0/+2
2020-07-29Upgrade to Kotlin 1.4 (#978)Harsh Shandilya10-39/+58
* build: uprev to Kotlin 1.4 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Remove explicit type argument Not required anymore with Kotlin 1.4 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * build: enable Kotlin 1.4 language features Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * all: add trailing commas where reasonable Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Fabian Henneke <FabianHenneke@users.noreply.github.com>
2020-07-29Add ability to change default branch (#977)Harsh Shandilya8-28/+80
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-29github: fix derp in PSL update workflow (#983)Harsh Shandilya1-1/+2
2020-07-29Fix TOTP import button check semantics (#982)Harsh Shandilya2-5/+4
* Improve TOTP checking semantics Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Fix return label Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * update CHANGELOG Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Move updateViewState() call outside with(binding) scope Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-28PasswordFragment: bring back dividers (#980)Harsh Shandilya1-0/+2
2020-07-27Disable Autofill compatibility for Firefox (#976)Fabian Henneke1-4/+12
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-27Fix delete store message formatting (#975)Fabian Henneke1-1/+1
2020-07-27Add specific warning for short key IDs in .gpg-id (#974)Fabian Henneke2-1/+6
2020-07-26Correctly set error on incorrect credentials (#972)Harsh Shandilya3-4/+5
2020-07-26Allow creating nested directoriesHarsh Shandilya2-1/+2
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-26CHANGELOG: updateHarsh Shandilya1-0/+5
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-26Show parent path on all typesHarsh Shandilya1-10/+9
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-26github: upload test reports on failureHarsh Shandilya1-0/+7
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-26build: update APK cruft exclusion listHarsh Shandilya1-3/+3
Generates a fairly decent size difference from the current release build $ diskus app/build/outputs/apk/free/release/app-free-release.apk 4.31 MB (4,308,992 bytes) $ diskus ~/APS-free_v1.10.1.apk 4.44 MB (4,444,160 bytes) Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-25Properly handle files without passwords (#969)Harsh Shandilya5-8/+67
* Properly handle files without passwords Fixes #967 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Fix tests Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Only look for TOTP URI Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-24Expand OTP and PasswordEntry tests (#968)Harsh Shandilya3-3/+111
2020-07-23Merge remote-tracking branch 'origin/release' into developHarsh Shandilya2-2/+6
* origin/release: build: prepare next development version build: bump version Prepare release 1.10.1 Add CHANGELOG entries for 1.10.1 (#961) Wire in fallback key selection flow (#958) Fix OpenPgpApi extra type confusion (#960) Fix a crash when parsing long key IDs (#959) Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-23README: clarify build types (#966)Harsh Shandilya1-0/+3
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-23build: prepare next development versionHarsh Shandilya1-2/+2
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-23build: bump versionHarsh Shandilya1-2/+2
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-07-23Prepare release 1.10.1GitHub Actions1-1/+5