Skip to content

Commit 05ceb1c

Browse files
author
Chris Yang
authored
[in_app_purchase_storekit]add storekit configuration to the example app (flutter#5411)
Adds the storekit test config to the example app so the example app runs with the config file by default. This will allow adding XCUITests to the plugin. part of flutter#138516
1 parent 942f1bd commit 05ceb1c

File tree

3 files changed

+63
-5
lines changed

3 files changed

+63
-5
lines changed

packages/in_app_purchase/in_app_purchase_storekit/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
isa = PBXProject;
258258
attributes = {
259259
DefaultBuildSystemTypeForWorkspace = Original;
260-
LastUpgradeCheck = 1300;
260+
LastUpgradeCheck = 1430;
261261
ORGANIZATIONNAME = "The Flutter Authors";
262262
TargetAttributes = {
263263
97C146ED1CF9000F007C117D = {

packages/in_app_purchase/in_app_purchase_storekit/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1430"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -69,6 +69,9 @@
6969
ReferencedContainer = "container:Runner.xcodeproj">
7070
</BuildableReference>
7171
</BuildableProductRunnable>
72+
<StoreKitConfigurationFileReference
73+
identifier = "../Runner/Configuration.storekit">
74+
</StoreKitConfigurationFileReference>
7275
</LaunchAction>
7376
<ProfileAction
7477
buildConfiguration = "Release"

packages/in_app_purchase/in_app_purchase_storekit/example/ios/Runner/Configuration.storekit

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,56 @@
3636
}
3737
],
3838
"settings" : {
39-
39+
"_failTransactionsEnabled" : false,
40+
"_locale" : "en_US",
41+
"_storefront" : "USA",
42+
"_storeKitErrors" : [
43+
{
44+
"current" : null,
45+
"enabled" : false,
46+
"name" : "Load Products"
47+
},
48+
{
49+
"current" : null,
50+
"enabled" : false,
51+
"name" : "Purchase"
52+
},
53+
{
54+
"current" : null,
55+
"enabled" : false,
56+
"name" : "Verification"
57+
},
58+
{
59+
"current" : null,
60+
"enabled" : false,
61+
"name" : "App Store Sync"
62+
},
63+
{
64+
"current" : null,
65+
"enabled" : false,
66+
"name" : "Subscription Status"
67+
},
68+
{
69+
"current" : null,
70+
"enabled" : false,
71+
"name" : "App Transaction"
72+
},
73+
{
74+
"current" : null,
75+
"enabled" : false,
76+
"name" : "Manage Subscriptions Sheet"
77+
},
78+
{
79+
"current" : null,
80+
"enabled" : false,
81+
"name" : "Refund Request Sheet"
82+
},
83+
{
84+
"current" : null,
85+
"enabled" : false,
86+
"name" : "Offer Code Redeem Sheet"
87+
}
88+
]
4089
},
4190
"subscriptionGroups" : [
4291
{
@@ -49,6 +98,9 @@
4998
{
5099
"adHocOffers" : [
51100

101+
],
102+
"codeOffers" : [
103+
52104
],
53105
"displayPrice" : "4.99",
54106
"familyShareable" : false,
@@ -71,6 +123,9 @@
71123
{
72124
"adHocOffers" : [
73125

126+
],
127+
"codeOffers" : [
128+
74129
],
75130
"displayPrice" : "5.99",
76131
"familyShareable" : false,
@@ -94,7 +149,7 @@
94149
}
95150
],
96151
"version" : {
97-
"major" : 1,
98-
"minor" : 1
152+
"major" : 3,
153+
"minor" : 0
99154
}
100155
}

0 commit comments

Comments
 (0)