Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/in_app_purchase/in_app_purchase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## NEXT
## 3.2.4

* Fixes broken dartdoc references in `completePurchase` to point to
`InAppPurchaseException` and `InAppPurchaseException.code` instead of the
non-existent `PurchaseException` and `PurchaseException.errorCode`.
* Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
* Updates README to reflect currently supported OS versions for the latest
versions of the endorsed platform implementations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ class InAppPurchase implements InAppPurchasePlatformAdditionProvider {
/// For convenience, [PurchaseDetails.pendingCompletePurchase] indicates if a
/// purchase is pending for completion.
///
/// The method will throw a [PurchaseException] when the purchase could not be
/// finished. Depending on the [PurchaseException.errorCode] the developer
/// should try to complete the purchase via this method again, or retry the
/// [completePurchase] method at a later time. If the
/// [PurchaseException.errorCode] indicates you should not retry there might
/// The method will throw an [InAppPurchaseException] when the purchase
/// could not be finished. Depending on the [InAppPurchaseException.code] the
/// developer should try to complete the purchase via this method again, or
/// retry the [completePurchase] method at a later time. If the
/// [InAppPurchaseException.code] indicates you should not retry there might
/// be some issue with the app's code or the configuration of the app in the
/// respective store. The developer is responsible to fix this issue. The
/// [PurchaseException.message] field might provide more information on what
/// went wrong.
/// [InAppPurchaseException.message] field might provide more information on
/// what went wrong.
Future<void> completePurchase(PurchaseDetails purchase) =>
InAppPurchasePlatform.instance.completePurchase(purchase);

Expand Down
2 changes: 1 addition & 1 deletion packages/in_app_purchase/in_app_purchase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: in_app_purchase
description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
version: 3.2.3
version: 3.2.4

environment:
sdk: ^3.9.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## NEXT
## 1.4.1

* Fixes broken dartdoc references in `completePurchase` to point to
`InAppPurchaseException` and `InAppPurchaseException.code` instead of the
non-existent `PurchaseException` and `PurchaseException.errorCode`.
* Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.

## 1.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'dart:async';

import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'errors/errors.dart';
import 'types/types.dart';

/// The interface that implementations of in_app_purchase must implement.
Expand Down Expand Up @@ -161,15 +162,15 @@ abstract class InAppPurchasePlatform extends PlatformInterface {
/// For convenience, [PurchaseDetails.pendingCompletePurchase] indicates if a
/// purchase is pending for completion.
///
/// The method will throw a [PurchaseException] when the purchase could not be
/// finished. Depending on the [PurchaseException.errorCode] the developer
/// should try to complete the purchase via this method again, or retry the
/// [completePurchase] method at a later time. If the
/// [PurchaseException.errorCode] indicates you should not retry there might
/// The method will throw an [InAppPurchaseException] when the purchase
/// could not be finished. Depending on the [InAppPurchaseException.code] the
/// developer should try to complete the purchase via this method again, or
/// retry the [completePurchase] method at a later time. If the
/// [InAppPurchaseException.code] indicates you should not retry there might
/// be some issue with the app's code or the configuration of the app in the
/// respective store. The developer is responsible to fix this issue. The
/// [PurchaseException.message] field might provide more information on what
/// went wrong.
/// [InAppPurchaseException.message] field might provide more information on
/// what went wrong.
Future<void> completePurchase(PurchaseDetails purchase) =>
throw UnimplementedError('completePurchase() has not been implemented.');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/in_app_purcha
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 1.4.0
version: 1.4.1

environment:
sdk: ^3.9.0
Expand Down