github superwall/Superwall-iOS 1.0.7
CocoaPod & Objective C++ Support

latest releases: 4.8.1, 4.8.0, 4.7.0...
4 years ago

This release adds a Pod Spec file to let customers install the SDK via CocoaPods. Additionally this release allows for use of the SDK with Objective-C++ codebases.

To install via coacopods, simply add this line to your Podfile

pod 'Paywall', :git => 'https://github.com/superwall-me/paywall-ios.git', :tag => '1.0.7'

To get up and running with Objective-C++, please our example application. The documentation has also been updated to callout relevant changes.

The biggest gotchas lie in the importing of Paywall-iOS. Instead of using #import @Paywall; Objective-C++ requires that you use #import <Paywall/Paywall-Swift.h>. However, you must also include definitions of two protocols, so in total the import should look as follows (in an .h file):

@protocol SKPaymentTransactionObserver;
@protocol SKProductsRequestDelegate;
#import <Paywall/Paywall-Swift.h>

Don't miss a new Superwall-iOS release

NewReleases is sending notifications on new releases.