dotnet / android-libraries

.NET for Android bindings for Google's libraries, such as AndroidX, GooglePlayServices, Firebase, and MLKit and their 3rd party dependency libraries.
MIT License
225 stars 47 forks source link

proguard_xamarin.cfg and xamarin.android.google.billingclient3.0.0 #598

Closed gmck closed 7 months ago

gmck commented 3 years ago

I had to add the following to my proguard.cfg to eliminate a crash in my release version when clicking the PurchaseButton which initiates the purchase on Google Play

-keep class androidx.core.app.CoreComponentFactory -keep class com.android.billingclient.api.ProxyBillingActivity

Could that not be added to proguard_xamarin.cfg?

moljac commented 2 years ago

@gmck Thanks for the feedback.

Could that not be added to proguard_xamarin.cfg?

It could, but I barely keep up with updates of AX and GPS-FB-MLKit bindings. I wish I could have more time to work on samples to get to know APIs I bind. Then I would detect such things and in bindings improvements I could add such improvements to packages.

Now few questions:

jpobst commented 7 months ago

We include any proguard.txt files that Google ship with their libraries. As they know their libraries better than us, we defer to their judgement here.

It does look like they now include this is their latest billingclient:

-keepnames class com.android.billingclient.api.ProxyBillingActivity