blob: 557ba59d9830af5d8bfac870dd29e44c164e7910 [file] [log] [blame]
Remi NGUYEN VAN47fce472022-01-14 18:00:11 +09001# Make sure proguard keeps all connectivity classes
Remi NGUYEN VAN2aeb4542022-02-01 02:31:58 +00002# 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.** { *; }
Chun Zhangea54e5a2022-05-05 17:13:45 -07005-keep class !com.android.server.nearby.**,com.android.server.** { *; }
Remi NGUYEN VAN47fce472022-01-14 18:00:11 +09006
Eric Lin3d255c12022-02-09 09:53:02 +00007# Prevent proguard from stripping out any nearby-service and fast-pair-lite-protos fields.
Chun Zhangea54e5a2022-05-05 17:13:45 -07008-keep class com.android.server.nearby.NearbyService { *; }
9-keep class com.android.server.nearby.service.proto { *; }
Remi NGUYEN VAN51935fc2022-01-07 13:18:54 +090010
11# The lite proto runtime uses reflection to access fields based on the names in
12# the schema, keep all the fields.
13# This replicates the base proguard rule used by the build by default
14# (proguard_basic_keeps.flags), but needs to be specified here because the
15# com.google.protobuf package is jarjared to the below package.
Remi NGUYEN VAN7b92ff22022-04-20 15:59:16 +090016-keepclassmembers class * extends com.android.server.nearby.com.google.protobuf.MessageLite { <fields>; }