Skip to content

Commit

Permalink
Merge pull request #377 from qonversion/release/9.2.1
Browse files Browse the repository at this point in the history
Release 9.2.1
  • Loading branch information
SpertsyanKM authored Dec 24, 2024
2 parents 69156b4 + 7e084cb commit d9c72c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 9.2.1
* Fixed update policy issue for purchase with options.

## 9.2.0
* iOS promotional offers supported. For the details see the [documentation](https://documentation.qonversion.io/docs/apple-promotional-offers).
* Minimal supported Dart SDK version is bumped to 2.14.0.
Expand Down
7 changes: 5 additions & 2 deletions lib/src/internal/qonversion_internal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:qonversion_flutter/src/internal/utils/string.dart';
import 'constants.dart';

class QonversionInternal implements Qonversion {
static const String _sdkVersion = "9.2.0";
static const String _sdkVersion = "9.2.1";

final MethodChannel _channel = MethodChannel('qonversion_plugin');

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

final updatePolicy = purchaseOptions.updatePolicy;
final rawResult = await _channel
.invokeMethod(Constants.mPurchase, {
Constants.kProductId: product.qonversionId,
Constants.kOldProductId: purchaseOptions.oldProduct?.qonversionId,
Constants.kOfferId: purchaseOptions.offerId,
Constants.kApplyOffer: purchaseOptions.applyOffer,
Constants.kUpdatePolicyKey: purchaseOptions.updatePolicy,
Constants.kUpdatePolicyKey: updatePolicy != null
? StringUtils.capitalize(describeEnum(updatePolicy))
: null,
Constants.kPurchaseContextKeys: purchaseOptions.contextKeys,
Constants.kPurchaseQuantity: purchaseOptions.quantity,
Constants.kPromoOffer: promoOfferData,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: qonversion_flutter
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.
version: 9.2.0
version: 9.2.1
homepage: 'https://qonversion.io'
repository: 'https://github.com/qonversion/flutter-sdk'

Expand Down

0 comments on commit d9c72c8

Please sign in to comment.