Remi NGUYEN VAN | c6f8fb0 | 2022-04-20 18:58:53 +0900 | [diff] [blame] | 1 | # 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.** { *; } |
Remi NGUYEN VAN | c6f8fb0 | 2022-04-20 18:58:53 +0900 | [diff] [blame] | 5 | -keep class !com.android.server.nearby.**,com.android.server.** { *; } |
| 6 | |
| 7 | # Prevent proguard from stripping out any nearby-service and fast-pair-lite-protos fields. |
| 8 | -keep class com.android.server.nearby.NearbyService { *; } |
Remi NGUYEN VAN | c6f8fb0 | 2022-04-20 18:58:53 +0900 | [diff] [blame] | 9 | |
| 10 | # The lite proto runtime uses reflection to access fields based on the names in |
| 11 | # the schema, keep all the fields. |
| 12 | # This replicates the base proguard rule used by the build by default |
| 13 | # (proguard_basic_keeps.flags), but needs to be specified here because the |
Remi NGUYEN VAN | e55a88d | 2022-04-20 15:59:16 +0900 | [diff] [blame] | 14 | # com.google.protobuf package is jarjared to use a package prefix. |
| 15 | -keepclassmembers class * extends **.com.google.protobuf.MessageLite { <fields>; } |