-
Notifications
You must be signed in to change notification settings - Fork 94
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
Usage with Objective-C #84
Comments
I see the TPInAppReceipt uses structs. Structs cannot be accessed by Objective-C as far as i know. Could you provide a small wrapper class that exposes "receipt.activeAutoRenewableSubscriptionPurchases"? :-) |
Hi @MacMark, The best I can do for now is to suggest to create an umbrella/wrapper file and expose properties you're looking for. I've created an example that you can improve by adding an extra functionality. https://gist.github.com/tikhop/7d1215bbcea7fe8a3be3ce5ef25e15ee Best, |
* feature/objc-support: Fix typos Add extra initialization methods Fix initialization methods Fix initialization methods Fix initialization methods Fix localReceipt function Fix spm Make it possible to use library in objc project (#84)
Hi all,
i try to use TPInAppReceipt with an Objective-C project via CocoaPods. The
@import TPInAppReceipt;
works but the compiler does not recognize/see the classes like InAppReceipt.
Because the TPInAppReceipt classes look public it should be possible. I'm probably doing it wrong. Can you please give me a hint?
Kind regards,
Markus
The text was updated successfully, but these errors were encountered: