Skip to content

Commit

Permalink
CustomerInfo: add VerificationResult to description (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored Aug 25, 2023
1 parent d4145e6 commit 247dc1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/Identity/CustomerInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ import Foundation

let allEntitlementsDescription = self.entitlements.all.mapValues { $0.description }

let verificationResult: String

if #available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.2, *) {
verificationResult = self.entitlements.verification.debugDescription
} else {
verificationResult = "unknown"
}

return """
<\(String(describing: CustomerInfo.self)):
originalApplicationVersion=\(self.originalApplicationVersion ?? ""),
Expand All @@ -152,6 +160,7 @@ import Foundation
firstSeen=\(String(describing: self.firstSeen)),
originalAppUserId=\(self.originalAppUserId),
entitlements=\(allEntitlementsDescription)
verification=\(verificationResult)
>
"""
}
Expand Down

0 comments on commit 247dc1a

Please sign in to comment.