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.** { *; } |
Colin Cross | ece3171 | 2022-05-18 18:23:18 +0000 | [diff] [blame] | 5 | -keep class com.android.connectivity.** { *; } |
| 6 | -keep class com.android.net.** { *; } |
Remi NGUYEN VAN | c6f8fb0 | 2022-04-20 18:58:53 +0900 | [diff] [blame] | 7 | -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 VAN | c6f8fb0 | 2022-04-20 18:58:53 +0900 | [diff] [blame] | 11 | |
| 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 Zhang | 1937973 | 2022-06-08 21:33:54 -0700 | [diff] [blame] | 17 | -keepclassmembers class * extends android.net.connectivity.com.google.protobuf.MessageLite { <fields>; } |