Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release PR] Add StoreKit debugging menu options #3607

Open
wants to merge 1 commit into
base: release/1.116.0
Choose a base branch
from

Conversation

samsymons
Copy link
Collaborator

Task/Issue URL: https://app.asana.com/0/1199333091098016/1208862631410451/f
Tech Design URL:
CC:

Description:

This PR adds debug menu entries for viewing StoreKit metadata.

Optional E2E tests:

  • Run PIR E2E tests
    Check this to run the Personal Information Removal end to end tests. If updating CCF, or any PIR related code, tick this.

Steps to test this PR:

  1. Open the Debug menu -> Subscription section and check that the new debugging menu options are visible

Definition of Done:


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

menu.addItem(.separator())
let storefrontID = SKPaymentQueue.default().storefront?.identifier ?? "nil"
menu.addItem(NSMenuItem(title: "Storefront ID: \(storefrontID)", action: nil, target: nil))
let storefrontCountryCode = SKPaymentQueue.default().storefront?.countryCode ?? "nil"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API was deprecated in macOS 15, but it'll be a long time until we're dropping support for it so we're safe to use it here. This API is easier for this use that then new async option, but please let me know if you see an issue with using it.

@samsymons
Copy link
Collaborator Author

Phishing tests failed, but it looks unrelated and due to the same reason mentioned by Bartek in a couple MM channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant