Skip to content

Commit d9c72c8

Browse files
authored
Merge pull request #377 from qonversion/release/9.2.1
Release 9.2.1
2 parents 69156b4 + 7e084cb commit d9c72c8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 9.2.1
2+
* Fixed update policy issue for purchase with options.
3+
14
## 9.2.0
25
* iOS promotional offers supported. For the details see the [documentation](https://documentation.qonversion.io/docs/apple-promotional-offers).
36
* Minimal supported Dart SDK version is bumped to 2.14.0.

Diff for: lib/src/internal/qonversion_internal.dart

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'package:qonversion_flutter/src/internal/utils/string.dart';
1111
import 'constants.dart';
1212

1313
class QonversionInternal implements Qonversion {
14-
static const String _sdkVersion = "9.2.0";
14+
static const String _sdkVersion = "9.2.1";
1515

1616
final MethodChannel _channel = MethodChannel('qonversion_plugin');
1717

@@ -112,13 +112,16 @@ class QonversionInternal implements Qonversion {
112112
promoOfferData['timestamp'] = purchaseOptions.promotionalOffer?.paymentDiscount.timestamp;
113113
}
114114

115+
final updatePolicy = purchaseOptions.updatePolicy;
115116
final rawResult = await _channel
116117
.invokeMethod(Constants.mPurchase, {
117118
Constants.kProductId: product.qonversionId,
118119
Constants.kOldProductId: purchaseOptions.oldProduct?.qonversionId,
119120
Constants.kOfferId: purchaseOptions.offerId,
120121
Constants.kApplyOffer: purchaseOptions.applyOffer,
121-
Constants.kUpdatePolicyKey: purchaseOptions.updatePolicy,
122+
Constants.kUpdatePolicyKey: updatePolicy != null
123+
? StringUtils.capitalize(describeEnum(updatePolicy))
124+
: null,
122125
Constants.kPurchaseContextKeys: purchaseOptions.contextKeys,
123126
Constants.kPurchaseQuantity: purchaseOptions.quantity,
124127
Constants.kPromoOffer: promoOfferData,

Diff for: pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: qonversion_flutter
22
description: Flutter plugin to implement in-app subscriptions and purchases. Validate user receipts and manage cross-platform access to paid content on your app. Android & iOS.
3-
version: 9.2.0
3+
version: 9.2.1
44
homepage: 'https://qonversion.io'
55
repository: 'https://github.com/qonversion/flutter-sdk'
66

0 commit comments

Comments
 (0)