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

Commit 2172041a authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

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

am: d4ada79a

Change-Id: Iec62861e620719e4a9601b5beee7208569954c5b
parents bce744ef d4ada79a
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -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