File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.3.4+5
2
+
3
+ * Added necessary README docs for getting started with Android.
4
+
1
5
## 0.3.4+4
2
6
3
7
* Update package: e2e -> package: integration_test
Original file line number Diff line number Diff line change 51
51
52
52
### Initializing the plugin
53
53
54
+ ``` dart
55
+ void main() {
56
+ // Inform the plugin that this app supports pending purchases on Android.
57
+ // An error will occur on Android if you access the plugin `instance`
58
+ // without this call.
59
+ //
60
+ // On iOS this is a no-op.
61
+ InAppPurchaseConnection.enablePendingPurchases();
62
+
63
+ runApp(MyApp());
64
+ }
65
+ ```
66
+
54
67
``` dart
55
68
// Subscribe to any incoming purchases at app initialization. These can
56
69
// propagate from either storefront so it's important to listen as soon as
@@ -90,7 +103,7 @@ if (!available) {
90
103
// Set literals require Dart 2.2. Alternatively, use `Set<String> _kIds = <String>['product1', 'product2'].toSet()`.
91
104
const Set<String> _kIds = {'product1', 'product2'};
92
105
final ProductDetailsResponse response = await InAppPurchaseConnection.instance.queryProductDetails(_kIds);
93
- if (! response.notFoundIDs.isEmpty ) {
106
+ if (response.notFoundIDs.isNotEmpty ) {
94
107
// Handle the error.
95
108
}
96
109
List<ProductDetails> products = response.productDetails;
Original file line number Diff line number Diff line change 1
1
name : in_app_purchase
2
2
description : A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
3
3
homepage : https://github.com/flutter/plugins/tree/master/packages/in_app_purchase
4
- version : 0.3.4+4
4
+ version : 0.3.4+5
5
5
6
6
dependencies :
7
7
async : ^2.0.8
You can’t perform that action at this time.
0 commit comments