Remi NGUYEN VAN | 47fce47 | 2022-01-14 18:00:11 +0900 | [diff] [blame] | 1 | # Make sure proguard keeps all connectivity classes |
| 2 | -keep class com.android.connectivity.** { *; } |
| 3 | -keep class com.android.net.** { *; } |
| 4 | -keep class com.android.server.** { *; } |
| 5 | |
Remi NGUYEN VAN | 51935fc | 2022-01-07 13:18:54 +0900 | [diff] [blame] | 6 | # Prevent proguard from stripping out any nearby-service. |
| 7 | # TODO: This could be optimized in the future to only keep the critical |
| 8 | # entry points and then let proguard strip out any unused code within |
| 9 | # the service. |
| 10 | -keep class com.android.server.nearby.** { *; } |
| 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. |
| 17 | -keepclassmembers class * extends com.android.connectivity.com.google.protobuf.MessageLite { <fields>; } |