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

Introductory Price parsing (#186) #196

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

whtlnv
Copy link

@whtlnv whtlnv commented Sep 22, 2018

Parsing SKProduct's introductoryPrice if available (on iOS 11.2+), returned as an object with all properties on the native object. Enum's parsed as strings.

Tested on iOS 9.3 and 11.4 devices, and iOS 12 emulators with products without introductoryPrice, free trials and pay as you go.

Readme updated

@whtlnv
Copy link
Author

whtlnv commented Sep 22, 2018

Maybe I should have used NSDictionaries instead of switches. Will refactor later.

@markgardner
Copy link

+1

};

NSDictionary *introductoryPrice = @{
@"price": product.introductoryPrice.price,

Choose a reason for hiding this comment

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

It would be nice to get the localized price string here. Similar to the product implementation.

Copy link

@YannickDot YannickDot May 2, 2019

Choose a reason for hiding this comment

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

I couldn't add my commits in this PR so I made new one with the changes you requested (#206)

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.

3 participants