Fix test fail caused by proguard trimmed out reflection callback.
We moved FastPairSimulator library to a different package from the
snippet package in the last step. But we only has rule for keeping
classes in the snippet package. This change add another rule for
the simulator package.
Test: atest -v CtsSeekerDiscoverProviderTest
Bug: 214015364
Change-Id: I61010c700e4d0d1ae3922b1e64afddb56594d6f0
diff --git a/nearby/tests/multidevices/clients/proguard.flags b/nearby/tests/multidevices/clients/proguard.flags
index ec8f526..2e34dce 100644
--- a/nearby/tests/multidevices/clients/proguard.flags
+++ b/nearby/tests/multidevices/clients/proguard.flags
@@ -3,6 +3,11 @@
*;
}
+# Keep simulator reflection callback.
+-keep class com.android.server.nearby.common.bluetooth.fastpair.testing.** {
+ *;
+}
+
# Do not touch Mobly.
-keep class com.google.android.mobly.** {
*;