• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1-keepclasseswithmembernames class * {
2    native <methods>;
3}
4
5# ensure we keep public sensor test methods, these are needed at runtime
6-keepclassmembers class * extends com.android.cts.verifier.sensors.base.BaseSensorTestActivity {
7    public <methods>;
8}
9-keepclassmembers class * extends android.hardware.cts.SensorTestCase {
10    public <methods>;
11}
12
13# ensure we keep public Gnss Measurement test methods, these are needed at runtime
14-keepclassmembers class * extends com.android.cts.verifier.location.BaseGnssTestActivity {
15    public <methods>;
16}
17-keepclassmembers class * extends android.location.cts.GnssTestCase {
18    public <methods>;
19}
20
21# ensure we keep public camera test methods, these are needed at runtime
22-keepclassmembers class * extends android.hardware.camera2.cts.testcases.Camera2AndroidTestCase {
23    public <methods>;
24}
25
26-keepclassmembers class * extends android.hardware.cts.CameraTestCase {
27    public <methods>;
28}
29
30-keepclasseswithmembers class * extends com.android.cts.verifier.location.LocationModeTestActivity
31
32# keep mockito methods
33-keep class org.mockito.** { *; }
34-keep interface org.mockito.** { *; }
35-keep class com.google.dexmaker.** { *; }
36-keep class com.android.dx.mockito.** { *; }
37-keep interface com.google.dexmaker.** { *; }
38
39-dontwarn android.hardware.Sensor
40-dontwarn android.test.AndroidTestRunner
41-dontwarn java.util.concurrent.ConcurrentLinkedDeque
42-dontwarn com.android.compatibility.common.util.**
43-dontwarn junit.**
44
45# Jack seems less rigorous than proguard when it comes to warning about
46# transitive dependencies.
47-dontwarn com.android.okhttp.**
48-dontwarn org.opencv.**
49-dontwarn androidx.test.internal.runner.hidden.ExposedInstrumentationApi
50
51-dontwarn java.lang.management.**
52