xref: /aosp_15_r20/external/cronet/components/cronet/android/test/proguard.cfg (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Proguard configuration that is common for all type of tests.
2
3-keepattributes Signature,InnerClasses,SourceFile,LineNumberTable,EnclosingMethod
4-dontwarn io.netty.**
5-keep class io.netty.** { *; }
6
7# https://android.googlesource.com/platform/sdk/+/marshmallow-mr1-release/files/proguard-android.txt#54
8-dontwarn android.support.**
9
10# Do not obfuscate this class for testing since some of the tests check the class
11# name in order to check that an instantiated engine is the Java one.
12-keepnames class org.chromium.net.impl.JavaCronetEngine
13
14# These classes should be explicitly kept to avoid failure if
15# class/merging/horizontal proguard optimization is enabled.
16# NOTE: make sure that only test classes are added to this list.
17-keep class org.chromium.base.test.** {
18    *;
19}
20
21-keep class org.chromium.net.TestFilesInstaller
22-keep class org.chromium.net.MetricsTestUtil
23
24# Generated for chrome apk and not included into cronet.
25-dontwarn org.chromium.build.NativeLibraries