6 Commits

Author SHA1 Message Date
4eff5844b1 Cleanup PurchaseScreen
Avoid having one widget call the other widget with the sku price. It was
complicating the entire code base. Also, create a new class
PurchaseManager which is a singleton and will be used to manage all
purchases from now on.

The earlier approach of having the code in a widget would sometimes
result in purchases not being confirmed. I'm hoping that putting the
class in a singleton will help.
2020-11-27 16:28:58 +01:00
9db05bb7d8 PurchaseWidget: Handle when it fails to load options
Fixes APP-AY
2020-09-03 11:55:43 +02:00
732c547cef PurchaseSlider: Make it prettier
It now appears as a triangle which is getting filled up. It no longer
lets you click on it, but we have buttons on the side for that.
2020-08-19 17:24:56 +02:00
28d53242d8 Move away from RevenueCat
The iOS updates keep getting rejected, and I think it's because
RevenueCat is taking too long to respond. Additionally, revenueCat
doesn't really give us anything useful as its receipt validation isn't
perfect, and I've had to roll my own.

Plus from a privacy point of view, this is better as we are no longer
talking to any third party service.

This has so far only been tested on iOS
2020-07-26 12:20:09 +02:00
9d00fdac06 Use import_sorter
flutter pub run import_sorter:main --no-comments

The code feels much cleaner
2020-07-24 12:43:28 +02:00
94730c7040 PurchaseWidget: Move slider to its own file
Also de-couple it from RevenueCat specific APIs.
2020-07-09 16:31:49 +02:00