Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb3f32d7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Generalize @Keep annotation Proguard rules" am: 7ef84931 am: d55d83e4

Original change: https://android-review.googlesource.com/c/platform/build/+/1923477

Change-Id: I4d6782eba6124880aaad5b20d17aea2c55614460
parents c33c74dd d55d83e4
Loading
Loading
Loading
Loading
+9 −20
Original line number Diff line number Diff line
@@ -15,35 +15,24 @@
@**.VisibleForTesting *;
}

# Understand the @Keep support annotation.
-keep class android.support.annotation.Keep
-keep class androidx.annotation.Keep
# Understand the common @Keep annotation from various Android packages:
#  * android.support.annotation
#  * androidx.annotation
#  * com.android.internal.annotations
-keep class **android**.annotation*.Keep

-keep @android.support.annotation.Keep class * {*;}
-keep @androidx.annotation.Keep class * {*;}
-keep @**android**.annotation*.Keep class * { *; }

-keepclasseswithmembers class * {
    @android.support.annotation.Keep <methods>;
    @**android**.annotation*.Keep <methods>;
}

-keepclasseswithmembers class * {
    @androidx.annotation.Keep <methods>;
    @**android**.annotation*.Keep <fields>;
}

-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>(...);
    @**android**.annotation*.Keep <init>(...);
}

-include proguard_basic_keeps.flags