diff --git a/CHANGELOG.md b/CHANGELOG.md
index 042d511..c940396 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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.
diff --git a/Paddle.framework/Versions/A/Headers/PADError.h b/Paddle.framework/Versions/A/Headers/PADError.h
index e2738da..5cc1a54 100644
--- a/Paddle.framework/Versions/A/Headers/PADError.h
+++ b/Paddle.framework/Versions/A/Headers/PADError.h
@@ -160,6 +160,12 @@ typedef NS_ENUM(NSInteger, PADErrorCode) {
PADErrorLicenseCodeUtilized = -122,
PADErrorLicenseExpired = -123,
+
+ PADErrorLicenseCodeDoesNotMatchProduct = -124,
+
+ PADErrorInvalidEmail = -125,
+
+ PADErrorTooManyActivationsOrExpired = -126,
};
/**
diff --git a/Paddle.framework/Versions/A/Headers/PADProduct.h b/Paddle.framework/Versions/A/Headers/PADProduct.h
index 9dc7cc6..2b81676 100644
--- a/Paddle.framework/Versions/A/Headers/PADProduct.h
+++ b/Paddle.framework/Versions/A/Headers/PADProduct.h
@@ -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
*/
diff --git a/Paddle.framework/Versions/A/Paddle b/Paddle.framework/Versions/A/Paddle
index fc794a7..dfabb7a 100755
Binary files a/Paddle.framework/Versions/A/Paddle and b/Paddle.framework/Versions/A/Paddle differ
diff --git a/Paddle.framework/Versions/A/Resources/Info.plist b/Paddle.framework/Versions/A/Resources/Info.plist
index fc6cb5c..958f53b 100644
--- a/Paddle.framework/Versions/A/Resources/Info.plist
+++ b/Paddle.framework/Versions/A/Resources/Info.plist
@@ -17,13 +17,13 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 4.1.1
+ 4.2
CFBundleSupportedPlatforms
MacOSX
CFBundleVersion
- 4.1.1
+ 4.2
DTCompiler
com.apple.compilers.llvm.clang.1_0
DTPlatformBuild
diff --git a/PaddleV4.podspec b/PaddleV4.podspec
index 9685cb7..7370b5b 100644
--- a/PaddleV4.podspec
+++ b/PaddleV4.podspec
@@ -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"
@@ -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