glassfy / glassfy-flutter

Open source SDK to quickly integrate subscriptions, stop worring about code maintenance, and getting advanced real-time data. Javascript / iOS glue framework
MIT License
21 stars 4 forks source link

Small Improvement: optimising gy_did_purchase_product method handler #7

Closed Arunshaik2001 closed 7 months ago

Arunshaik2001 commented 1 year ago

What does this pr do?

Just a small improvement: in the glassfy_flutter method channel handler

final transaction =
            GlassfyTransaction.fromJson(jsonDecode(call.arguments));

this is getting created multiple times as the transaction is the same for all listeners it should be put outside the for loop.