Skip to content
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

CustomerInfo: add VerificationResult to description #3081

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I guess verificationResult is not technically part of the customerInfo but of EntitlementInfos... But I guess it's also related 1-1 currently, so I'm ok adding it to the description.

} 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