Skip to content

Commit e4a2173

Browse files
committed
android: Remove providers from ProGuard configuration
We are no longer using resources to load providers on Android. Instead, we are calling Class.forName() for known providers. ProGuard is able to detect these usages automatically.
1 parent cd59e14 commit e4a2173

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

android-interop-testing/app/proguard-rules.pro

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,3 @@
1414
-dontwarn org.mockito.**
1515
-dontwarn sun.reflect.**
1616
-dontwarn android.test.**
17-
18-
# Providers use their name to load files from META-INF
19-
-keepnames class io.grpc.ServerProvider
20-
-keepnames class io.grpc.ManagedChannelProvider
21-
-keepnames class io.grpc.NameResolverProvider
22-
23-
# The Provider implementations must be kept and retain their names, since the
24-
# names are referenced from META-INF
25-
-keep class io.grpc.internal.DnsNameResolverProvider
26-
-keep class io.grpc.okhttp.OkHttpChannelProvider

examples/android/app/proguard-rules.pro

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,3 @@
1212
-dontwarn sun.misc.Unsafe
1313
-dontwarn com.google.common.**
1414
-dontwarn okio.**
15-
16-
# Providers use their name to load files from META-INF
17-
-keepnames class io.grpc.ServerProvider
18-
-keepnames class io.grpc.ManagedChannelProvider
19-
-keepnames class io.grpc.NameResolverProvider
20-
21-
# The Provider implementations must be kept and retain their names, since the
22-
# names are referenced from META-INF
23-
-keep class io.grpc.internal.DnsNameResolverProvider
24-
-keep class io.grpc.okhttp.OkHttpChannelProvider

0 commit comments

Comments
 (0)