Commit Graph
5 Commits
Author SHA1 Message Date
Cesar de la VegaandNick Kohrn 7a6af74fd3 [EXTERNAL] Fix Typos in ReceiptStrings.swift (#3756) via @nickkohrn (#3760)
Merging #3756 into `main`

Co-authored-by: Nick Kohrn <nickkohrn@users.noreply.github.com>
2024-03-13 15:46:25 +01:00
NachoSoto e3f9a68d25 PurchasesReceiptParser: improved documentation to reference default (#2197)
The most obvious way to create `PurchasesReceiptParser` is using
`.init`.
In order to expose that we'd need to `override` `init` from an
`extension` because each (RC / `ReceiptParser`) `target` needs a
different `LoggerType`. However, `NSObject.init` can't be overridden
from an extension.

That's why the API exposes `default` instead. This will make the usage
clearer:

![Screenshot 2023-01-05 at 10 22
16](https://user-images.githubusercontent.com/685609/210852731-4ac7336a-90a9-4fa8-8135-a8bb723a3701.png)
2023-01-12 11:17:54 -08:00
NachoSoto d1b0c46bee PurchasesReceiptParser: added API to parse receipts from base64 string (#2200)
[CSDK-621].


[CSDK-621]:
https://revenuecats.atlassian.net/browse/CSDK-621?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2023-01-12 10:08:55 -08:00
NachoSoto 3b7c93c2b7 ReceiptParser: a few documentation improvements (#2189) 2022-12-22 11:24:27 -08:00
NachoSoto b3875a9380 Exposed PurchasesReceiptParser and AppleReceipt (#2153)
Initial step for [CSDK-17]. Fixes [CSDK-523].

### Changes:
- Renamed `ReceiptParser` to `PurchasesReceiptParser` to avoid name
collision with future SPM `ReceiptParser`
- Exposed `ReceiptParser`, `AppleReceipt`,
`PurchasesReceiptParser.Error`
- Added new types to `SwiftAPITester`
- Added docs to these types
- Moved `LoggerType` to be available to `ReceiptParser`
- Moved `DateFormatter+Extensions` to be available to `ReceiptParser`
- Moved `Codable+Extensions` to be available to `ReceiptParser`
- Created `ReceiptParserLogger` for `ReceiptParser`


[CSDK-17]:
https://revenuecats.atlassian.net/browse/CSDK-17?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

[CSDK-523]:
https://revenuecats.atlassian.net/browse/CSDK-523?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2022-12-22 10:09:12 -08:00