Skip to content

Commit

Permalink
IOS-3290 Fix docs and uncomment the precheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Apr 4, 2023
1 parent 7191113 commit 18ba08d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion TangemSdk/TangemSdk/Common/Card/Card.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct Card: Codable, JSONStringConvertible {
public let issuer: Issuer
/// Card setting, that were set during the personalization process
public var settings: Settings
/// Card settings, that were set during the personalization process anc can be changed by user directly
/// Card settings, that were set during the personalization process and can be changed by user directly
public internal(set) var userSettings: UserSettings
/// When this value is `current`, it means that the application is linked to the card,
/// and COS will not enforce security delay if `SignCommand` will be called
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class SetResettingUserCodesAllowedTask: CardSessionRunnable {
private let isResettingUserCodesAllowed: Bool

/// Default initializer
/// - Parameter isResettingUserCodesAllowed: Is this card can reset user codes on tte other linked card or not
/// - Parameter isResettingUserCodesAllowed: Is this card can reset user codes on the other linked card or not
public init(isResettingUserCodesAllowed: Bool) {
self.isResettingUserCodesAllowed = isResettingUserCodesAllowed
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

import Foundation

/// Deserialized response from the Tangem card after `SetUserSettingsCommand`. COS v.6.10+
/// Deserialized response from the Tangem card after `SetUserSettingsCommand`. COS v.6.11+
@available(iOS 13.0, *)
struct SetUserSettingsCommandResponse: JSONStringConvertible {
/// Unique Tangem card ID number.
let cardId: String
/// The mask was set
/// The mask that was set
let settings: Card.UserSettings
}

/// Set user serrings on a card. COS v.6.10+
/// Set user serrings on a card. COS v.6.11+
@available(iOS 13.0, *)
class SetUserSettingsCommand: Command {
var preflightReadMode: PreflightReadMode { .readCardOnly }
Expand All @@ -33,9 +33,9 @@ class SetUserSettingsCommand: Command {
}

func performPreCheck(_ card: Card) -> TangemSdkError? {
// guard card.firmwareVersion >= .externalWalletsAvailable else {
// return TangemSdkError.notSupportedFirmwareVersion
// }
guard card.firmwareVersion >= .keysImportAvailable else {
return TangemSdkError.notSupportedFirmwareVersion
}

return nil
}
Expand Down

0 comments on commit 18ba08d

Please sign in to comment.