blob: d9e855cb54ef6dcbff29c766d15dd10cb89f7e9b [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
22-keep class android.support.** { *; }
23-keep class android.test.** { *; }
24-keep public class * extends android.support.** { *; }
25-keep public class * extends android.test.** { *; }
26-keep interface android.support.** { *; }
27-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
Adnan Begovicc0bd6d02016-03-07 11:16:58 -080039-dontwarn android.support.**
40-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
46# Always process
Adnan Begovicba012752016-03-03 10:51:57 -080047-forceprocessing
Adnan Begovic873364c2016-03-04 15:29:23 -080048
49# Make sure not to obfuscate the output
Adnan Begovicba012752016-03-03 10:51:57 -080050-dontobfuscate