Skip to content

Commit e8759fc

Browse files
committed
Format code
1 parent 0a673ee commit e8759fc

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

packages/in_app_purchase/in_app_purchase_ios/ios/Classes/FIAObjectTranslator.m

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,11 @@ + (NSDictionary *)getMapFromNSLocale:(NSLocale *)locale {
110110

111111
[map setObject:[locale objectForKey:NSLocaleIdentifier] ?: [NSNull null]
112112
forKey:@"localeIdentifier"];
113-
[map setObject:[locale objectForKey:NSLocaleCountryCode] ?: [NSNull null]
114-
forKey:@"countryCode"];
113+
[map setObject:[locale objectForKey:NSLocaleCountryCode] ?: [NSNull null] forKey:@"countryCode"];
115114
[map setObject:[locale objectForKey:NSLocaleLanguageCode] ?: [NSNull null]
116115
forKey:@"languageCode"];
117-
[map setObject:[locale objectForKey:NSLocaleScriptCode] ?: [NSNull null]
118-
forKey:@"scriptCode"];
119-
[map setObject:[locale objectForKey:NSLocaleVariantCode] ?: [NSNull null]
120-
forKey:@"variantCode"];
116+
[map setObject:[locale objectForKey:NSLocaleScriptCode] ?: [NSNull null] forKey:@"scriptCode"];
117+
[map setObject:[locale objectForKey:NSLocaleVariantCode] ?: [NSNull null] forKey:@"variantCode"];
121118
[map setObject:[locale objectForKey:NSLocaleCollationIdentifier] ?: [NSNull null]
122119
forKey:@"collationIdentifier"];
123120
[map setObject:[locale objectForKey:NSLocaleCollatorIdentifier] ?: [NSNull null]

packages/in_app_purchase/in_app_purchase_ios/lib/src/store_kit_wrappers/sk_product_wrapper.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,10 @@ class SKPriceLocaleWrapper {
469469
currencyCode == other.currencyCode &&
470470
endDelimiterKey == other.endDelimiterKey &&
471471
beginDelimiterKey == other.beginDelimiterKey &&
472-
alternateQuotationEndDelimiterKey == other.alternateQuotationEndDelimiterKey &&
473-
alternateQuotationBeginDelimiterKey == other.alternateQuotationBeginDelimiterKey;
472+
alternateQuotationEndDelimiterKey ==
473+
other.alternateQuotationEndDelimiterKey &&
474+
alternateQuotationBeginDelimiterKey ==
475+
other.alternateQuotationBeginDelimiterKey;
474476

475477
@override
476478
int get hashCode =>

packages/in_app_purchase/in_app_purchase_ios/test/store_kit_wrappers/sk_product_test.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ void main() {
4141
test(
4242
'SKProductDiscountWrapper should have properties to be default if map is empty',
4343
() {
44-
final SKProductDiscountWrapper wrapper = SKProductDiscountWrapper.fromJson(<String, dynamic>{});
44+
final SKProductDiscountWrapper wrapper =
45+
SKProductDiscountWrapper.fromJson(<String, dynamic>{});
4546
expect(wrapper.price, '');
4647
expect(
4748
wrapper.priceLocale,
@@ -66,8 +67,10 @@ void main() {
6667
));
6768
expect(wrapper.numberOfPeriods, 0);
6869
expect(wrapper.paymentMode, SKProductDiscountPaymentMode.payAsYouGo);
69-
expect(wrapper.subscriptionPeriod,
70-
SKProductSubscriptionPeriodWrapper(numberOfUnits: 0, unit: SKSubscriptionPeriodUnit.day));
70+
expect(
71+
wrapper.subscriptionPeriod,
72+
SKProductSubscriptionPeriodWrapper(
73+
numberOfUnits: 0, unit: SKSubscriptionPeriodUnit.day));
7174
});
7275

7376
test('SKProductWrapper should have property values consistent with map',
@@ -80,7 +83,8 @@ void main() {
8083
test(
8184
'SKProductWrapper should have properties to be default if map is empty',
8285
() {
83-
final SKProductWrapper wrapper = SKProductWrapper.fromJson(<String, dynamic>{});
86+
final SKProductWrapper wrapper =
87+
SKProductWrapper.fromJson(<String, dynamic>{});
8488
expect(wrapper.productIdentifier, '');
8589
expect(wrapper.localizedTitle, '');
8690
expect(wrapper.localizedDescription, '');

packages/in_app_purchase/in_app_purchase_ios/test/store_kit_wrappers/sk_test_stub_objects.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ final SKPaymentTransactionWrapper dummyOriginalTransaction =
2323
error: dummyError,
2424
);
2525

26-
final SKPaymentTransactionWrapper dummyTransaction = SKPaymentTransactionWrapper(
26+
final SKPaymentTransactionWrapper dummyTransaction =
27+
SKPaymentTransactionWrapper(
2728
transactionState: SKPaymentTransactionStateWrapper.purchased,
2829
payment: dummyPayment,
2930
originalTransaction: dummyOriginalTransaction,
@@ -52,7 +53,8 @@ final SKPriceLocaleWrapper dummyLocale = SKPriceLocaleWrapper(
5253
alternateQuotationBeginDelimiterKey: '“',
5354
);
5455

55-
final SKProductSubscriptionPeriodWrapper dummySubscription = SKProductSubscriptionPeriodWrapper(
56+
final SKProductSubscriptionPeriodWrapper dummySubscription =
57+
SKProductSubscriptionPeriodWrapper(
5658
numberOfUnits: 1,
5759
unit: SKSubscriptionPeriodUnit.month,
5860
);
@@ -99,8 +101,10 @@ Map<String, dynamic> buildLocaleMap(SKPriceLocaleWrapper local) {
99101
'currencyCode': local.currencyCode,
100102
'endDelimiterKey': local.endDelimiterKey,
101103
'beginDelimiterKey': local.beginDelimiterKey,
102-
'alternateQuotationEndDelimiterKey': local.alternateQuotationEndDelimiterKey,
103-
'alternateQuotationBeginDelimiterKey': local.alternateQuotationBeginDelimiterKey
104+
'alternateQuotationEndDelimiterKey':
105+
local.alternateQuotationEndDelimiterKey,
106+
'alternateQuotationBeginDelimiterKey':
107+
local.alternateQuotationBeginDelimiterKey
104108
};
105109
}
106110

0 commit comments

Comments
 (0)