blob: 291d026850a86584fa9e14b5d653e25fc986d700 [file] [log] [blame]
Adnan Begoviccf8f5ce2016-06-06 16:21:56 -07001# Copyright (C) 2016 The CyanogenMod Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Don't skip non public library classes, make sure we're not keeping anything which will get mapped against api verification.
16-dontskipnonpubliclibraryclasses
17
18# Do the same with class members
19-dontskipnonpubliclibraryclassmembers
20
21# Keep test packages
Sam Mortimer3533d382019-05-13 15:28:04 -070022-keep class androidx.** { *; }
Adnan Begoviccf8f5ce2016-06-06 16:21:56 -070023-keep class android.test.** { *; }
Sam Mortimer3533d382019-05-13 15:28:04 -070024-keep public class * extends androidx.** { *; }
Adnan Begoviccf8f5ce2016-06-06 16:21:56 -070025-keep public class * extends android.test.** { *; }
Sam Mortimer3533d382019-05-13 15:28:04 -070026-keep interface androidx.** { *; }
Adnan Begoviccf8f5ce2016-06-06 16:21:56 -070027-keep interface android.test.** { *; }
28
29# Keep all junit classes
30-keep class junit.** { *; }
31-keep class org.junit.** { *; }
32-keep interface junit.** { *; }
33-keep interface org.junit.** { *; }
34
35# Keep compiled java classes from declared aidl's within the test package
Sam Mortimer3d25e8b2019-09-19 16:33:47 -070036-keep public class * implements android.os.IInterface { *; }
Adnan Begoviccf8f5ce2016-06-06 16:21:56 -070037
38# Don't warn about the Android Support Test JUnit Runner
Sam Mortimer3533d382019-05-13 15:28:04 -070039-dontwarn androidx.**
Adnan Begoviccf8f5ce2016-06-06 16:21:56 -070040-dontwarn android.test.**
41
42# Don't warn about junit
43-dontwarn junit.**
44-dontwarn org.junit.**
45
46# Always process
47-forceprocessing
48
49# Make sure not to obfuscate the output
50-dontobfuscate