xref: /aosp_15_r20/dalvik/dx/etc/mainDexClasses.rules (revision 055d459012065f78d96b68be8421640240ddf631)
1*055d4590SKeyi Gui  -keep public class * extends android.app.Instrumentation {
2*055d4590SKeyi Gui    <init>();
3*055d4590SKeyi Gui  }
4*055d4590SKeyi Gui  -keep public class * extends android.app.Application {
5*055d4590SKeyi Gui    <init>();
6*055d4590SKeyi Gui    void attachBaseContext(android.content.Context);
7*055d4590SKeyi Gui  }
8*055d4590SKeyi Gui  -keep public class * extends android.app.backup.BackupAgent {
9*055d4590SKeyi Gui   <init>();
10*055d4590SKeyi Gui  }
11*055d4590SKeyi Gui# We need to keep all annotation classes because proguard does not trace annotation attribute
12*055d4590SKeyi Gui# it just filter the annotation attributes according to annotation classes it already kept.
13*055d4590SKeyi Gui  -keep public class * extends java.lang.annotation.Annotation {
14*055d4590SKeyi Gui   *;
15*055d4590SKeyi Gui  }
16*055d4590SKeyi Gui# Keep old fashion tests in the main dex or they'll be silently ignored by InstrumentationTestRunner
17*055d4590SKeyi Gui  -keep public class * extends android.test.InstrumentationTestCase {
18*055d4590SKeyi Gui   <init>();
19*055d4590SKeyi Gui  }
20*055d4590SKeyi Gui
21