proguard: add keep rules for @TestApi
Test: build Bug: 319319578 Change-Id: I739a80c66de57d0ce68624246613722edf2d106f
This commit is contained in:
parent
af0a5d71cd
commit
f0581e65be
1 changed files with 7 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue