Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed Mar 30, 2021
1 parent 100ec6f commit 33e3df2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/in_app_purchase/in_app_purchase/CHANGELOG.md
@@ -1,3 +1,7 @@
## 0.5.1+2

* Configured the iOS example App to make use of StoreKit Testing on iOS 14 and higher.

## 0.5.1+1

* Fix error message when trying to consume purchase on iOS.
Expand Down
14 changes: 14 additions & 0 deletions packages/in_app_purchase/in_app_purchase/example/README.md
Expand Up @@ -61,6 +61,20 @@ below.

### iOS

When using Xcode 12 and iOS 14 or higher you can run the example in the simulator or real device
without having to configure an App in App Store Connect. The example app is set up to use
StoreKit Testing configured in the `example/ios/Runner/Configuration.storekit` file (as documented in the
article [Setting Up StoreKit Testing in Xcode](https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode?language=objc)).
To run the application take the following steps (note that it will only work when running from Xcode):

1. Open the example app with Xcode, `File > Open File` `example/ios/Runner.xcworkspace`;

2. Select the device you want to run the example App on;

3. Run the application using `Product > Run` (or hit the run button).

When testing on pre-iOS 14 you will need to take the following steps:

1. Follow ["Workflow for configuring in-app
purchases"](https://help.apple.com/app-store-connect/#/devb57be10e7), a
detailed guide on all the steps needed to enable IAPs for an app. Complete
Expand Down
2 changes: 1 addition & 1 deletion packages/in_app_purchase/in_app_purchase/pubspec.yaml
@@ -1,7 +1,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.
homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase
version: 0.5.1+1
version: 0.5.1+2

dependencies:
flutter:
Expand Down

0 comments on commit 33e3df2

Please sign in to comment.