Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
v3.0.32
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Harwood authored and Louis Harwood committed Feb 14, 2018
1 parent 91a53c8 commit 4e13f4a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.0.32
- Added: `overridePriceForChildProduct` method
- Fixed: Swift nullability annotations on completion blocks to match actual usage.

# 3.0.31
- Fixed: SilentLicensing inconsistently setting and decrementing remaining trial days

Expand Down
13 changes: 11 additions & 2 deletions Paddle.framework/Versions/A/Headers/Paddle.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ typedef enum licenseTypes
* @param window An NSWindow the purchase window should be attached as a sheet to if required. Can be nil for this to presented modally..
* @param completionBlock A block to be called when a purchase has completed, returning the email address used along with the licence code.
*/
- (void)startPurchaseWithWindow:(nonnull NSWindow *)window completionBlock:(nullable void (^)( NSString * _Nullable email, NSString * _Nullable licenceCode, BOOL activate, NSDictionary * _Nullable checkoutData))completionBlock;
- (void)startPurchaseWithWindow:(nullable NSWindow *)window completionBlock:(nullable void (^)( NSString * _Nullable email, NSString * _Nullable licenceCode, BOOL activate, NSDictionary * _Nullable checkoutData))completionBlock;

/** Opens the default browser on a purchase page for the product.
*/
Expand Down Expand Up @@ -329,7 +329,7 @@ typedef enum licenseTypes
* @param email an NSString for the email to be used with activation..
* @param completionBlock A block to be called when an activation has completed, returning activated BOOL to indicate if the activation was successful and an NSError error if it was unsuccessful.
*/
- (void)activateLicence:(nonnull NSString *)licenceCode email:(nonnull NSString *)email withCompletionBlock:(nonnull void (^)(BOOL activated, NSError * _Nonnull error))completionBlock;
- (void)activateLicence:(nonnull NSString *)licenceCode email:(nonnull NSString *)email withCompletionBlock:(nonnull void (^)(BOOL activated, NSError * _Nullable error))completionBlock;

/** Activate a licence for a product without display any Paddle UI. One of the startLicensing methods must have been called before this
*
Expand Down Expand Up @@ -431,6 +431,15 @@ typedef enum licenseTypes
*/
- (void)overridePrice:(nonnull NSString *)price withWindow:(nullable NSWindow *)window completionBlock:(nonnull void (^)(NSString * _Nullable email, NSString * _Nullable licenceCode, BOOL activate, NSDictionary * _Nullable checkoutData))completionBlock;

/** Override the current price of a child product and display the PurchaseView.
*
* @param price An NSString containing the desired price in USD.
* @param window An NSWindow the purchase window should be attached as a sheet to if required. Can be nil for this to presented modally.
* @param childProductId an NSString containing the child product id
* @param completionBlock A block to be called when a purchase has completed, returning the email address used along with the licence code.
*/
- (void)overridePrice:(nonnull NSString *)price withWindow:(nullable NSWindow *)window forChildProduct:(nonnull NSString *)childProductId completionBlock:(nonnull void (^)(NSString * _Nullable email, NSString * _Nullable licenceCode, BOOL activate, NSDictionary * _Nullable checkoutData))completionBlock;

/** Override the current price of the product and display the PurchaseView. One of the startLicensing methods must be called before using this.
*
* @param price An NSString containing the desired price in USD.
Expand Down
Binary file modified Paddle.framework/Versions/A/Paddle
Binary file not shown.
4 changes: 2 additions & 2 deletions Paddle.framework/Versions/A/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0.31</string>
<string>3.0.32</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>307</string>
<string>315</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
4 changes: 2 additions & 2 deletions Paddle.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Paddle"
s.version = "3.0.31"
s.version = "3.0.32"
s.summary = "A licensing framework for OS X"
s.description = "Paddle is an easy to use licensing framework for OS X including App Licensing and In App Purchases."
s.homepage = "https://www.paddle.com"
Expand All @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
}

s.platform = :osx, '10.7'
s.source = { :http => "https://github.com/PaddleHQ/Mac-Framework/archive/v3.0.31.tar.gz" }
s.source = { :http => "https://github.com/PaddleHQ/Mac-Framework/archive/v3.0.32.tar.gz" }

s.vendored_framework = 'Paddle.framework'
s.requires_arc = false
Expand Down

0 comments on commit 4e13f4a

Please sign in to comment.