Merge "Add keep rules for @KeepForWeakReference annotation" am: 3eb3ca0c9b
Original change: https://android-review.googlesource.com/c/platform/build/+/2094724 Change-Id: Ib37b8fb61b91dbf28386dbc6108866f162ce4eba Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
41437def9a
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,12 @@
|
||||||
@**.VisibleForTesting *;
|
@**.VisibleForTesting *;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Keep rule for members that are needed solely to keep alive downstream weak
|
||||||
|
# references, and could otherwise be removed after tree shaking optimizations.
|
||||||
|
-keepclassmembers,allowaccessmodification,allowobfuscation,allowshrinking class * {
|
||||||
|
@com.android.internal.annotations.KeepForWeakReference <fields>;
|
||||||
|
}
|
||||||
|
|
||||||
# Understand the common @Keep annotation from various Android packages:
|
# Understand the common @Keep annotation from various Android packages:
|
||||||
# * android.support.annotation
|
# * android.support.annotation
|
||||||
# * androidx.annotation
|
# * androidx.annotation
|
||||||
|
|
Loading…
Reference in a new issue