Skip to content

Commit

Permalink
[r8] update proguard rule to keep .NET runtime classes (#9044)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vcsjones and akoeplinger authored Jun 19, 2024
1 parent e174305 commit cbfb56d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
-keep class md52ce486a14f4bcd95899665e9d932190b.** { *; <init>(...); }
-keepclassmembers class md52ce486a14f4bcd95899665e9d932190b.** { *; <init>(...); }

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

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

0 comments on commit cbfb56d

Please sign in to comment.