Daniel Lehmann | 69bfe08 | 2010-03-04 21:25:03 -0800 | [diff] [blame] | 1 | -keep class com.android.contacts.model.Sources { |
| 2 | public <init>(...); |
| 3 | } |
| 4 | |
John Shao | ada4dcf | 2017-10-05 20:39:55 -0700 | [diff] [blame] | 5 | # 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 Hudson | c2f09c3 | 2011-07-30 16:31:28 +0100 | [diff] [blame] | 10 | # 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 Jang | 03909b3 | 2016-08-19 14:22:42 -0700 | [diff] [blame] | 17 | # Needed for tests |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 18 | -keep class com.android.contacts.compat.CompatUtils { *; } |
Gary Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 19 | -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 Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 25 | -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 Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 29 | -keep class com.android.contacts.DynamicShortcuts { *; } |
| 30 | -keep class com.android.contacts.editor.ContactEditorUtils { *; } |
| 31 | -keep class com.android.contacts.editor.EditorUiUtils { *; } |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 32 | -keep class com.android.contacts.format.FormatUtils { *; } |
| 33 | -keep class com.android.contacts.format.TextHighlighter { *; } |
Gary Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 34 | -keep class com.android.contacts.group.GroupUtil { *; } |
Gary Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 35 | -keep class com.android.contacts.interactions.ContactDeletionInteraction { *; } |
| 36 | -keep class com.android.contacts.interactions.ContactInteractionUtil { *; } |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 37 | -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 Wang | 57a122c | 2017-01-24 21:54:47 -0800 | [diff] [blame] | 42 | -keep class com.android.contacts.model.account.AccountInfo { *; } |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 43 | -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 Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 84 | -keep class com.android.contacts.MoreContactUtils { *; } |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 85 | -keep class com.android.contacts.preference.ContactsPreferences { *; } |
Gary Mai | 0a49afa | 2016-12-05 15:53:58 -0800 | [diff] [blame] | 86 | -keep class com.android.contacts.SimImportService { *; } |
| 87 | -keep class com.android.contacts.SimImportService$* { *; } |
| 88 | -keep class com.android.contacts.test.mocks.MockContactPhotoManager { *; } |
Gary Mai | 69c182a | 2016-12-05 13:07:03 -0800 | [diff] [blame] | 89 | -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 Jang | 8fd1792 | 2016-08-22 15:17:22 -0700 | [diff] [blame] | 99 | -keep class com.android.contacts.util.SyncUtil { *; } |
Walter Jang | 6bb8718 | 2016-08-22 09:43:19 -0700 | [diff] [blame] | 100 | -keep class com.android.contacts.widget.CompositeListAdapter { *; } |
Marcus Hagerott | 1c3f678 | 2016-12-02 17:09:15 -0800 | [diff] [blame] | 101 | -keep class com.google.common.base.Function { *; } |
| 102 | -keep class com.google.common.base.Functions { *; } |
Walter Jang | 6bb8718 | 2016-08-22 09:43:19 -0700 | [diff] [blame] | 103 | -keep class com.google.common.base.Objects { *; } |
| 104 | -keep class com.google.common.base.Preconditions { *; } |
John Shao | f0eecb9 | 2017-02-03 11:46:42 -0800 | [diff] [blame] | 105 | -keep class com.google.common.collect.** { *; } |
| 106 | -keep class com.google.common.util.concurrent.** { *; } |
| 107 | |
| 108 | -keep class com.android.common.widget.CompositeCursorAdapter { *; } |
Walter Jang | f2a7ca7 | 2015-11-11 13:46:32 -0800 | [diff] [blame] | 109 | |
Marcus Hagerott | a02aefa | 2016-08-25 15:18:17 -0700 | [diff] [blame] | 110 | # Any class or method annotated with NeededForReflection. |
Daniel Lehmann | 3a53c73 | 2012-05-17 19:18:58 -0700 | [diff] [blame] | 111 | -keep @com.android.contacts.test.NeededForReflection class * |
Flavio Lerda | 155c070 | 2011-08-08 16:36:28 +0100 | [diff] [blame] | 112 | -keepclassmembers class * { |
Daniel Lehmann | 3a53c73 | 2012-05-17 19:18:58 -0700 | [diff] [blame] | 113 | @com.android.contacts.test.NeededForReflection *; |
Flavio Lerda | 155c070 | 2011-08-08 16:36:28 +0100 | [diff] [blame] | 114 | } |
Walter Jang | 03909b3 | 2016-08-19 14:22:42 -0700 | [diff] [blame] | 115 | |
Tingting Wang | 9deead6 | 2016-03-28 10:08:08 -0700 | [diff] [blame] | 116 | # 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 | } |