-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproguard.flags
More file actions
23 lines (19 loc) · 945 Bytes
/
proguard.flags
File metadata and controls
23 lines (19 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Keep JNI registered methods
-keepclasseswithmembers,includedescriptorclasses class * { native <methods>; }
-keepclassmembers class com.android.networkstack.android.net.ip.IpClient$IpClientCommands {
static final int CMD_*;
static final int EVENT_*;
}
-keepclassmembers class com.android.networkstack.android.net.dhcp.DhcpClient {
static final int CMD_*;
static final int EVENT_*;
}
-keepclassmembers public class * extends com.android.networkstack.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.
# This replicates the base proguard rule used by the build by default
# (proguard_basic_keeps.flags), but needs to be specified here because the
# com.google.protobuf package is jarjared to the below package.
-keepclassmembers class * extends com.android.networkstack.com.google.protobuf.MessageLite { <fields>; }