OneSignal / OneSignal-Xamarin-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Xamarin app with OneSignal. https://onesignal.com
Other
105 stars 50 forks source link

OneSignal Xamarin 3.2.0 Proguard error #102

Closed ndesorden closed 6 years ago

ndesorden commented 6 years ago

I've a xamarin forms 2.4.0 app and with OneSignal 3.1.1 and with this proguard.cfg everything ok.

-keep public class com.google.android.gms.* { public *; }
-dontwarn com.google.android.gms.**
-keep public class com.onesignal.* { public *; }
-dontwarn com.onesignal.**

But updating to OneSignal 3.2.0 app crash on startup. If i disabled proguard then app runs fine. ¿ is this proguard.cfg accurated to os 3.2.0?

ndesorden commented 6 years ago

Sorry, it was a problem with android.support.v7

Caused by: android.view.InflateException: Binary XML file line #20: Binary XML file line #20: Error inflating class android.support.v7.widget.FitWindowsFrameLayout

With this proguard.cfg works fine

-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
-keep class com.google.firebase.** { *; }
-dontwarn com.google.firebase.**
-keep class android.support.v7.widget.** { *; }
-dontwarn android.support.v7.widget.**
-keep class android.support.v4.widget.Space { *; }
-dontwarn android.support.v4.widget.Space
-keep class com.onesignal.* { *; }
-dontwarn com.onesignal.**