Commit Graph
4 Commits
Author SHA1 Message Date
aboedo 4d6c7bd5b8 More tests for receipt parsing with storekit test (#1456)
* made a few attributes that aren't present in SKTest receipts optional, added test with IAP

* added more tests for every field in the receipt

* fixed a few places where `asDict` wasn't correctly considering nullability in the IAP receipt fields
2022-04-06 15:44:00 -03:00
aboedo fb193e37c8 Fix: ASN1 length calculation for indefinite-length (#1452)
* fixed length calculation for indefinite-length containers

* temporarily removed the early return from empty receipts

* fixed length calculation when parsing receipts with indefinite length

* fix linting
2022-04-06 11:02:59 -03:00
aboedo cab0053885 Fix: local receipt parsing for StoreKitTest - part 1 (#1446)
* added basic ugly test

* fixed local receipt parsing for sktest, broke regular receipt parsing temporarily

* updated length calculation so that it works for both storekit test and regular receipts

* updated test to allow for missing OriginalAppVersion in receipt

* fixed linting in imports

* fixed checks for non-storekitTest receipts

* added a longer comment to explain the length == 0 case

* cleaned up the still-ugly tests for the receipt parser
2022-04-05 16:18:06 -03:00
aboedo f5697de730 renamed Purchases folder to Sources (#1416)
* renamed `Purchases` folder to `Sources`

* temporarily enabling installation test jobs

* re-disabling installation test jobs
2022-03-28 11:53:24 -03:00