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

Commit 6b115846 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "proguard: add keep rules for @TestApi" into main

parents 91ba7d56 f0581e65
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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.