Merge "proguard: add keep rules for @TestApi" into main am: 6b11584633
Original change: https://android-review.googlesource.com/c/platform/build/+/2956677 Change-Id: If2642bf2556c23143add3120397d2562401b2c29 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -15,6 +15,13 @@
|
||||
@com.android.internal.annotations.VisibleForTesting *;
|
||||
}
|
||||
|
||||
# Keep classes and members with platform @TestApi annotations, similar to
|
||||
# @VisibleForTesting.
|
||||
-keep @android.annotation.TestApi class *
|
||||
-keepclassmembers class * {
|
||||
@android.annotation.TestApi *;
|
||||
}
|
||||
|
||||
# Keep classes and members with non-platform @VisibleForTesting annotations, but
|
||||
# only within platform-defined packages. This avoids keeping external, library-specific
|
||||
# test code that isn't actually needed for platform testing.
|
||||
|
Reference in New Issue
Block a user