Skip to content

Commit

Permalink
v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
avalore committed Oct 20, 2021
1 parent 1171ecf commit 7421f7b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 4.2.0
Apart from making sure our Mac SDK is ready for the new macOS we’ve also made the following improvements:
- Added allowed_uses and times_used to the license verification response, making it easier to see the user’s remaining activations.
- Improved the activation error handling to display more accurate activation errors.
- Improved core headers.

# 4.1.1
- Support for sandbox environment added (but not subscriptions)
- Tested and updated for macOS Monterey.
Expand Down
6 changes: 6 additions & 0 deletions Paddle.framework/Versions/A/Headers/PADError.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ typedef NS_ENUM(NSInteger, PADErrorCode) {
PADErrorLicenseCodeUtilized = -122,

PADErrorLicenseExpired = -123,

PADErrorLicenseCodeDoesNotMatchProduct = -124,

PADErrorInvalidEmail = -125,

PADErrorTooManyActivationsOrExpired = -126,
};

/**
Expand Down
12 changes: 12 additions & 0 deletions Paddle.framework/Versions/A/Headers/PADProduct.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,18 @@ typedef NS_ENUM(NSInteger, PADProductType) {
*/
- (void)verifyActivationWithCompletion:(nullable void (^)(PADVerificationState state, NSError *_Nullable error))completion;

/**
* @discussion Verify the activation for the current product with additional verification data
* @discussion If no completion handler is given, then the error is passed to the delegate, if the delegate
* is set and it responds to `paddleDidError:`.
*
* @param completion The completion handler to call when the verification has been completed.
* This handler is executed on the main dispatch queue, but it may not be executed asynchronously.
* The completion handler is given the verification state of the product and, if unable to verify, an error.
* Additionally this completion handler returns raw verification data including license usage and expiry dates
*/
- (void)verifyActivationDetailsWithCompletion:(nullable void (^)(PADVerificationState state, NSError *_Nullable error, NSDictionary *_Nullable verificationData))completion;

/**
* @discussion Destroy the activation for the current product locally. This will not deactivate an activation
*/
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,13 +17,13 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>4.1.1</string>
<string>4.2</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>4.1.1</string>
<string>4.2</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
6 changes: 3 additions & 3 deletions PaddleV4.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "PaddleV4"
s.version = "4.1.1"
s.version = "4.2.0"
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 Down Expand Up @@ -35,8 +35,8 @@ SOFTWARE.
}

s.platform = :osx, '10.10'
s.source = { :http => "https://github.com/PaddleHQ/Mac-Framework-V4/archive/v4.1.1.zip" }
s.vendored_framework = 'Mac-Framework-V4-4.1.1/Paddle.framework'
s.source = { :http => "https://github.com/PaddleHQ/Mac-Framework-V4/archive/v4.2.0.zip" }
s.vendored_framework = 'Mac-Framework-V4-4.2.0/Paddle.framework'
s.requires_arc = false
s.framework = 'WebKit';
end

0 comments on commit 7421f7b

Please sign in to comment.