Skip to content

[in_app_purchase] add Storefront.countryCode() and AppStore.sync() #8900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 17, 2025
Merged
Prev Previous commit
Next Next commit
format?
  • Loading branch information
LouiseHsu committed Mar 28, 2025
commit bc47383701f9043683e53690f119f9024f074b2c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// found in the LICENSE file.

import 'package:in_app_purchase_platform_interface/in_app_purchase_platform_interface.dart';
import '../in_app_purchase_storekit.dart';

import '../store_kit_wrappers.dart';
import '../in_app_purchase_storekit.dart';
import '../store_kit_2_wrappers.dart';
import '../store_kit_wrappers.dart';

/// Contains InApp Purchase features that are only available on iOS.
class InAppPurchaseStoreKitPlatformAddition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ InAppPurchase2API _hostApi = InAppPurchase2API();
final class AppStore {
/// Dart wrapper for StoreKit2's canMakePayments()
/// Returns a bool that indicates whether the person can make purchases.
/// (https://developer.apple.com/documentation/storekit/appstore/3822277-canmakepayments)
/// https://developer.apple.com/documentation/storekit/appstore/3822277-canmakepayments
Future<bool> canMakePayments() {
return _hostApi.canMakePayments();
}

/// Dart wrapper for StoreKit2's sync()
/// Synchronizes your app’s transaction information and subscription status with information from the App Store.
/// Will initiate an authentication pop up.
/// https://developer.apple.com/documentation/storekit/appstore/sync()
Future<void> sync() {
return _hostApi.sync();
}
Expand Down