From 8eefca2f5e268f2deb3661880fb6cb8c1831c0f3 Mon Sep 17 00:00:00 2001 From: Alexander Osokin Date: Fri, 6 Dec 2024 18:45:56 +0000 Subject: [PATCH] IOS-8716 Add warning message --- .../Localization/Resources/de.lproj/Localizable.strings | 1 + .../Localization/Resources/en.lproj/Localizable.strings | 1 + .../Localization/Resources/es.lproj/Localizable.strings | 1 + .../Localization/Resources/fr.lproj/Localizable.strings | 1 + .../Localization/Resources/it.lproj/Localizable.strings | 1 + .../Localization/Resources/ja.lproj/Localizable.strings | 1 + .../Localization/Resources/ru.lproj/Localizable.strings | 1 + .../Localization/Resources/uk-UA.lproj/Localizable.strings | 1 + .../Resources/zh-Hant.lproj/Localizable.strings | 1 + .../TangemSdk/UI/Views/UserCodes/EnterUserCodeView.swift | 6 +++++- 10 files changed, 14 insertions(+), 1 deletion(-) diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/de.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/de.lproj/Localizable.strings index 779dfddc..603a0af5 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/de.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/de.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "Scanne die Karte oder den Ring, um Benutzercodes zurückzusetzen"; "reset_codes_success_message" = "Code wurde erfolgreich zurückgesetzt"; "sign_multiple_chunks_part" = "Unterzeichnung von Teil %1$li von %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "Verwende Touch ID, um Zugangscodes in der App zu speichern"; "view_delegate_scan_description" = "Halte die Karte oder den Ring bis zum Ende des Vorgangs gedrückt, wie oben gezeigt"; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/en.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/en.lproj/Localizable.strings index 33aafaa2..3c394332 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/en.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/en.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "Scan card or ring to reset user codes"; "reset_codes_success_message" = "Code was reset successfully"; "sign_multiple_chunks_part" = "Signing part %1$li of %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "Use Touch ID to save access codes in the app"; "view_delegate_scan_description" = "Tap the card or ring as shown above and hold until the end of the operation"; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/es.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/es.lproj/Localizable.strings index c2ae53ec..b2d34e0b 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/es.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/es.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "Escanee la tarjeta para restablecer los códigos de usuario"; "reset_codes_success_message" = "El código se restableció correctamente"; "sign_multiple_chunks_part" = "Parte de firma %1$li de %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "Use Touch ID para guardar códigos de acceso en la aplicación"; "view_delegate_scan_description" = "Presione la tarjeta como se muestra arriba y manténgala presionada hasta que se complete la operación."; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/fr.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/fr.lproj/Localizable.strings index c32764cd..d15cbf2e 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/fr.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/fr.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "Scannez la carte pour réinitialiser les codes utilisateur"; "reset_codes_success_message" = "Le code a été réinitialisé avec succès"; "sign_multiple_chunks_part" = "Signature de la partie %1$li de %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "Utilisez Touch ID pour enregistrer les codes d'accès dans l'application"; "view_delegate_scan_description" = "Appuyez sur la carte comme indiqué ci-dessus et maintenez jusqu'à la fin de l'opération"; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/it.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/it.lproj/Localizable.strings index 28dfc12a..5f3d0cca 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/it.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/it.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "Scan card or ring to reset user codes"; "reset_codes_success_message" = "Code was reset successfully"; "sign_multiple_chunks_part" = "Signing part %1$li of %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "Use Touch ID to save access codes in the app"; "view_delegate_scan_description" = "Tap the card or ring as shown above and hold until the end of the operation"; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/ja.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/ja.lproj/Localizable.strings index fd618abb..c5f9b58b 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/ja.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/ja.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "カードをスキャンしてユーザーコードをリセットしてください"; "reset_codes_success_message" = "コードは正常にリセットされました"; "sign_multiple_chunks_part" = "%2$liのうち%1$li部分に署名しています"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "Touch IDを使用して、アプリにアクセスコードを保存します"; "view_delegate_scan_description" = "上記のようにカードをタップし、操作が完了するまでホールドし続けます。"; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/ru.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/ru.lproj/Localizable.strings index 758110cd..640d87f5 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/ru.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/ru.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "Отсканируйте карту или кольцо для сброса кода"; "reset_codes_success_message" = "Код успешно сброшен"; "sign_multiple_chunks_part" = "Подпись части %1$li из %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem никогда не продает кошельки вместе с кодом доступа"; "touch_id_localized_reason" = "Используйте Touch ID для сохранения кодов доступа в приложении"; "view_delegate_scan_description" = "Поднесите карту или кольцо, как показано выше, и удерживайте до конца операции"; "view_delegate_scan_description_format" = "Поднесите %@, как показано выше, и удерживайте до конца операции"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/uk-UA.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/uk-UA.lproj/Localizable.strings index 7a07e648..1561fecb 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/uk-UA.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/uk-UA.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "Відскануйте картку, щоб скинути код"; "reset_codes_success_message" = "Код успішно скинуто"; "sign_multiple_chunks_part" = "Підпис частини %1$li з %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "Використовуйте Touch ID для збереження кодів доступу в додатку"; "view_delegate_scan_description" = "Піднесіть картку, як показано вище, і утримуйте до кінця операції"; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/Common/Localization/Resources/zh-Hant.lproj/Localizable.strings b/TangemSdk/TangemSdk/Common/Localization/Resources/zh-Hant.lproj/Localizable.strings index 57d92594..7c130419 100644 --- a/TangemSdk/TangemSdk/Common/Localization/Resources/zh-Hant.lproj/Localizable.strings +++ b/TangemSdk/TangemSdk/Common/Localization/Resources/zh-Hant.lproj/Localizable.strings @@ -69,6 +69,7 @@ "reset_codes_scan_to_reset" = "掃卡重置用戶密碼"; "reset_codes_success_message" = "密碼重置成功"; "sign_multiple_chunks_part" = "簽署第 %1$li 部分,共 %2$li"; +"tangem_never_pregenerate_code_alert" = "Tangem never sells wallets along with the pre-generated access code"; "touch_id_localized_reason" = "使用 Touch ID 在應用程序中保存訪問密碼"; "view_delegate_scan_description" = "如上圖觸碰卡片並按住直到操作結束"; "view_delegate_scan_description_format" = "Tap the %@ as shown above and hold until the end of the operation"; diff --git a/TangemSdk/TangemSdk/UI/Views/UserCodes/EnterUserCodeView.swift b/TangemSdk/TangemSdk/UI/Views/UserCodes/EnterUserCodeView.swift index e241857f..04682b92 100644 --- a/TangemSdk/TangemSdk/UI/Views/UserCodes/EnterUserCodeView.swift +++ b/TangemSdk/TangemSdk/UI/Views/UserCodes/EnterUserCodeView.swift @@ -36,7 +36,11 @@ struct EnterUserCodeView: View { onCommit: onDone, shouldBecomeFirstResponder: true) .padding(.top, 16) - + + Text("tangem_never_pregenerate_code_alert".localized) + .foregroundColor(.gray) + .font(.system(size: 16)) + VStack(spacing: 16) { Spacer()