Commit graph

961 commits

Author SHA1 Message Date
Danny Moesch
f9c19b3ca4 Migrate to Swift 5.0 2019-05-01 18:30:13 +02:00
Danny Moesch
e06413b348 Add default value to non-optional DefaultsKeys 2019-05-01 18:30:13 +02:00
Danny Moesch
5eb8ce5bb0 Adjust "developmentRegion" 2019-05-01 17:10:16 +02:00
Danny Moesch
89c0d3c98e Assign nil by unwrapping optional 2019-05-01 17:09:34 +02:00
Danny Moesch
9e0d60989b Remove unnecessary returns 2019-05-01 17:08:44 +02:00
David Beitey
1dfaf7c1d2 Localise extensions by copying bundle resources
Previously, the Pass extensions (for autofill and for the sharing sheet)
didn't see their strings being localised. This means that in some cases,
English was the only thing shown and in others strings would look like
`#EnterPasscode#` on the passcode lock screen.  This was because their
build phases didn't reference the localised string files in the `Copy
Bundle Resources` phase.

This change ensures these localisation files are copied and thus the
extensions are now localised for both English and German (so far).
2019-03-08 21:00:24 -08:00
Yishi Lin
32dd3e31ea
Merge pull request #253 from davidjb/hide-placeholder-image
Hide placeholder image when Hide Password Images is on
2019-03-08 11:45:04 +08:00
David Beitey
1e5022e404 Hide placeholder with Hide Password Images on
This hides the password image placeholder when `Hide Password Images` is
enabled. Auto-layout constraints are toggled on and off depending on the
setting's value to ensure correct alignment.

Extends #248
2019-03-08 00:30:36 +10:00
Danny Moesch
296a3cbcfa Introduce enum for scope of search bar
This simplifies the handling of the indices in the search bar scope list, replaces strings as keys and allows a proper localization not breaking any logic.
2019-03-05 13:51:39 -08:00
Danny Moesch
553f5ba62b Add German translation for password image hiding option 2019-03-05 13:47:12 -08:00
Danny Moesch
c9a370832f Improve German translation for "About" views 2019-03-05 13:47:12 -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
David Beitey
f98d56753b Add ability to hide password images
This disables loading of favicon images associated with password entries
and hides any images that are already loaded, using the generic icon
instead.

The key benefit to this option is to prevent passforios revealing that a
given device has a password in its store, which could be gleaned from
the fact that favicons are being loaded in this manner.
2019-03-03 10:54:30 -08:00
Danny Moesch
8351c16d75 Compute heights of TableViewCells automatically
This is necessary because different languages need different amounts of space. Especially text fields with some more text need to be variable in their heights.
2019-02-23 14:22:27 -08:00
Danny Moesch
73a015616a Support German language 2019-02-23 14:22:27 -08:00
Danny Moesch
3cf55d91ff Display last updated date in absolut instead of relative form
This is necessary to have a language independent representation. For example, the previous format would have produced a grammatically wrong term in German.
2019-02-23 14:22:27 -08:00
Danny Moesch
116e258d05 Localize more strings in password view 2019-02-23 14:22:27 -08:00
Danny Moesch
936d91e415 Add missing dot 2019-02-23 14:22:27 -08:00
Danny Moesch
d698f2e3c3 Use folder references for all groups and sort files/folders 2019-01-21 20:34:18 -08:00
Danny Moesch
38b44cedf8 Add missing error messages and name them consistently
Since the AppError enum is suffixed with 'Error', the elements itself do not need this suffix, too.
2019-01-20 21:04:04 -08:00
Danny Moesch
08c91599b6 Use | operator to concatenate multiline strings 2019-01-20 21:04:04 -08:00
Danny Moesch
2fdd3fd6ec Localize also multiline strings 2019-01-20 21:04:04 -08:00
Danny Moesch
804a0f06bf Add missing SSH private key localization string 2019-01-20 21:04:04 -08:00
Danny Moesch
07b4bf8e8c Fix wrong string 2019-01-20 21:04:04 -08:00
Danny Moesch
df2b5314a1 Correct distance between text blocks 2019-01-20 21:04:04 -08:00
Danny Moesch
10227b8750 Fix typo 2019-01-20 21:04:04 -08:00
Danny Moesch
9827f3672b Localize strings in UI 2019-01-20 21:04:04 -08:00
Danny Moesch
1b4040135e Localize strings in code 2019-01-20 21:04:04 -08:00
Danny Moesch
2d5ca58bd9 Use PasswordGeneratorFlavor class to set user defaults and UI elements 2019-01-20 21:04:04 -08:00
Danny Moesch
857a8f44bf Prepare for localization 2019-01-20 21:04:04 -08:00
Mingshen Sun
88481ad2b0
Release 0.5.1 and version bump to 0.6.0 2019-01-13 18:48:10 -08:00
Mingshen Sun
22d748dca6
Reset the row height to default 2019-01-13 16:05:57 -08:00
Danny Moesch
97d79c64e0 Place "branch name" text field over "user name" text field 2019-01-13 15:34:01 -08:00
Danny Moesch
6b4dbd50a9 Support custom branches (#236) 2019-01-13 15:34:01 -08:00
Danny Moesch
744b46adc2 Do not show 0 if numbers in "About Repository" cannot be obtained properly 2019-01-12 16:36:37 -08:00
Danny Moesch
f47e7d384c Show correct number of commits in "About Repository" 2019-01-12 16:36:37 -08:00
Danny Moesch
c18b70e7d7 Use XCTAssert instead of XCTAssertTrue 2018-12-18 10:06:45 -08:00
Danny Moesch
ae57042f36 Make sure unknowns and OTP fields are not hidden in PasswordTest 2018-12-18 10:06:45 -08:00
Danny Moesch
64956c6643 Simplify code 2018-12-18 10:06:45 -08:00
Danny Moesch
9e027b878a Replace TableCell struct with AdditionField 2018-12-18 10:06:45 -08:00
Mingshen Sun
ed387069a4
lint: delete trailing whitespaces 2018-12-09 16:59:07 -08:00
Danny Moesch
2ba6917710 Test also counting of unknown and OTP related fields 2018-12-08 21:15:51 -08:00
Danny Moesch
e019f6ac9d Introduce some helper methods in TestBase to simplify PasswordTest 2018-12-08 21:15:51 -08:00
Danny Moesch
fa12a6f046 Move constants from ParserTest to TestBase 2018-12-08 21:15:51 -08:00
Danny Moesch
57acc6ecb5 Move helper methods from PasswordTest to common TestBase 2018-12-08 21:15:51 -08:00
Danny Moesch
5780a439db Show number of hidden fields in password view 2018-12-08 21:15:51 -08:00
Danny Moesch
68dd60fb8e Introduce utility methods to test for unknowns and OTP keywords 2018-12-08 21:15:51 -08:00
Danny Moesch
bb6e44950f Add missing word 2018-12-08 21:11:58 -08:00
Danny Moesch
7f330fbeed Use HTTPS for URLs by default 2018-12-08 21:11:58 -08:00
Danny Moesch
f8f858f15e Pass content of URL field to 'openLink' method
Previously, 'openLink' has chosen the first URL field contained in the
password file. Since the action "Copy & Open" is performed on a specific
field, only its content should be considered.
2018-12-08 21:11:58 -08:00