Commit Graph
4 Commits
Author SHA1 Message Date
Mark VillacampaandNachoSoto 84806ad86e Improve sandbox detector for macOS apps (#3549)
Checking for the presence of `Xcode/DerivedData` in the receipt path was
failing for TestFlight builds or if the .app bundle generated by Xcode
was moved from the folder.

Additionally, checking for `MASReceipt/receipt` seems less robust than
simply using compiler directives.

Instead, for macOS apps, we check the environment embedded in the receipt and alternatively check the signature of the app bundle.

---------

Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
2024-01-09 19:12:47 +01:00
NachoSoto d80bcc99a8 PurchaseTester: fixed watchOS build and ASC deployment (#2701) 2023-06-25 22:49:28 -07:00
NachoSoto 64a9f42a6c PurchaseTester: ignore errors when restoring purchases (#2228)
See #2211.

If `restorePurchases` fails for any reason, we still want to try to load
the local receipt. We're only interested in refreshing the receipt to
load it.
2023-01-18 14:20:53 -08:00
NachoSoto 4b1c3d1e71 PurchaseTester: added section to visualize AppleReceipt (#2211)
Fixes [CSDK-626].

Depends on #2199, #2200, #2202, #2203, #2204, #2210.

![Simulator Screen Shot - iPhone 14 Pro Max - 2023-01-12 at 09 59
26](https://user-images.githubusercontent.com/685609/212144932-4dd83560-69cd-44c5-9611-100ad35ba525.png)


[CSDK-626]:
https://revenuecats.atlassian.net/browse/CSDK-626?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2023-01-17 13:49:00 -08:00