blob: 2b20ddd0c5fde574e9df45651b279608458b95a3 [file] [log] [blame]
# Make sure proguard keeps all connectivity classes
# TODO: instead of keeping everything, consider listing only "entry points"
# (service loader, JNI registered methods, etc) and letting the optimizer do its job
-keep class android.net.** { *; }
-keep class com.android.connectivity.** { *; }
-keep class com.android.net.** { *; }
-keep class com.android.server.** { *; }
# Prevent proguard from stripping out any nearby-service and fast-pair-lite-protos fields.
# TODO: This could be optimized in the future to only keep the critical
# entry points and then let proguard strip out any unused code within
# the service. "com.android.server.nearby.service.proto" must be kept to prevent proguard
# from stripping out any fast-pair-lite-protos fields.
-keep class com.android.server.nearby.** { *; }
# 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.connectivity.com.google.protobuf.MessageLite { <fields>; }