Fix second typo (https://github.com/tikhop/TPInAppReceipt/issues/69)
This commit is contained in:
@@ -39,7 +39,7 @@ public enum IARError: Error
|
||||
case hashValidation
|
||||
case signatureValidation(SignatureValidationFailureReason)
|
||||
case bundleIdentifierVerification
|
||||
case bundleVersionVefirication
|
||||
case bundleVersionVerification
|
||||
}
|
||||
|
||||
/// The underlying reason the signature validation error occurred.
|
||||
|
||||
@@ -61,19 +61,19 @@ public extension InAppReceipt
|
||||
guard let v = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String,
|
||||
v == appVersion else
|
||||
{
|
||||
throw IARError.validationFailed(reason: .bundleVersionVefirication)
|
||||
throw IARError.validationFailed(reason: .bundleVersionVerification)
|
||||
}
|
||||
#elseif os(iOS) || os(watchOS) || os(tvOS)
|
||||
guard let v = Bundle.main.infoDictionary?["CFBundleVersion"] as? String,
|
||||
v == appVersion else
|
||||
{
|
||||
throw IARError.validationFailed(reason: .bundleVersionVefirication)
|
||||
throw IARError.validationFailed(reason: .bundleVersionVerification)
|
||||
}
|
||||
#elseif os(macOS)
|
||||
guard let v = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String,
|
||||
v == appVersion else
|
||||
{
|
||||
throw IARError.validationFailed(reason: .bundleVersionVefirication)
|
||||
throw IARError.validationFailed(reason: .bundleVersionVerification)
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user