blob: 3b816155594dd4beac877391249379597f2f8170 [file] [edit]
# Keep JNI registered methods
-keepclasseswithmembers,includedescriptorclasses class * { native <methods>; }
# Keep class's integer static field for MessageUtils to parsing their name.
-keepclassmembers class android.net.connectivity.com.android.server.**,android.net.connectivity.android.net.**,android.net.connectivity.com.android.networkstack.** {
static final % POLICY_*;
static final % NOTIFY_TYPE_*;
static final % TRANSPORT_*;
static final % CMD_*;
static final % EVENT_*;
}
# Ensure runtime-visible field annotations are kept when using R8 full mode.
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault
-keep interface android.net.connectivity.com.android.net.module.util.Struct$Field {
*;
}
-keepclassmembers public class * extends android.net.connectivity.com.android.net.module.util.Struct {
*;
}
# The lite proto runtime uses reflection to access fields based on the names in
# the schema, keep all the fields.
-keepclassmembers class * extends android.net.connectivity.com.google.protobuf.MessageLite {
<fields>;
}