Skip to content

Commit d584424

Browse files
Chris Yangdanielroek
authored andcommitted
[in_app_purchase] Fix typo on simulatesAskToBuyInSandBox (flutter#3016)
1 parent 45e6600 commit d584424

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

packages/in_app_purchase/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.4+7
2+
3+
* iOS: Fix typo of the `simulatesAskToBuyInSandbox` key.
4+
15
## 0.3.4+6
26

37
* iOS: Fix the bug that prevent restored subscription transactions from being completed

packages/in_app_purchase/ios/Classes/InAppPurchasePlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ - (void)addPayment:(FlutterMethodCall *)call result:(FlutterResult)result {
180180
payment.quantity = (quantity != nil) ? quantity.integerValue : 1;
181181
if (@available(iOS 8.3, *)) {
182182
payment.simulatesAskToBuyInSandbox =
183-
[[paymentMap objectForKey:@"simulatesAskToBuyInSandBox"] boolValue];
183+
[[paymentMap objectForKey:@"simulatesAskToBuyInSandbox"] boolValue];
184184
}
185185

186186
if (![self.paymentQueueHandler addPayment:payment]) {

packages/in_app_purchase/ios/Tests/InAppPurchasePluginTest.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ - (void)testAddPaymentFailure {
8181
arguments:@{
8282
@"productIdentifier" : @"123",
8383
@"quantity" : @(1),
84-
@"simulatesAskToBuyInSandBox" : @YES,
84+
@"simulatesAskToBuyInSandbox" : @YES,
8585
}];
8686
SKPaymentQueueStub* queue = [SKPaymentQueueStub new];
8787
queue.testState = SKPaymentTransactionStateFailed;
@@ -118,7 +118,7 @@ - (void)testAddPaymentWithSameProductIDWillFail {
118118
arguments:@{
119119
@"productIdentifier" : @"123",
120120
@"quantity" : @(1),
121-
@"simulatesAskToBuyInSandBox" : @YES,
121+
@"simulatesAskToBuyInSandbox" : @YES,
122122
}];
123123
SKPaymentQueueStub* queue = [SKPaymentQueueStub new];
124124
queue.testState = SKPaymentTransactionStatePurchased;
@@ -163,7 +163,7 @@ - (void)testAddPaymentSuccessWithMockQueue {
163163
arguments:@{
164164
@"productIdentifier" : @"123",
165165
@"quantity" : @(1),
166-
@"simulatesAskToBuyInSandBox" : @YES,
166+
@"simulatesAskToBuyInSandbox" : @YES,
167167
}];
168168
SKPaymentQueueStub* queue = [SKPaymentQueueStub new];
169169
queue.testState = SKPaymentTransactionStatePurchased;

packages/in_app_purchase/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: in_app_purchase
22
description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
33
homepage: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase
4-
version: 0.3.4+6
4+
version: 0.3.4+7
55

66
dependencies:
77
async: ^2.0.8

0 commit comments

Comments
 (0)