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 | |
Hugo Hudson | c2f09c3 | 2011-07-30 16:31:28 +0100 | [diff] [blame] | 5 | # Xml files containing onClick (menus and layouts) require that proguard not |
| 6 | # remove their handlers. |
| 7 | -keepclassmembers class * extends android.app.Activity { |
| 8 | public void *(android.view.View); |
| 9 | public void *(android.view.MenuItem); |
| 10 | } |
| 11 | |
Walter Jang | 03909b3 | 2016-08-19 14:22:42 -0700 | [diff] [blame] | 12 | # Feature highlight library. See b/29877098 |
Tingting Wang | 4a2abe9 | 2016-08-07 17:06:40 -0700 | [diff] [blame] | 13 | -keep class com.google.android.libraries.material.featurehighlight.** { *;} |
| 14 | |
Walter Jang | 03909b3 | 2016-08-19 14:22:42 -0700 | [diff] [blame] | 15 | # Needed for tests |
Walter Jang | f2a7ca7 | 2015-11-11 13:46:32 -0800 | [diff] [blame] | 16 | -keep class com.android.contacts.common.** { *;} |
Tingting Wang | 9deead6 | 2016-03-28 10:08:08 -0700 | [diff] [blame] | 17 | -keep class com.android.contacts.interactions.** { *;} |
| 18 | -keep class com.google.common.base.Objects { *;} |
| 19 | -keep class com.google.common.base.Preconditions { *;} |
Walter Jang | 03909b3 | 2016-08-19 14:22:42 -0700 | [diff] [blame] | 20 | -keep class com.google.common.collect.ImmutableMap { *;} |
| 21 | -keep class com.google.common.collect.ImmutableSet { *;} |
Tingting Wang | 9deead6 | 2016-03-28 10:08:08 -0700 | [diff] [blame] | 22 | -keep class com.google.common.collect.Lists { *;} |
| 23 | -keep class com.google.common.collect.Maps { *;} |
Walter Jang | 03909b3 | 2016-08-19 14:22:42 -0700 | [diff] [blame] | 24 | -keep class com.google.common.collect.Multimap { *;} |
Tingting Wang | 9deead6 | 2016-03-28 10:08:08 -0700 | [diff] [blame] | 25 | -keep class com.google.common.collect.Sets { *;} |
Walter Jang | f2a7ca7 | 2015-11-11 13:46:32 -0800 | [diff] [blame] | 26 | |
Daniel Lehmann | 3a53c73 | 2012-05-17 19:18:58 -0700 | [diff] [blame] | 27 | # Any class or method annotated with NeededForTesting or NeededForReflection. |
Yorke Lee | 7039633 | 2014-05-28 12:16:35 -0700 | [diff] [blame] | 28 | -keep @com.android.contacts.common.testing.NeededForTesting class * |
Daniel Lehmann | 3a53c73 | 2012-05-17 19:18:58 -0700 | [diff] [blame] | 29 | -keep @com.android.contacts.test.NeededForReflection class * |
Flavio Lerda | 155c070 | 2011-08-08 16:36:28 +0100 | [diff] [blame] | 30 | -keepclassmembers class * { |
Yorke Lee | 7039633 | 2014-05-28 12:16:35 -0700 | [diff] [blame] | 31 | @com.android.contacts.common.testing.NeededForTesting *; |
Daniel Lehmann | 3a53c73 | 2012-05-17 19:18:58 -0700 | [diff] [blame] | 32 | @com.android.contacts.test.NeededForReflection *; |
Flavio Lerda | 155c070 | 2011-08-08 16:36:28 +0100 | [diff] [blame] | 33 | } |
Walter Jang | 03909b3 | 2016-08-19 14:22:42 -0700 | [diff] [blame] | 34 | |
Tingting Wang | 9deead6 | 2016-03-28 10:08:08 -0700 | [diff] [blame] | 35 | # Keep classes and methods that have the guava @VisibleForTesting annotation |
| 36 | -keep @com.google.common.annotations.VisibleForTesting class * |
| 37 | -keepclassmembers class * { |
| 38 | @com.google.common.annotations.VisibleForTesting *; |
| 39 | } |