-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS-8687 New failed offline attestation flow #4443
Conversation
@@ -25,6 +26,7 @@ enum EmailType { | |||
return subject | |||
case .failedToPushTx: return Localization.feedbackSubjectTxPushFailed | |||
case .activatedCard: return Localization.feedbackSubjectPreActivatedWallet | |||
case .attestationFailed: return "Card attestation failed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Думаю не стоит вообще темы писем переводить, это же неудобно анализировать
@@ -192,6 +192,8 @@ extension Analytics { | |||
|
|||
case onboardingSeedScreenCapture = "[Onboarding / Seed Phrase] Screen Capture" | |||
|
|||
case onboardingOfflineAttestationFailed = "[Onboarding] Offline Attestation Failed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
группа такая, хоть это и не только на онбординге может быть
return Just(UserWalletRepositoryResult.error(error)) | ||
default: | ||
failedCardScanTracker.recordFailure() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не трекаем, а сразу показываем ошибку
@@ -90,24 +90,3 @@ enum UserWalletRepositoryUnlockMethod { | |||
} | |||
} | |||
} | |||
|
|||
enum UserWalletRepositoryError: String, Error, LocalizedError, BindableError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
унес без изменений логики
@@ -15,10 +15,6 @@ class AppPresenter { | |||
|
|||
private init() {} | |||
|
|||
func showError(_ error: Error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не использовалось больше
} | ||
|
||
extension BindableError where Self: Error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
из-за этого были проблемы, которые можно увидеть в DetailsViewModel, отрефачил на более простой и очевидный подход
Если оффлайн аттестация зафейлилась, то не даем больше продолжать даже на свой страх и риск.
небольшой рефак и чистка неиспользуемого кода
в сдк обновились строки и были изменения
tangem/tangem-sdk-ios@5f6d3eb
IOS-8687 Do not continue failed offline attestation tangem-sdk-ios#389