jamesblasco / purchases

Extension for the package purchases_flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

purchases

https://pub.dev/packages/purchases

An extension for the purchases_flutter, that allows to get the purchased information for every platform.

Purchases.apiKey = 'Add your api key';
Purchases.userId = 'Add the user id';

Purchases.purchasesInfo.addListener((info) {
    // For platforms that support the revenue cat native sdk(android, ios and macos),
    // this information will be updated whenever there is new changes.
    // For platform not supported by the official plugin this information will only be retrieved once, 
    // after the user id has been set
});

To use the native sdk endpoints you can check

if(Purchases.sdkSupported) {
    ///...
}

About

Extension for the package purchases_flutter

License:MIT License


Languages

Language:Dart 81.8%Language:Ruby 8.7%Language:HTML 4.9%Language:Swift 4.1%Language:Kotlin 0.4%Language:Objective-C 0.1%