tikhop / TPInAppReceipt

Reading and Validating In App Purchase Receipt Locally.
MIT License
636 stars 95 forks source link

Validation issue #28

Closed chrisvanbuskirk closed 5 years ago

chrisvanbuskirk commented 5 years ago

#if os(iOS) || os(watchOS) || os(tvOS) guard let v = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String, v == originalAppVersion else { throw IARError.validationFailed(reason: .bundleVersionVefirication) }

Should be CFBundleVersion and compared to appVersion not originalAppVersion.

tikhop commented 5 years ago

@chrisvanbuskirk thank you.

Fixed.

chrisvanbuskirk commented 5 years ago

Thanks for fixing...however, you might want to address the Mac side, which I believe is CFBundleShortVersionString instead. Also, might be appVersion not originalAppVersion.

tikhop commented 5 years ago

@chrisvanbuskirk thanks again. Just made a fix, pushing in a bit.