15 Commits

Author SHA1 Message Date
tikhop ca7761cfe4 chore: Code clean up 2024-02-08 23:05:13 +01:00
Pavel Tikhonenko eb79f08ac3 Fix crash when trying to decode receipt from StoreKitTest. InAppPurchase.originalPurchaseDate is nil in StoreKitTest. (https://github.com/tikhop/TPInAppReceipt/issues/83) 2021-04-03 22:55:40 +03:00
Pavel Tikhonenko 6d02bd8bca Parse app's age rating 2021-04-02 21:51:55 +03:00
Pavel Tikhonenko a05f3fe0b1 Use Date type instead of String for all variables containing dates 2021-04-02 21:51:55 +03:00
Pavel Tikhonenko 5438a00daf Fix typo (https://github.com/tikhop/TPInAppReceipt/issues/69) 2020-11-08 16:07:23 +03:00
Pavel Tikhonenko c22781f07e Testing receipt 2020-10-22 03:44:19 +03:00
Pavel Tikhonenko 808ba33c13 update gitignore 2020-09-16 14:42:24 +03:00
Pavel Tikhonenko 3444e334f3 Merge branch 'develop'
* develop: (29 commits)
  Switch from Int to Int32
  Performance improvemence
  Remove all PKCS7 stuff (move it to ASN1Swift); Parse payload without using extra decoder
  do not hardcode simulator uuid but use OS specific code
  Fix tests
  Improve PCKS7 decoding by changing the way we decoding sub elements for Payload
  use ISO8601DateFormatter for date parsing
  use ISO8601DateFormatter for date parsing
  fix minimum versions for ios and watchos
  Code cleanup
  All public fields of InAppReceip with a type Thu Aug  6 15:53:23 MSK 2020 must return value with a type Thu Aug  6 15:53:23 MSK 2020 not string
  Extract and use a proper SecKeyAlgorithm from receipt
  Handle StoreKitTest Certificate
  Validation works again
  Parse all receipt field including certificates and signature
  Extract signer infos from pkcs7
  Change receipt structure; prepare for signature and certificates decoding
  Refactoring: substitute legacy asn1 decoder with
  Refactoring:InAppReceipt wraps pkcs7 container and reads all data from it; Decode InAppReceiptPayload""
  Starting refactoring and migration on ASN.1 Decoder
  ...

# Conflicts:
#	Tests/TPInAppReceiptTests/MyDevice.swift
2020-09-16 14:34:20 +03:00
Pavel Tikhonenko 1ed3fb0f69 Remove all PKCS7 stuff (move it to ASN1Swift); Parse payload without using extra decoder 2020-08-16 02:16:29 +03:00
Pavel Tikhonenko fe13b71c02 Fix tests 2020-08-08 12:57:43 +03:00
Pavel Tikhonenko 182ef4a18f Extract and use a proper SecKeyAlgorithm from receipt 2020-08-05 23:57:42 +03:00
Pavel Tikhonenko 3ad5f841ef Validation works again 2020-08-05 21:20:40 +03:00
Pavel Tikhonenko ae031abaf2 Parse all receipt field including certificates and signature 2020-08-05 20:38:48 +03:00
Pavel Tikhonenko 21613eca58 Change receipt structure; prepare for signature and certificates decoding 2020-08-05 05:58:18 +03:00
Pavel Tikhonenko f84b753eca Integrate ASN1Decoder; Parse New In App Receipt format 2020-08-04 05:34:09 +03:00