Skip to content

Commit

Permalink
Merge pull request #374 from onfido/release/29.2.0
Browse files Browse the repository at this point in the history
Release 29.2.0
  • Loading branch information
abozaidibrahimON authored Jul 20, 2023
2 parents 9f2ea62 + 5b58b8b commit 34c59a4
Show file tree
Hide file tree
Showing 50 changed files with 445 additions and 157 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

**Note**: If the strings translations change it will result in a MINOR version change, therefore you are responsible for testing your translated layout in case you are using custom translations. [More on language localisation](README.md#language-customisation)

## [29.2.0] - 2023-07-14

### Added

- Ability to customise logo and branding available on all Motion screens. This is an enterprise feature, please reach out to your CSM if you want to know more
- Adding translations for live feedback on wrong passport page or tilted document.
- Enable screen background colour customisation
- Enable explicitly setting the user interface style
- When using Studio, Selfie and Video are configured based on the configuration set in Studio

### Changed

- Increase document overlay width to 90% for all devices that do not have a 16:9 screen.

### Fixed

- Fixed umbrella header importing private header files
- Added missing Norwegian localisations for document capture. Improved Hungarian message for wrong document side detected.
- Fixed missing country setting issue on document capture Studio flow which affects capture UX and validations
- Fixed incorrect image quality messages being reported on document confirmation screen after 3 attempts
- Disabled swipe to dismiss gesture on loading screen in model presentation contexts
- Fixed reporting the incorrect NFC Media ID in flow response

## [29.1.0] - 2023-06-16

### Added
Expand Down
35 changes: 35 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

These guides below are provided to ease the transition of existing applications using the Onfido SDK from one version to another that introduces breaking API changes.

* [Onfido iOS SDK 29.2.0 Migration Guide](#onfido-ios-sdk-2920-migration-guide)
* [Onfido iOS SDK 29.1.0 Migration Guide](#onfido-ios-sdk-2910-migration-guide)
* [Onfido iOS SDK 29.0.0 Migration Guide](#onfido-ios-sdk-2900-migration-guide)
* [Onfido iOS SDK 28.1.0 Migration Guide](#onfido-ios-sdk-2810-migration-guide)
Expand Down Expand Up @@ -61,6 +62,40 @@ These guides below are provided to ease the transition of existing applications
* [Onfido iOS SDK 4.0.0 Migration Guide](#onfido-sdk-400-migration-guide)
* [Onfido iOS SDK 3.0.0 Migration Guide](#onfido-sdk-300-migration-guide)

## Onfido iOS SDK 29.2.0 Migration Guide

### String Changes

#### Added

The following string keys have been **added**:

- `onfido_doc_capture_alert_too_close_title` (no)

- `onfido_doc_capture_alert_rotated_title` (no)

- `onfido_doc_capture_alert_too_far_title` (no)

- `onfido_doc_capture_alert_wrong_side_front_title` (no)

- `onfido_doc_capture_alert_wrong_side_back_title` (no)

- `onfido_doc_capture_alert_hold_still_title` (no)


- `onfido_doc_capture_alert_photo_page_title` (en, fr, de, es, it, pt, nl)

- `onfido_doc_capture_alert_tilted_title` (en, fr, de, es, it, pt, nl)


#### Changed

The following string keys have been **changed**:

- `onfido_doc_capture_alert_wrong_side_back_title` (hu)



## Onfido iOS SDK 29.1.0 Migration Guide

### Deprecated API Changes
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ let package = Package(

.binaryTarget(
name: "Onfido",
url: "https://s3-eu-west-1.amazonaws.com/onfido-sdks/ios/Onfido-v29.1.0.zip",
checksum: "cf1b1b6a542db624d88bdcaa3f1763082f8c273e4d4b5bdcc1fac64cba48181d"
url: "https://s3-eu-west-1.amazonaws.com/onfido-sdks/ios/Onfido-v29.2.0.zip",
checksum: "968cb59540cd468201a7e8447f9f888cc6970d63789c274cdc8e2a3934f6d805"
),

.binaryTarget(
name: "OnfidoExtended",
url: "https://s3-eu-west-1.amazonaws.com/onfido-sdks/ios/OnfidoExtended-v29.1.0.zip",
checksum: "39ba0127c4f40df6dd91fa238b690d57f7867a7d6e5bf411d719eb2d0b139555"
url: "https://s3-eu-west-1.amazonaws.com/onfido-sdks/ios/OnfidoExtended-v29.2.0.zip",
checksum: "d3e8ad17d1799b2a1126e016ce5ab813d3ede4185114245451b3a3e80b27ab8f"
),


Expand Down
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1154,10 +1154,11 @@ appearance.primaryTitleColor = <DESIRED_UI_COLOR_HERE>
appearance.secondaryTitleColor = <DESIRED_UI_COLOR_HERE>
appearance.primaryBackgroundPressedColor = <DESIRED_UI_COLOR_HERE>
appearance.secondaryBackgroundPressedColor = <DESIRED_UI_COLOR_HERE>
appearance.backgroundColor = <DESIRED_UI_COLOR_HERE>
appearance.borderCornerRadius = <DESIRED_CGFLOAT_BORDER_RADIUS_HERE>
appearance.fontRegular = <DESIRED_FONT_NAME_HERE>
appearance.fontBold = <DESIRED_FONT_NAME_HERE>
appearance.supportDarkMode = <true | false>
appearance.setUserInterfaceStyle(<.unspecified | .light | .dark>)
appearance.captureSuccessColors = <CaptureSuccessColors object>
```
Expand All @@ -1169,10 +1170,11 @@ appearance.primaryTitleColor = <DESIRED_UI_COLOR_HERE>;
appearance.secondaryTitleColor = <DESIRED_UI_COLOR_HERE>;
appearance.primaryBackgroundPressedColor = <DESIRED_UI_COLOR_HERE>;
appearance.secondaryBackgroundPressedColor = <DESIRED_UI_COLOR_HERE>;
appearance.backgroundColor = <DESIRED_UI_COLOR_HERE>;
appearance.buttonCornerRadius = <DESIRED_CGFLOAT_BORDER_RADIUS_HERE>;
appearance.fontRegular = <DESIRED_FONT_NAME_HERE>;
appearance.fontBold = <DESIRED_FONT_NAME_HERE>;
appearance.supportDarkMode = <true | false>;
[appearance setUserInterfaceStyle: <.unspecified | .light | .dark>];
appearance.captureSuccessColors = <CaptureSuccessColors object>;
```
Expand All @@ -1181,10 +1183,11 @@ appearance.captureSuccessColors = <CaptureSuccessColors object>;
- `secondaryTitleColor`: Defines the secondary button text and border color
- `primaryBackgroundPressedColor`: Defines the primary button pressed state color
- `secondaryBackgroundPressedColor`: Defines the secondary button pressed state color
- `backgroundColor`: Defines the screen's background color
- `borderCornerRadius`: Defined border corner radius for all the buttons (default 5.0)
- `fontRegular`: Defines the custom font name for the regular style labels
- `fontBold`: Defines the custom font name for the bold style labels
- `supportDarkMode`: Defines if iOS Dark Mode will be enabled on SDK screens. The value is true by default.
- `interfaceStyle`: Defines the interface style. The value is unspecified by default.
**Note:** This property is applicable only for Xcode 11 and above built apps and devices running on iOS 13 and above
- `captureSuccessColors`: Defines the color values for the capture screen success auto capture state
- `borderColor`: Defines the border color of the area of interest in capture screen
Expand All @@ -1193,20 +1196,20 @@ appearance.captureSuccessColors = <CaptureSuccessColors object>;
**Dark Mode only UI customisation**
To just change `supportDarkMode`, you can use initialiser below:
To just change the user interface style to `.dark`, you can use initialiser below:
##### Swift
```Swift
let appearance = Appearance(supportDarkMode: <true|false>)
let appearance = Appearance(interfaceStyle: .dark)
let configBuilder = OnfidoConfig.builder()
configBuilder.withAppearance(appearance)
```
##### Objective-C
```Objective-C
ONAppearance *appearance = [[ONAppearance alloc] initWithSupportDarkMode:<true|false>];
ONAppearance *appearance = [[ONAppearance alloc] initWithInterfaceStyle:<.light|.dark|.unspecified>];

```
Expand Down Expand Up @@ -1427,8 +1430,8 @@ Check the following before you go live:
| User iOS Version | SDK Size Impact (MB) |
|------------------|-----------------------------------|
| 12.2 and above | 9.979|
| Below 12.2 | up to 9.979* or up to 19.236**|
| 12.2 and above | 10.025|
| Below 12.2 | up to 10.025* or up to 19.282**|
**\*** If the application is in Swift but doesn't include any Swift libraries that Onfido iOS SDK requires
Expand Down
2 changes: 1 addition & 1 deletion SampleApp/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def setup_shared_pods
use_frameworks!
inhibit_all_warnings!

pod 'Onfido', '29.1.0'
pod 'Onfido', '29.2.0'
end

target 'SampleApp' do
Expand Down
2 changes: 1 addition & 1 deletion SampleAppObjC/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def setup_shared_pods
use_frameworks!
inhibit_all_warnings!

pod 'Onfido', '29.1.0'
pod 'Onfido', '29.2.0'
end

target 'SampleAppObjC' do
Expand Down
37 changes: 21 additions & 16 deletions localization/Localizable_DE.strings
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@
"onfido_video_capture_body" = "Halten Sie Ihr Gesicht innerhalb des Ovals, um mit der Aufnahme zu beginnen";
"onfido_doc_confirmation_body_license" = "Die Informationen müssen deutlich lesbar sein, ohne Unschärfe oder Spiegelung";
"onfido_doc_confirmation_body_generic" = "Die Informationen müssen deutlich lesbar sein, ohne Unschärfe oder Spiegelung";
"onfido_doc_confirmation_body_id" = "Die Reisepass-Details müssen deutlich lesbar sein, ohne Unschärfe oder Spiegelung";
"onfido_doc_confirmation_body_id" = "Einzelheiten müssen klar lesbar sein, ohne Unschärfe oder Spiegelung";

/* Document capture confirmation */

"onfido_doc_confirmation_body_passport" = "Die Reisepass-Details müssen deutlich lesbar sein, ohne Unschärfe oder Spiegelung";
"onfido_doc_confirmation_body_passport" = "Einzelheiten müssen klar lesbar sein, ohne Unschärfe oder Spiegelung";
"onfido_doc_confirmation_body_permit" = "Die Informationen müssen deutlich lesbar sein, ohne Unschärfe oder Spiegelung";
"onfido_doc_confirmation_body_visa" = "Die Informationen müssen deutlich lesbar sein, ohne Unschärfe oder Spiegelung";

Expand Down Expand Up @@ -257,20 +257,20 @@

/* User consent */

"onfido_app_title_user_consent" = "Verify your identity";
"onfido_user_consent_prompt_no_consent_title" = "Are you sure?";
"onfido_user_consent_prompt_no_consent_detail" = "If you do not accept Onfido’s privacy statements and terms of service, we will not be able to verify your identity and you will exit this step.";
"onfido_user_consent_prompt_button_secondary" = "Review again";
"onfido_user_consent_prompt_button_primary" = "Yes, don’t verify me";
"onfido_user_consent_button_primary" = "Accept";
"onfido_user_consent_button_secondary" = "Do not accept";
"onfido_app_title_user_consent" = "Identität überprüfen";
"onfido_user_consent_prompt_no_consent_title" = "Bist du sicher?";
"onfido_user_consent_prompt_no_consent_detail" = "Wenn Sie die Datenschutzerklärungen und Nutzungsbedingungen von Onfido nicht akzeptieren, können wir Ihre Identität nicht überprüfen und Sie werden diesen Schritt beenden.";
"onfido_user_consent_prompt_button_secondary" = "Nochmal überprüfen";
"onfido_user_consent_prompt_button_primary" = "Ja, verifizieren Sie mich nicht";
"onfido_user_consent_button_primary" = "Akzeptieren";
"onfido_user_consent_button_secondary" = "Nicht akzeptieren";

/* User consent load error */

"onfido_app_title_user_consent_load_fail" = "Verify your identity";
"onfido_user_consent_load_fail_title" = "Content failed to load";
"onfido_user_consent_load_fail_detail" = "Check that your connection is stable, then try again";
"onfido_user_consent_load_fail_button_primary" = "Reload screen";
"onfido_app_title_user_consent_load_fail" = "Identität überprüfen";
"onfido_user_consent_load_fail_title" = "Inhalt konnte nicht geladen werden";
"onfido_user_consent_load_fail_detail" = "Prüfen Sie, ob Ihre Internetverbindung stabil ist, und versuchen Sie es dann erneut";
"onfido_user_consent_load_fail_button_primary" = "Bildschirm neu laden";
"onfido_country_select_search_results_none_accessibility" = "Keine Treffer";
"onfido_country_select_search_results_one_accessibility" = "Ein Ergebnis gefunden";
"onfido_country_select_search_results_multiple_accessibility" = "%d Ergebnisse gefunden";
Expand All @@ -285,7 +285,7 @@
"onfido_video_capture_turn_success_accessibility" = "Kopfdrehung erkannt";
"onfido_welcome_list_header" = "Benutzen Sie Ihr Gerät:";
"onfido_welcome_list_item_doc_photo" = "Machen Sie ein Foto von Ihrem Ausweisdokument";
"onfido_welcome_list_item_doc_generic" = "Scannen Sie Ihr Ausweisdokument";
"onfido_welcome_list_item_doc_generic" = "Nehmen Sie ein Video von Ihrem Identitätsdokument auf";
"onfido_welcome_list_item_face_photo" = "Machen Sie ein Foto von Ihrem Gesicht";
"onfido_welcome_list_item_face_video" = "Nehmen Sie ein Video von Ihrem Gesicht auf";
"onfido_doc_capture_header_live_guidance_no_doc" = "Bitte halten Sie Ihr Handy über das Dokument.";
Expand Down Expand Up @@ -558,7 +558,7 @@
"onfido_nfc_scan_error_list_item" = "Entfernen Sie die Hülle Ihres Telefons";
"onfido_nfc_scan_error_list_item_2" = "Sobald der Scan beginnt, halten Sie still";
"onfido_nfc_scan_error_button_primary" = "Scannen wiederholen";
"onfido_welcome_nfc_title" = "";
"onfido_welcome_nfc_title" = "Identität überprüfen";
"onfido_welcome_nfc_subtitle" = "";
"onfido_welcome_nfc_list_header_nfc" = "";
"onfido_welcome_nfc_list_item" = "";
Expand All @@ -575,7 +575,7 @@
"onfido_nfc_scan_lost-contact_sheet_3" = "Kontakt mit NFC-Karte verloren\nBewegen Sie Ihr Gerät leicht nach oben oder unten.";
"onfido_nfc_scan_lost-connection_sheet_4" = "Verbindung verloren\nWir konnten Ihr Dokument nicht scannen";
"onfido_nfc_scan_incorrect-can_sheet_5" = "Falsches CAN";
"onfido_enter_can_error_label" = "Sie haben noch %d %@ übrig.";
"onfido_enter_can_error_label" = "Sie haben noch %1$d %2$s übrig.";
"onfido_enter_can_substring_attempt_singular" = "Versuch";
"onfido_enter_can_substring_attempt_plural" = "Versuche";
"onfido_nfc_scan_error_button_secondary" = "Lassen Sie sich ohne NFC verifizieren";
Expand Down Expand Up @@ -659,3 +659,8 @@
"onfido_doc_capture_alert_wrong_side_front_title" = "Auf die Vorderseite drehen";
"onfido_doc_capture_alert_wrong_side_back_title" = "Auf die Rückseite drehen";
"onfido_doc_capture_alert_hold_still_title" = "Stillhalten";

"onfido_doc_capture_alert_photo_page_title" = "Nur Fotoseite anzeigen";
"onfido_doc_capture_alert_tilted_title" = "Halten Sie das Dokument gerade";
"ai-test" = "Zahlen Sie €0,01 ein";
"onfido_doc_capture_header_recording_video" = "Videoaufnahme";
9 changes: 7 additions & 2 deletions localization/Localizable_EN.strings
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
"onfido_video_capture_turn_success_accessibility" = "Head turn detected";
"onfido_welcome_list_header" = "Use your device to:";
"onfido_welcome_list_item_doc_photo" = "Take a photo of your identity document";
"onfido_welcome_list_item_doc_generic" = "Scan your identity document";
"onfido_welcome_list_item_doc_generic" = "Record a video of your identity document";
"onfido_welcome_list_item_face_photo" = "Take a photo of your face";
"onfido_welcome_list_item_face_video" = "Record a video of your face";
"onfido_doc_capture_header_live_guidance_no_doc" = "Hold your phone over the document";
Expand Down Expand Up @@ -575,7 +575,7 @@
"onfido_nfc_scan_lost-contact_sheet_3" = "Lost contact with NFC card\nMove your device slightly up or down.";
"onfido_nfc_scan_lost-connection_sheet_4" = "Lost connection\nWe couldn’t scan your document";
"onfido_nfc_scan_incorrect-can_sheet_5" = "Incorrect CAN";
"onfido_enter_can_error_label" = "You have %d %@ left.";
"onfido_enter_can_error_label" = "You have %1$d %2$s left.";
"onfido_enter_can_substring_attempt_singular" = "attempt";
"onfido_enter_can_substring_attempt_plural" = "attempts";
"onfido_nfc_scan_error_button_secondary" = "Get verified without NFC";
Expand Down Expand Up @@ -659,3 +659,8 @@
"onfido_doc_capture_alert_wrong_side_front_title" = "Flip to front side";
"onfido_doc_capture_alert_wrong_side_back_title" = "Flip to back side";
"onfido_doc_capture_alert_hold_still_title" = "Hold still";

"onfido_doc_capture_alert_photo_page_title" = "Show photo page only";
"onfido_doc_capture_alert_tilted_title" = "Hold document straight";
"ai-test" = "Deposit €0.01";
"onfido_doc_capture_header_recording_video" = "Recording video";
9 changes: 7 additions & 2 deletions localization/Localizable_ES.strings
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
"onfido_video_capture_turn_success_accessibility" = "Se detectó un giro de cabeza";
"onfido_welcome_list_header" = "Utilice su dispositivo para:";
"onfido_welcome_list_item_doc_photo" = "Tome una foto de su documento de identidad";
"onfido_welcome_list_item_doc_generic" = "Escanee su documento de identidad";
"onfido_welcome_list_item_doc_generic" = "Grabe un video de su documento de identidad";
"onfido_welcome_list_item_face_photo" = "Tome una foto de su cara";
"onfido_welcome_list_item_face_video" = "Grabe un vídeo de su cara";
"onfido_doc_capture_header_live_guidance_no_doc" = "Mantenga el documento encima del documento";
Expand Down Expand Up @@ -575,7 +575,7 @@
"onfido_nfc_scan_lost-contact_sheet_3" = "Pérdida de contacto con la tarjeta NFC\nMueva su dispositivo ligeramente hacia arriba o hacia abajo.";
"onfido_nfc_scan_lost-connection_sheet_4" = "Conexión perdida\nNo hemos podido escanear su documento";
"onfido_nfc_scan_incorrect-can_sheet_5" = "CAN incorrecto";
"onfido_enter_can_error_label" = "Te quedan %d %@.";
"onfido_enter_can_error_label" = "Te quedan %1$d %2$s.";
"onfido_enter_can_substring_attempt_singular" = "intente";
"onfido_enter_can_substring_attempt_plural" = "intentos";
"onfido_nfc_scan_error_button_secondary" = "Verifícate sin NFC";
Expand Down Expand Up @@ -659,3 +659,8 @@
"onfido_doc_capture_alert_wrong_side_front_title" = "Voltear hacia el frente";
"onfido_doc_capture_alert_wrong_side_back_title" = "Voltear hacia atrás";
"onfido_doc_capture_alert_hold_still_title" = "No se mueva";

"onfido_doc_capture_alert_photo_page_title" = "Mostrar solo la página de la foto";
"onfido_doc_capture_alert_tilted_title" = "Sostenga el documento recto";
"ai-test" = "";
"onfido_doc_capture_header_recording_video" = "Grabando vídeo";
Loading

0 comments on commit 34c59a4

Please sign in to comment.