blob: cffa4908114fddece0de7283f19199513ad278f9 [file] [log] [blame]
Remi NGUYEN VANc6f8fb02022-04-20 18:58:53 +09001# Make sure proguard keeps all connectivity classes
2# TODO: instead of keeping everything, consider listing only "entry points"
3# (service loader, JNI registered methods, etc) and letting the optimizer do its job
4-keep class android.net.** { *; }
Colin Crossece31712022-05-18 18:23:18 +00005-keep class com.android.connectivity.** { *; }
6-keep class com.android.net.** { *; }
Remi NGUYEN VANc6f8fb02022-04-20 18:58:53 +09007-keep class !com.android.server.nearby.**,com.android.server.** { *; }
8
9# Prevent proguard from stripping out any nearby-service and fast-pair-lite-protos fields.
10-keep class com.android.server.nearby.NearbyService { *; }
Remi NGUYEN VANc6f8fb02022-04-20 18:58:53 +090011
12# The lite proto runtime uses reflection to access fields based on the names in
13# the schema, keep all the fields.
14# This replicates the base proguard rule used by the build by default
15# (proguard_basic_keeps.flags), but needs to be specified here because the
16# com.google.protobuf package is jarjared to the below package.
Chun Zhang19379732022-06-08 21:33:54 -070017-keepclassmembers class * extends android.net.connectivity.com.google.protobuf.MessageLite { <fields>; }