31 Commits

Author SHA1 Message Date
Mingshen Sun
d1de81d919 Refactor core data classes (#671) 2025-01-25 15:40:12 -08:00
Dominik Johs
f2a0c4ccf1 do not dismiss views when application is resumed (#605)
* do not dismiss views when application is resumed

* prevents the PasswordNavigationViewController and PasswordDetailTableViewController from being dismissed when the app is put to the background and then brought back to the foreground
* Instead, the PasswordEntities are re-fetched from the context by their path to handle the re-creation of the entities during an update process that could have run in the background

* update SwiftLint to version 0.50.*

* update SwiftFormat to 0.51.*

---------

Co-authored-by: Mingshen Sun <bob@mssun.me>
2023-03-09 21:33:19 -08:00
Danny Moesch
cdedff0d4d Use SwiftFormat version 0.49.x and enable some new rules (#527) 2021-12-27 17:57:11 -08:00
Danny Mösch
32b7c9b635 Some cleanup especially regarding method references (#516)
* Remove superfluous method arguments in method references

* Use 'Self' for internal static access

* Convert static to instance field in singleton class

* Remove class name prefix in references to local methods

* Remove nested frameworks in all extensions and frameworks
2021-10-02 20:46:07 -07:00
Danny Mösch
e1cbcb5d7a Add notification action to copy OTP or just inform about the copied OTP (#513)
* Add notification action to copy OTP or just inform about the copied OTP

The notification either shows the current OTP which can be copied by a notification action or it shows just a hint to inform about the copied OTP. This depends on the new option "autoCopyOTP".

* Extract method

* Set type and style one-time
2021-10-01 10:32:14 -07:00
Danny Mösch
763cddf540 Show notification with OTP after providing password through extension (#509)
* Allow to do something with a password after providing it in the extension
* Make fields non-nil
* Show OTP in notification after providing a password through extension
2021-09-20 00:50:05 -07:00
Danny Moesch
4b05d5b2ae Just provide a matching password in 'prepareInterfaceToProvideCredential'
Do not show the password list. This is not the task of this method.
2021-08-27 22:03:00 -07:00
Danny Moesch
bc2d9aa8e8 Present lock view only if needed for an action
* Do not present lock view in 'viewDidLoad' since this might be too early for an extension ("Not running foreground").
* Instead, show it for actions requiring authentication, e.g. showing the password list or providing a password, or only in 'viewDidAppear'.
* Refactor and lazily load other view controllers and data.
* Let credential providing view controllers decide when to hide themselves.
2021-08-27 22:03:00 -07:00
Danny Moesch
b3eef51a9d Rename method 2021-08-27 22:03:00 -07:00
Danny Moesch
ad4ed9419e Format code with SwiftFormat 2021-01-31 20:16:57 -08:00
Mingshen Sun
776884e894 Refactor and merge code of extensions 2021-01-10 13:40:17 -08:00
Mingshen Sun
571281b655 Fix matching algorithm in AutoFill 2021-01-03 22:01:24 -08:00
Mingshen Sun
1f2a0e5458 Fix issues when no PGP passphase and enabling passcode 2021-01-03 17:42:58 -08:00
Mingshen Sun
29d74c48e5 Support selects a credential identity from the QuickType bar 2021-01-03 15:08:15 -08:00
Mingshen Sun
d4669bbfcb Add suggested passwords in AutoFill 2021-01-02 22:13:48 -08:00
Mingshen Sun
40ac070232 Rewrite AutoFill extension 2020-12-31 21:46:50 -08:00
Mingshen Sun
50738fb740 Add navigation controller to the AutoFilll view 2020-12-30 22:46:17 -08:00
Danny Moesch
e8389eb262 Enable SwiftLint rule 'identifier_name' and handle all violations 2020-09-20 17:25:50 -07:00
Danny Moesch
fe380d4d65 Enable SwiftLint rule 'private_action' and fix all violations 2020-08-28 16:42:30 -07:00
Danny Moesch
7f9f0e43b2 Format code with SwiftFormat automatically in every build 2020-08-25 15:10:13 -07:00
Mingshen Sun
fcc8961e46 Fix fail-safe mechanism for other decryption scenarios 2020-04-18 22:42:25 -07:00
Mingshen Sun
e9c5b63c4b Refactor logic of request PGP key passphrase 2020-04-13 21:23:23 -07:00
Yishi Lin
6bf4716366 Better search results 2020-02-23 18:06:14 +08:00
Danny Moesch
a2edf41d33 Update SwiftyUserDefaults to current version 5.0.0 2020-01-01 19:03:04 -08:00
Yishi Lin
e332b1f3be Do not forget pgp passphrase on decryption error #296 2019-09-30 02:05:01 +08:00
Danny Moesch
730542d5bb Separate encryption/decryption logic for different frameworks used 2019-09-15 00:32:18 -07:00
Danny Moesch
ea37b40e2f Mark field 'gpgAgent' as never-nil 2019-07-20 22:59:22 +02:00
Yishi Lin
e967bb1f4c Add PGPAgent tests and minor updated 2019-07-20 00:41:45 +08:00
Yishi Lin
6ae4a02a01 Seperate PGPAgent from PasswordStore and add tests 2019-07-17 02:58:01 +08:00
David Beitey
d67c6b13cb Show category/folder text for autofill entries
Previously, the right-hand side of the autofill extension UI was empty;
the category/folder text for a password entry wasn't showing.

This adjusts the storyboard so the detail is being shown and updates the
underlying Swift code to support the fix.
2019-03-03 10:57:56 -08:00
Danny Moesch
d698f2e3c3 Use folder references for all groups and sort files/folders 2019-01-21 20:34:18 -08:00