Skip to content

Drop-in replacement of purchases_flutter that allows getting purchase information on every platform.

License

Notifications You must be signed in to change notification settings

Navideck/purchases

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purchases

https://pub.dev/packages/purchases

This is a drop-in replacement of purchases_flutter that allows getting purchase information on every platform.. You only need to import this package in your pubspec.yaml.

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

Drop-in replacement of purchases_flutter that allows getting purchase information on every platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 82.3%
  • Ruby 8.5%
  • HTML 4.7%
  • Swift 4.0%
  • Other 0.5%