-
Notifications
You must be signed in to change notification settings - Fork 12
Description
When using the example code from https://superwall.com/docs/using-revenuecat to implement the Purchase Controller, I get this error:
The name 'StoreProduct' is defined in the libraries 'package:purchases_flutter/models/store_product_wrapper.dart (via package:purchases_flutter/purchases_flutter.dart)' and 'package:superwallkit_flutter/src/public/StoreProduct.dart (via package:superwallkit_flutter/superwallkit_flutter.dart)'.
Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.dart[ambiguous_import](https://dart.dev/diagnostics/ambiguous_import)
This is fixed by hiding the import of StoreProduct from superwallkit_flutter:
import 'package:flutter/services.dart';
import 'package:purchases_flutter/purchases_flutter.dart';
import 'package:superwallkit_flutter/superwallkit_flutter.dart'
hide LogLevel, StoreProduct;
In general I find the release policy and documentation a bit messy. You release breaking changes and I don't find any clear upgrade documentation and the main documentation is quite often wrong or outdated. This is problematic for something as critical as a paywall provider...
Take this line from the Changelog for example: "This could include some potentially breaking changes. If you find some, please open an issue or reach out to the team." I would much prefer if you told us about breaking changes instead of asking your customers to try and find out...