blob: 9b950f8464e44f9d72f9227ce9d6bd8749fff501 [file] [log] [blame]
Daniel Lehmann69bfe082010-03-04 21:25:03 -08001-keep class com.android.contacts.model.Sources {
2 public <init>(...);
3}
4
Hugo Hudsonc2f09c32011-07-30 16:31:28 +01005# 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 Jang03909b32016-08-19 14:22:42 -070012# Feature highlight library. See b/29877098
Tingting Wang4a2abe92016-08-07 17:06:40 -070013-keep class com.google.android.libraries.material.featurehighlight.** { *;}
14
Walter Jang03909b32016-08-19 14:22:42 -070015# Needed for tests
Walter Jangf2a7ca72015-11-11 13:46:32 -080016-keep class com.android.contacts.common.** { *;}
Tingting Wang9deead62016-03-28 10:08:08 -070017-keep class com.android.contacts.interactions.** { *;}
18-keep class com.google.common.base.Objects { *;}
19-keep class com.google.common.base.Preconditions { *;}
Walter Jang03909b32016-08-19 14:22:42 -070020-keep class com.google.common.collect.ImmutableMap { *;}
21-keep class com.google.common.collect.ImmutableSet { *;}
Tingting Wang9deead62016-03-28 10:08:08 -070022-keep class com.google.common.collect.Lists { *;}
23-keep class com.google.common.collect.Maps { *;}
Walter Jang03909b32016-08-19 14:22:42 -070024-keep class com.google.common.collect.Multimap { *;}
Tingting Wang9deead62016-03-28 10:08:08 -070025-keep class com.google.common.collect.Sets { *;}
Walter Jangf2a7ca72015-11-11 13:46:32 -080026
Daniel Lehmann3a53c732012-05-17 19:18:58 -070027# Any class or method annotated with NeededForTesting or NeededForReflection.
Yorke Lee70396332014-05-28 12:16:35 -070028-keep @com.android.contacts.common.testing.NeededForTesting class *
Daniel Lehmann3a53c732012-05-17 19:18:58 -070029-keep @com.android.contacts.test.NeededForReflection class *
Flavio Lerda155c0702011-08-08 16:36:28 +010030-keepclassmembers class * {
Yorke Lee70396332014-05-28 12:16:35 -070031@com.android.contacts.common.testing.NeededForTesting *;
Daniel Lehmann3a53c732012-05-17 19:18:58 -070032@com.android.contacts.test.NeededForReflection *;
Flavio Lerda155c0702011-08-08 16:36:28 +010033}
Walter Jang03909b32016-08-19 14:22:42 -070034
Tingting Wang9deead62016-03-28 10:08:08 -070035# 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}