app_store_country 0.0.1
app_store_country: ^0.0.1 copied to clipboard
A Flutter plugin to get the App Store storefront country code.
0.0.1 #
- Initial release.
- iOS only: Returns the App Store storefront country code (ISO-3166 alpha-3) via StoreKit.
AppStoreCountry.getCountryCode()— returns storefront country (e.g."USA","DEU") ornullif unavailable.AppStoreCountry.isUnitedStates()— convenience helper for US storefront.AppStoreCountry.setExternalPaymentSupportedCountries(Set<String>)— configure which storefront countries are treated as supporting external payments (default:{"USA"}).AppStoreCountry.isExternalPaymentSupported(String countryCode)— returns whether the given alpha-3 country code is in the configured supported set.- On non-iOS platforms (e.g. Android),
getCountryCode()returnsnullandisUnitedStates()returnsfalse; the plugin does not throw so callers can branch safely. - Minimum iOS: 13.0. Uses StoreKit 2 (
Storefront.current) on iOS 15+ andSKPaymentQueue.default().storefronton iOS 13–14.