Merge "Understand the support library/androidx @Keep annotations"

This commit is contained in:
Treehugger Robot 2019-03-27 18:01:28 +00:00 committed by Gerrit Code Review
commit 3f6483cb0f

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