adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
88 stars 15 forks source link

App crashes on iOS, index out of range when no products made #106

Closed gummz closed 3 months ago

gummz commented 3 months ago

Hi,

I'm observing an index range error leading to the app crashing when I launch my app with Adapty on iOS when no products or subscriptions have been created on my app.

It occurs in

AdaptyPaywallPresenter

at line 71.

x401om commented 3 months ago

Hey, @gummz, could you please clarify the file? I am not sure what do you mean by AdaptyPaywallPresenter in terms of our flutter sdk. The link to the repo will be helpful, thank you!

gummz commented 3 months ago

Hi,

Here is a screenshot, I'm not sure which repo it's from:

adapty_paywall_presenter

it fails at line 71 here

x401om commented 3 months ago

Hi @gummz! I have investigated the issue and it looks like you are using an outdated version of our AdaptyUI SDK. This bug was fixed in that commit. Please, update your Adapty and AdaptyUI version.