Skip to content

Commit cbfb56d

Browse files
[r8] update proguard rule to keep .NET runtime classes (#9044)
Context: dotnet/runtime#103016 Context: dotnet/runtime#103337 In dotnet/runtime we are adding a few more Java classes to assist with .NET crypto. One was added in dotnet/runtime#103016, and another may be added in dotnet/runtime#103337. This PR changes ProGuard to keep all of the classes in this package rather than individually adding them. Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
1 parent e174305 commit cbfb56d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Xamarin.Android.Build.Tasks/Resources/proguard_xamarin.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
-keep class md52ce486a14f4bcd95899665e9d932190b.** { *; <init>(...); }
2626
-keepclassmembers class md52ce486a14f4bcd95899665e9d932190b.** { *; <init>(...); }
2727

28-
# .NET 8 runtime
29-
-keep class net.dot.android.crypto.DotnetProxyTrustManager { *; <init>(...); }
28+
# .NET runtime
29+
-keep class net.dot.android.crypto.** { *; <init>(...); }
3030

3131
# Android's template misses fluent setters...
3232
-keepclassmembers class * extends android.view.View {

0 commit comments

Comments
 (0)