PurchaseTester: Add Receipt Inspector UI#2249
Conversation
| #if os(macOS) | ||
| MenuBarExtra("ReceiptParser", systemImage: "doc.text.magnifyingglass") { | ||
| VStack { | ||
| ReceiptInspectorView() | ||
|
|
||
| Divider() | ||
|
|
||
| Button("Quit") { | ||
| NSApplication.shared.terminate(nil) | ||
| } | ||
| .keyboardShortcut("q") | ||
| .padding() | ||
| } | ||
| } | ||
| .menuBarExtraStyle(.window) | ||
| .defaultSize(width: 800, height: 1000) |
There was a problem hiding this comment.
the menubar UI, you can use it even without configuring the SDK
| .font(.title) | ||
| .padding() | ||
|
|
||
| TextField("Enter receipt text here (base64 encoded)", text: $encodedReceipt, onEditingChanged: { isEditing in |
There was a problem hiding this comment.
main UI, with text field for receipt text, shared secret and the text fields for the receipt
Codecov Report
@@ Coverage Diff @@
## main #2249 +/- ##
==========================================
- Coverage 85.90% 85.88% -0.02%
==========================================
Files 183 183
Lines 12125 12125
==========================================
- Hits 10416 10414 -2
- Misses 1709 1711 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
I mentioned this a while ago, I wonder what others think: |
|
sure! I don't really have a strong preference there. We do squash so after the PR is merged the commit message disappears, though, right? I added it this time to try out how the integration works, since I forgot to add it to the PR Title initially |
|
Right, I meant the PR title cause that'll become the commit message right? |
|
ohh 🤦 right, that makes sense. I'll remove it |
NachoSoto
left a comment
There was a problem hiding this comment.
I thought I already approved this, sorry.
**This is an automatic release.** ### Dependency Updates * Bump fastlane-plugin-revenuecat_internal from `738f255` to `9255366` (#2264) via dependabot[bot] (@dependabot[bot]) * Update `Gemfile.lock` (#2254) via Cesar de la Vega (@vegaro) ### Other Changes * `HTTPClient`: added support for sending `X-Nonce` (#2214) via NachoSoto (@NachoSoto) * `Configuration`: added (`internal` for now) API to load public key (#2215) via NachoSoto (@NachoSoto) * Replaced `Any` uses for workaround with `Box` (#2250) via NachoSoto (@NachoSoto) * `HTTPClientTests`: fixed failing test with missing assertions (#2262) via NachoSoto (@NachoSoto) * `HTTPClientTests`: refactored tests to use `waitUntil` (#2257) via NachoSoto (@NachoSoto) * PurchaseTester: Add Receipt Inspector UI (#2249) via Andy Boedo (@aboedo) * Adds dependabot (#2259) via Cesar de la Vega (@vegaro) * `StoreKit1WrapperTests`: avoid using `Bool.random` to fix flaky code coverage (#2258) via NachoSoto (@NachoSoto) * `IntroEligibilityCalculator`: changed logic to handle products with no subscription group (#2247) via NachoSoto (@NachoSoto)
Adds a new MenuBar UI to the PurchaseTester app on macOS.
The UI provides a quick utility to parse the local receipt and to check it against
/verifyReceipt. This makes it super easy to debug receipts using PurchaseTester.