Merge "Understand the support library/androidx @Keep annotations" am: 3f6483cb0f am: d4ada79abd

am: 2172041a44

Change-Id: I5a72c50d7ef89cf8f4a4130b2fa13e1b6f297f03
This commit is contained in:
Colin Cross 2019-03-27 11:33:24 -07:00 committed by android-build-merger
commit c2bf5dd2a3
1 changed files with 31 additions and 0 deletions

View File

@ -15,4 +15,35 @@
@**.VisibleForTesting *;
}
# Understand the @Keep support annotation.
-keep class android.support.annotation.Keep
-keep class androidx.annotation.Keep
-keep @android.support.annotation.Keep class * {*;}
-keep @androidx.annotation.Keep class * {*;}
-keepclasseswithmembers class * {
@android.support.annotation.Keep <methods>;
}
-keepclasseswithmembers class * {
@androidx.annotation.Keep <methods>;
}
-keepclasseswithmembers class * {
@android.support.annotation.Keep <fields>;
}
-keepclasseswithmembers class * {
@androidx.annotation.Keep <fields>;
}
-keepclasseswithmembers class * {
@android.support.annotation.Keep <init>(...);
}
-keepclasseswithmembers class * {
@androidx.annotation.Keep <init>(...);
}
-include proguard_basic_keeps.flags