Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 1 | # |
| 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 Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 23 | } |
| 24 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 25 | -keepclassmembers enum * { |
| 26 | public static **[] values(); |
Chiao Cheng | 94b10b5 | 2012-08-17 16:59:12 -0700 | [diff] [blame] | 27 | } |
| 28 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 29 | -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 Chen | f3d9f82 | 2015-09-11 00:47:31 -0400 | [diff] [blame] | 64 | public <init>(android.content.Context, android.util.AttributeSet); |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 65 | public <init>(); |
Nancy Chen | f3d9f82 | 2015-09-11 00:47:31 -0400 | [diff] [blame] | 66 | } |
| 67 | |
Eric Erfanian | ccca315 | 2017-02-22 16:32:36 -0800 | [diff] [blame] | 68 | # 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 | } |