blob: 782aa7eea1ae16a75d28083f15730edce3bef0b0 [file] [log] [blame]
Daniel Lehmann69bfe082010-03-04 21:25:03 -08001-keep class com.android.contacts.model.Sources {
2 public <init>(...);
3}
4
John Shaoada4dcf2017-10-05 20:39:55 -07005# The support library contains references to newer platform versions.
6# Don't warn about those in case this app is linking against an older
7# platform version. We know about them, and they are safe.
8-dontwarn android.support.**
9
Hugo Hudsonc2f09c32011-07-30 16:31:28 +010010# Xml files containing onClick (menus and layouts) require that proguard not
11# remove their handlers.
12-keepclassmembers class * extends android.app.Activity {
13 public void *(android.view.View);
14 public void *(android.view.MenuItem);
15}
16
Walter Jang03909b32016-08-19 14:22:42 -070017# Needed for tests
Gary Mai69c182a2016-12-05 13:07:03 -080018-keep class com.android.contacts.compat.CompatUtils { *; }
Gary Mai0a49afa2016-12-05 15:53:58 -080019-keep class com.android.contacts.Collapser { *; }
20-keep class com.android.contacts.ContactPhotoManager { *; }
21-keep class com.android.contacts.ContactsApplication { *; }
22-keep class com.android.contacts.ContactsUtils { *; }
23-keep class com.android.contacts.ContactSaveService { *; }
24-keep class com.android.contacts.ContactSaveService$* { *; }
Gary Mai69c182a2016-12-05 13:07:03 -080025-keep class com.android.contacts.database.NoNullCursorAsyncQueryHandler { *; }
26-keep class com.android.contacts.database.SimContactDao { *; }
27-keep class com.android.contacts.database.SimContactDao$* { *; }
28-keep class com.android.contacts.database.SimContactDaoImpl { *; }
Gary Mai0a49afa2016-12-05 15:53:58 -080029-keep class com.android.contacts.DynamicShortcuts { *; }
30-keep class com.android.contacts.editor.ContactEditorUtils { *; }
31-keep class com.android.contacts.editor.EditorUiUtils { *; }
Gary Mai69c182a2016-12-05 13:07:03 -080032-keep class com.android.contacts.format.FormatUtils { *; }
33-keep class com.android.contacts.format.TextHighlighter { *; }
Gary Mai0a49afa2016-12-05 15:53:58 -080034-keep class com.android.contacts.group.GroupUtil { *; }
Gary Mai0a49afa2016-12-05 15:53:58 -080035-keep class com.android.contacts.interactions.ContactDeletionInteraction { *; }
36-keep class com.android.contacts.interactions.ContactInteractionUtil { *; }
Gary Mai69c182a2016-12-05 13:07:03 -080037-keep class com.android.contacts.list.ContactListItemView { *; }
38-keep class com.android.contacts.list.ContactsSectionIndexer { *; }
39-keep class com.android.contacts.location.CountryDetector { *; }
40-keep class com.android.contacts.model.account.AccountDisplayInfo { *; }
41-keep class com.android.contacts.model.account.AccountDisplayInfoFactory { *; }
Arthur Wang57a122c2017-01-24 21:54:47 -080042-keep class com.android.contacts.model.account.AccountInfo { *; }
Gary Mai69c182a2016-12-05 13:07:03 -080043-keep class com.android.contacts.model.account.AccountType { *; }
44-keep class com.android.contacts.model.account.AccountType$* { *; }
45-keep class com.android.contacts.model.account.AccountTypeWithDataSet { *; }
46-keep class com.android.contacts.model.account.AccountWithDataSet { *; }
47-keep class com.android.contacts.model.account.BaseAccountType { *; }
48-keep class com.android.contacts.model.account.BaseAccountType$* { *; }
49-keep class com.android.contacts.model.account.DeviceLocalAccountType { *; }
50-keep class com.android.contacts.model.account.ExchangeAccountType { *; }
51-keep class com.android.contacts.model.account.ExternalAccountType { *; }
52-keep class com.android.contacts.model.account.FallbackAccountType { *; }
53-keep class com.android.contacts.model.account.GoogleAccountType { *; }
54-keep class com.android.contacts.model.account.SimAccountType { *; }
55-keep class com.android.contacts.model.AccountTypeManager { *; }
56-keep class com.android.contacts.model.AccountTypeManagerImpl { *; }
57-keep class com.android.contacts.model.BuilderWrapper { *; }
58-keep class com.android.contacts.model.Contact { *; }
59-keep class com.android.contacts.model.ContactLoader { *; }
60-keep class com.android.contacts.model.Cp2DeviceLocalAccountLocator { *; }
61-keep class com.android.contacts.model.CPOWrapper { *; }
62-keep class com.android.contacts.model.dataitem.DataItem { *; }
63-keep class com.android.contacts.model.dataitem.DataKind { *; }
64-keep class com.android.contacts.model.dataitem.EmailDataItem { *; }
65-keep class com.android.contacts.model.dataitem.EventDataItem { *; }
66-keep class com.android.contacts.model.dataitem.ImDataItem { *; }
67-keep class com.android.contacts.model.dataitem.NicknameDataItem { *; }
68-keep class com.android.contacts.model.dataitem.NoteDataItem { *; }
69-keep class com.android.contacts.model.dataitem.OrganizationDataItem { *; }
70-keep class com.android.contacts.model.dataitem.PhoneDataItem { *; }
71-keep class com.android.contacts.model.dataitem.RelationDataItem { *; }
72-keep class com.android.contacts.model.dataitem.SipAddressDataItem { *; }
73-keep class com.android.contacts.model.dataitem.StructuredNameDataItem { *; }
74-keep class com.android.contacts.model.dataitem.StructuredPostalDataItem { *; }
75-keep class com.android.contacts.model.dataitem.WebsiteDataItem { *; }
76-keep class com.android.contacts.model.DeviceLocalAccountLocator { *; }
77-keep class com.android.contacts.model.RawContact { *; }
78-keep class com.android.contacts.model.RawContactDelta { *; }
79-keep class com.android.contacts.model.RawContactDeltaList { *; }
80-keep class com.android.contacts.model.RawContactModifier { *; }
81-keep class com.android.contacts.model.SimCard { *; }
82-keep class com.android.contacts.model.SimContact { *; }
83-keep class com.android.contacts.model.ValuesDelta { *; }
Gary Mai0a49afa2016-12-05 15:53:58 -080084-keep class com.android.contacts.MoreContactUtils { *; }
Gary Mai69c182a2016-12-05 13:07:03 -080085-keep class com.android.contacts.preference.ContactsPreferences { *; }
Gary Mai0a49afa2016-12-05 15:53:58 -080086-keep class com.android.contacts.SimImportService { *; }
87-keep class com.android.contacts.SimImportService$* { *; }
88-keep class com.android.contacts.test.mocks.MockContactPhotoManager { *; }
Gary Mai69c182a2016-12-05 13:07:03 -080089-keep class com.android.contacts.testing.InjectedServices { *; }
90-keep class com.android.contacts.util.BitmapUtil { *; }
91-keep class com.android.contacts.util.ContactDisplayUtils { *; }
92-keep class com.android.contacts.util.DateUtils { *; }
93-keep class com.android.contacts.util.DeviceLocalAccountTypeFactory { *; }
94-keep class com.android.contacts.util.DeviceLocalAccountTypeFactory$* { *; }
95-keep class com.android.contacts.util.NameConverter { *; }
96-keep class com.android.contacts.util.PermissionsUtil { *; }
97-keep class com.android.contacts.util.SearchUtil { *; }
98-keep class com.android.contacts.util.SearchUtil$* { *; }
Walter Jang8fd17922016-08-22 15:17:22 -070099-keep class com.android.contacts.util.SyncUtil { *; }
Walter Jang6bb87182016-08-22 09:43:19 -0700100-keep class com.android.contacts.widget.CompositeListAdapter { *; }
Marcus Hagerott1c3f6782016-12-02 17:09:15 -0800101-keep class com.google.common.base.Function { *; }
102-keep class com.google.common.base.Functions { *; }
Walter Jang6bb87182016-08-22 09:43:19 -0700103-keep class com.google.common.base.Objects { *; }
104-keep class com.google.common.base.Preconditions { *; }
John Shaof0eecb92017-02-03 11:46:42 -0800105-keep class com.google.common.collect.** { *; }
106-keep class com.google.common.util.concurrent.** { *; }
107
108-keep class com.android.common.widget.CompositeCursorAdapter { *; }
Walter Jangf2a7ca72015-11-11 13:46:32 -0800109
Marcus Hagerotta02aefa2016-08-25 15:18:17 -0700110# Any class or method annotated with NeededForReflection.
Daniel Lehmann3a53c732012-05-17 19:18:58 -0700111-keep @com.android.contacts.test.NeededForReflection class *
Flavio Lerda155c0702011-08-08 16:36:28 +0100112-keepclassmembers class * {
Daniel Lehmann3a53c732012-05-17 19:18:58 -0700113@com.android.contacts.test.NeededForReflection *;
Flavio Lerda155c0702011-08-08 16:36:28 +0100114}
Walter Jang03909b32016-08-19 14:22:42 -0700115
Tingting Wang9deead62016-03-28 10:08:08 -0700116# Keep classes and methods that have the guava @VisibleForTesting annotation
117-keep @com.google.common.annotations.VisibleForTesting class *
118-keepclassmembers class * {
119 @com.google.common.annotations.VisibleForTesting *;
120}