chargebee / chargebee-flutter

MIT License
5 stars 8 forks source link

Works in Debug mode, doesn't work in Release mode #70

Closed timeshift-ted closed 1 year ago

timeshift-ted commented 1 year ago

Everything has been working well while testing in Debug mode on my Android phone.

However, as soon as I tried compiling in Release mode (using live Chargebee site) it hangs forever on the configure() step and never moves from there. No error, just hangs forever.

Here is a code snippet, which is in a try {} block.

await Chargebee.configure( globals.chargebeeSiteName, globals.chargebeePublishableAPIKey, globals.chargebeeIOSSDKKey, globals.chargebeeAndroidSDKKey)

Same code and same exact variables work in Debug mode and not in Release mode. Everything else on the app works in Release mode, no problems with Internet permissions, just Chargebee Flutter hangs up.

cb-haripriyan commented 1 year ago

Thanks @timeshift-ted Could you add the rule below in proguard file and please test it out? -keep class com.chargebee.android.** { *;}

We would be updating this as part of our SDK in the upcoming releases.

timeshift-ted commented 1 year ago

Hi,

As mentioned, we do not use proguard, this have no proguard file.

Ted Johnson Timeshift Media, Inc.

On Fri, Sep 8, 2023 at 4:35 AM Amutha C @.***> wrote:

Closed #70 https://github.com/chargebee/chargebee-flutter/issues/70 as completed via #72 https://github.com/chargebee/chargebee-flutter/pull/72 .

— Reply to this email directly, view it on GitHub https://github.com/chargebee/chargebee-flutter/issues/70#event-10317117981, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANUMDSRJ6LR3CQHGTSUYAQ3XZL7G5ANCNFSM6AAAAAA4IZ4VOQ . You are receiving this because you were mentioned.Message ID: @.***>

cb-amutha commented 1 year ago

Hi @timeshift-ted, The fixes added in the latest version v0.2.1 and it handles proGuard in sdk level. app doesn't required to be configured proGuard. Please use the latest version and confirm if still issues in release mode. Thanks.