Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import proguard rules from proguard-android.txt
Context dotnet#8337 dotnet#8397 The latest Android sdk no longer ships with `proguard` as a result the file in proguard-android.txt [1] is missing. As a result customers are reporting errors such as ``` Unhandled Exception from source=AndroidEnvironment Java.Lang.Exception: android.view.View_IOnClickListenerImplementor at Java.Interop.JniEnvironment.Types.TryFindClass(String , Boolean ) at Java.Interop.JniEnvironment.Types.FindClass(String ) at Java.Interop.JniType..ctor(String ) at Java.Interop.JniPeerMembers.JniInstanceMethods..ctor(Type ) at Java.Interop.JniPeerMembers.JniInstanceMethods.GetConstructorsForType(Type ) at Java.Interop.JniPeerMembers.JniInstanceMethods.StartCreateInstance(String , Type , JniArgumentValue* ) at Android.Views.View.IOnClickListenerImplementor..ctor() at Android.Views.View.__CreateIOnClickListenerImplementor() at Java.Interop.EventHelper.AddEventHandler[IOnClickListener,IOnClickListenerImplementor](WeakReference& , Func`1 , Action`1 , Action`1 ) at Android.Views.View.add_Click(EventHandler ) at com.glmsoftware.obdnowpros.Fragments.SubscriptionFragment.OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) at AndroidX.Fragment.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_inflater, IntPtr native_container, IntPtr native_savedInstanceState) at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLLL_L(_JniMarshal_PPLLL_L callback, IntPtr jnienv, IntPtr klazz, IntPtr p0, IntPtr p1, IntPtr p2) --- End of managed Java.Lang.Exception stack trace --- ``` This is probably because certain code is removed that in the latest version of R8 that used to be left in place. We should include the contents of this removed file in our own proguard_xamarin.cfg file. [1] https://android.googlesource.com/platform/sdk/+/refs/heads/main/files/proguard-android.txt
- Loading branch information