# 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

-dontwarn java.lang.ClassValue
-dontwarn com.google.common.base.**
-dontwarn com.google.errorprone.annotations.**
-dontwarn com.google.j2objc.annotations.**
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn javax.annotation.**
-keep class io.grpc.okhttp.OkHttpChannelProvider
