File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
Expand file tree Collapse file tree 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+
15## 0.3.4+4
26
37* Update package: e2e -> package: integration_test
Original file line number Diff line number Diff line change 5151
5252### Initializing the plugin
5353
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+
5467``` dart
5568// Subscribe to any incoming purchases at app initialization. These can
5669// propagate from either storefront so it's important to listen as soon as
@@ -90,7 +103,7 @@ if (!available) {
90103// Set literals require Dart 2.2. Alternatively, use `Set<String> _kIds = <String>['product1', 'product2'].toSet()`.
91104const Set<String> _kIds = {'product1', 'product2'};
92105final ProductDetailsResponse response = await InAppPurchaseConnection.instance.queryProductDetails(_kIds);
93- if (! response.notFoundIDs.isEmpty ) {
106+ if (response.notFoundIDs.isNotEmpty ) {
94107 // Handle the error.
95108}
96109List<ProductDetails> products = response.productDetails;
Original file line number Diff line number Diff line change 11name : in_app_purchase
22description : A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
33homepage : https://github.com/flutter/plugins/tree/master/packages/in_app_purchase
4- version : 0.3.4+4
4+ version : 0.3.4+5
55
66dependencies :
77 async : ^2.0.8
You can’t perform that action at this time.
0 commit comments