blob: 86ec0505477cca9b34282ed54d1ce8a53b3e19dd [file] [log] [blame]
Adnan Begovic873364c2016-03-04 15:29:23 -08001# 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
Adnan Begovic873364c2016-03-04 15:29:23 -080015# Don't skip non public library classes, make sure we're not keeping anything which will get mapped against api verification.
Adnan Begovicba012752016-03-03 10:51:57 -080016-dontskipnonpubliclibraryclasses
Adnan Begovic873364c2016-03-04 15:29:23 -080017
18# Do the same with class members
Adnan Begovicba012752016-03-03 10:51:57 -080019-dontskipnonpubliclibraryclassmembers
Adnan Begovic873364c2016-03-04 15:29:23 -080020
Adnan Begovicc0bd6d02016-03-07 11:16:58 -080021# Keep test packages
Sam Mortimer3533d382019-05-13 15:28:04 -070022-keep class androidx.** { *; }
Adnan Begovicc0bd6d02016-03-07 11:16:58 -080023-keep class android.test.** { *; }
Sam Mortimer3533d382019-05-13 15:28:04 -070024-keep public class * extends androidx.** { *; }
Adnan Begovicc0bd6d02016-03-07 11:16:58 -080025-keep public class * extends android.test.** { *; }
Sam Mortimer3533d382019-05-13 15:28:04 -070026-keep interface androidx.** { *; }
Adnan Begovicc0bd6d02016-03-07 11:16:58 -080027-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
Adnan Begovic7ed4fca2016-03-07 11:48:37 -080035# Keep compiled java classes from declared aidl's within the test package
36-keep public class * extends android.os.IInterface { *; }
37
Adnan Begovic873364c2016-03-04 15:29:23 -080038# Don't warn about the Android Support Test JUnit Runner
Sam Mortimer3533d382019-05-13 15:28:04 -070039-dontwarn androidx.**
Adnan Begovicc0bd6d02016-03-07 11:16:58 -080040-dontwarn android.test.**
Adnan Begovic873364c2016-03-04 15:29:23 -080041
42# Don't warn about junit
Adnan Begovicba012752016-03-03 10:51:57 -080043-dontwarn junit.**
Adnan Begovicc0bd6d02016-03-07 11:16:58 -080044-dontwarn org.junit.**
Adnan Begovic873364c2016-03-04 15:29:23 -080045
Danesh Mb6e71bc2016-06-08 11:25:08 -070046# keep mockito methods
47-keep class org.mockito.** { *; }
48-keep interface org.mockito.** { *; }
49-keep class com.google.dexmaker.** { *; }
50-keep interface com.google.dexmaker.** { *; }
51
Adnan Begovic873364c2016-03-04 15:29:23 -080052# Always process
Adnan Begovicba012752016-03-03 10:51:57 -080053-forceprocessing
Adnan Begovic873364c2016-03-04 15:29:23 -080054
55# Make sure not to obfuscate the output
Adnan Begovicba012752016-03-03 10:51:57 -080056-dontobfuscate