blob: a5e34b712df04bfc0a0194a66278054362fc1c85 [file] [log] [blame]
Eric Erfanianccca3152017-02-22 16:32:36 -08001#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License
15#
16
17-keepattributes SourceFile,LineNumberTable
18-dontpreverify
19-dontskipnonpubliclibraryclasses
20-dontusemixedcaseclassnames
21-keepclasseswithmembernames class * {
22 native <methods>;
Chiao Cheng94b10b52012-08-17 16:59:12 -070023}
24
Eric Erfanianccca3152017-02-22 16:32:36 -080025-keepclassmembers enum * {
26 public static **[] values();
Chiao Cheng94b10b52012-08-17 16:59:12 -070027}
28
Eric Erfanianccca3152017-02-22 16:32:36 -080029-keepclassmembers class * implements android.os.Parcelable {
30 public static *** CREATOR;
31}
32
33-keepclassmembers class * implements java.io.Serializable {
34 static final long serialVersionUID;
35 private static final java.io.ObjectStreamField[] serialPersistentFields;
36 private void writeObject(java.io.ObjectOutputStream);
37 private void readObject(java.io.ObjectInputStream);
38 java.lang.Object writeReplace();
39 java.lang.Object readResolve();
40}
41
42-dontwarn com.google.common.**
43-dontwarn com.google.errorprone.annotations.**
44-dontwarn android.app.Notification
45-dontnote android.graphics.Insets
46-dontnote libcore.icu.ICU
47-keep class libcore.icu.ICU { *** get(...);}
48-dontnote android.support.v4.app.NotificationCompatJellybean
49
50-allowaccessmodification
51-renamesourcefileattribute PG
52
53-assumenosideeffects class android.util.Log {
54 static *** i(...);
55 static *** d(...);
56 static *** v(...);
57 static *** isLoggable(...);
58}
59
60-dontwarn org.apache.http.**
61
62# Used in com.android.dialer.answer.impl.SmsBottomSheetFragment
63-keep class android.support.design.widget.BottomSheetBehavior {
Nancy Chenf3d9f822015-09-11 00:47:31 -040064 public <init>(android.content.Context, android.util.AttributeSet);
Eric Erfanianccca3152017-02-22 16:32:36 -080065 public <init>();
Nancy Chenf3d9f822015-09-11 00:47:31 -040066}
67
Eric Erfanianccca3152017-02-22 16:32:36 -080068# Keep the annotation, classes, methods, and fields marked as UsedByReflection
69-keep class com.android.dialer.proguard.UsedByReflection
70-keep @com.android.dialer.proguard.UsedByReflection class *
71-keepclassmembers class * {
72 @com.android.dialer.proguard.UsedByReflection *;
73}