app_store_country 0.0.2
app_store_country: ^0.0.2 copied to clipboard
A Flutter plugin to get the App Store storefront country code.
0.0.2 #
- Package README: add badges (Pub Version, License, Platform).
- README installation example updated to
^0.0.2. - Example README: badges, platform support wording, and API table aligned with current behavior (Android returns null/false, no throw).
- No API or behavior changes; documentation and metadata only.
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.