# Works around b/62196552
-keep public interface * extends io.grpc.Metadata$TrustedAsciiMarshaller

# Providers use their name to load files from META-INF
-keepnames class io.grpc.ServerProvider
-keepnames class io.grpc.ManagedChannelProvider
-keepnames class io.grpc.NameResolverProvider

# Needed for DNS resolution.  Present in OpenJDK, but not Android
-dontwarn javax.naming.**

# The Provider implementations must be kept and retain their names, since the
# names are referenced from META-INF
-keep class io.grpc.internal.DnsNameResolverProvider

# GrpcUtil is calling getPackage().getImplementationVersion().
-keeppackagenames io.grpc.internal
