-
Notifications
You must be signed in to change notification settings - Fork 184
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
base: master
Are you sure you want to change the base?
Conversation
Maybe I should have used NSDictionaries instead of switches. Will refactor later. |
+1 |
}; | ||
|
||
NSDictionary *introductoryPrice = @{ | ||
@"price": product.introductoryPrice.price, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
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