aboutsummaryrefslogtreecommitdiff
path: root/app/src/androidTest
AgeCommit message (Collapse)Author
2021-05-17fix(tests): return null/default values from faked android sdkSphericalKat
fixes behaviour of getFilesDir Signed-off-by: SphericalKat <amolele@gmail.com>
2021-05-15all: reformat with Spotless againHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-04-19Migrate some tests to Robolectric (#1389)Harsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-04-18app: switch to format-common's PasswordEntryHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-03-18all: reformat with ktfmtHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-03-18all: update copyrightsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-02-03Rework clear clipboard feature (#1295)Harsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-12-05Refactor package structure (#1233)Harsh Shandilya
* idea: default test runner to Gradle * Kick off package structure revamp * Reparent all classes under dev.msfjarvis.aps Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-09-05Otp: use runCatching to replace exception handlingHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-27Expand show hidden folders to also cover files (#1059)Harsh Shandilya
* PasswordItem: only strip .gpg suffixes Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Add preference key and migration for showing all hidden contents Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Allow showing both hidden files and directories Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Add tests for hidden folder setting migration Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Add changelog entry Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Slightly improve migration logic Skip migration if old key is not found and always delete the previous key even if its set to false. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Tweak wording Suggested-by: Fabian Henneke <fabian@henneke.me> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Assert previous key's removal in tests Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-08-26Get rid of explicit Git server protocol (#1054)Fabian Henneke
* Double check Git server protocol Ensure that the Git server protocol is not at odds with the URL scheme. Also move the Protocol switches below the URL to make it clear that the URL should be entered first. * Remove protocol selection from server config The protocol is now extracted from the URL, and the authentication mode selection is validated by GitSettings Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Don't use pref values for auth modes Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Apply suggestions from code review Remove now unused protocol mismatch result type Co-authored-by: Fabian Henneke <FabianHenneke@users.noreply.github.com> * Simplify migration logic and fix tests Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Revert "Simplify migration logic and fix tests" This reverts commit 1c4c4ba5fbc212843cb6b74dd29ac858eaea7582. * Detect URLs with null scheme as ssh * Add changelog entry Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev> Co-authored-by: Harsh Shandilya <msfjarvis@gmail.com>
2020-08-26Rename ConnectionMode to AuthMode and remove clone_ prefix (#1053)Fabian Henneke
2020-08-24Improve Git server config activity (#1051)Fabian Henneke
2020-08-11Switch to URL-based Git config and refactor Git settings (#1008)Fabian Henneke
* 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-07-25Properly handle files without passwords (#969)Harsh Shandilya
* 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 Shandilya
2020-07-14Fix navigation bar theming and reformat (#930)Harsh Shandilya
2020-06-29Reintroduce TOTP support (#890)Harsh Shandilya
Co-authored-by: Fabian Henneke <fabian@henneke.me>
2020-05-28Remove HOTP/TOTP support (#806)Harsh Shandilya
2020-05-23Fix tests for #778Harsh Shandilya
And this is why you rebase your PRs before merging :^) Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-05-17Add tests for GitServerConfigActivity (#783)Harsh Shandilya
* Add tests for GitServerConfigActivity * github: disable animations before running UI tests Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2020-05-10Treewide codestyle cleanup (#765)Harsh Shandilya
- Updated gitignore and checked in the IDE's codestyle config - Removed spotless as the underlying ktlint backend has failed to resolve the super frustrating import order bug[1] in nearly a year - Reformat the entire codebase based on the previously committed code style configuration. 1: https://github.com/pinterest/ktlint/issues/527
2020-05-06PasswordEntry: add more potential fields for username (#764)Harsh Shandilya
2020-04-17Enable emulator tests (#708)Harsh Shandilya
* github: Enable instrumentation testing in PRs Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Upgrade to Gradle 6.3 Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Remove outdated and broken tests, redo PasswordEntryTest in Kotlin Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Remove now unused test assets Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * github: Disable debug APK uploads in PR testing Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update .github/workflows/pull_request.yml * Update .github/workflows/pull_request.yml Switching to Ubuntu fails due to the SDK 29 missing. Co-authored-by: Fabian Henneke <FabianHenneke@users.noreply.github.com>
2020-04-15Address review commentsFabian Henneke
2020-04-15Match any path component in StrictDomain FilterModeFabian Henneke
2020-04-15Make existing tests buildable againFabian Henneke
2020-01-30Update license headers (#625)Harsh Shandilya
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-11-06treewide: Reformat with latest ktlintHarsh Shandilya
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-10-01Redesign UI and introduce dark theme (#519)Harsh Shandilya
Caveats: - The openpgp preference had to be removed because the open-intents developers are too lazy to update their libraries. Over the coming weeks I will be reimplementing a local solution for this instead. - The autofill dialog is broken but I since it is being worked on in #410 already I'm not going to bother fixing it.
2019-05-31Fix instrumentation testsHarsh Shandilya
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-02-28Fix clear clipboard 20 times history (#465) (#487)rk0n
2018-10-12Migrate to AndroidX (#430)Harsh Shandilya
* Update gradle and external dependencies - Switch away from deprecated compile directive - Remove explicit buildToolsVersion, is defined by the gradle plugin now - Fix build in SelectFolderActivity Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Upgrade gradle plugin and wrapper to latest alpha Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Don't use alpha gradle plugin Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Migrate to AndroidX https://developer.android.com/jetpack/androidx/ Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Upgrade AndroidX dependencies to stable release Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * Enable Jetifier Signed-off-by: Harsh Shandilya <harsh@prjkt.io> * SelectFolderFragment: Fix build Signed-off-by: Harsh Shandilya <harsh@prjkt.io>
2018-09-25Display HOTP code if password contains HOTP secret, unify HOTP and TOTP code ↵Joel Beckmeyer
(#413) * Display HOTP code if password contains HOTP secret, unify HOTP and TOTP code * Add ability to show HOTP instead of showing every decrypt * Fix off by 1 error * fix return intent logic so that edits and HOTP increments are properly committed * fix linting errors * Fix broken logic for case when a password is created * add ability to choose if password entry will be updated on HOTP code calculation
2017-11-19Display TOTP code if entry contains OTP secretWiktor Kwapisiewicz
TOTP is calculated on display and on copy to clipboard from secret embedded in entry (either in password or in extra) and the current time.
2017-08-10check that encryption workszeapo
2017-08-10initial work on encrypt testingMohamed Zenadi
2017-08-10remove useless codeMohamed Zenadi
2017-08-10wait a little bit more for decryptionMohamed Zenadi
2017-08-10fix rebase errorMohamed Zenadi
2017-08-10Ensure that we have a single `/`Mohamed Zenadi
2017-08-10add copy and clipboard clearing testsMohamed Zenadi
this would have avoided the regression in .66 :)
2017-08-10decrypt test finally workingMohamed Zenadi
2017-08-10Add Espresso for testingMohamed Zenadi
2017-08-10remove useless tests before writing new onesMohamed Zenadi
2017-08-02Fix more lint (#325)Felix Bechstein
* fix/ignore lint errors, run lint on travis * fix/ignore some lint warnings
2017-07-25Fix lint warnings (#319)Felix Bechstein
* Fix lint errors/warnings Fix a lot of lint errors and warnings. Most things are automatically applied fixes done with android studio: * externalize strings * remove unused code / classes / layouts / imports * migrate some fields to local variables * Remove dead code from comments Removed code that is commented out long ago. * remove unused resources * colors * strings * drawables * layouts * menus
2017-07-22Parse username from password entry, refs #192 (#318)Felix Bechstein
This is a first step of letting APS handle usernames from password entries. It shows the username in PgpHandler and allows to copy it to the clipboard.
2015-06-20version bumpv1.2.0.23Mohamed Zenadi
2015-03-10disable the test until we setup a git repo for testingMohamed Zenadi