Adnan Begovic | cf8f5ce | 2016-06-06 16:21:56 -0700 | [diff] [blame] | 1 | # 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 Mortimer | 3533d38 | 2019-05-13 15:28:04 -0700 | [diff] [blame] | 22 | -keep class androidx.** { *; } |
Adnan Begovic | cf8f5ce | 2016-06-06 16:21:56 -0700 | [diff] [blame] | 23 | -keep class android.test.** { *; } |
Sam Mortimer | 3533d38 | 2019-05-13 15:28:04 -0700 | [diff] [blame] | 24 | -keep public class * extends androidx.** { *; } |
Adnan Begovic | cf8f5ce | 2016-06-06 16:21:56 -0700 | [diff] [blame] | 25 | -keep public class * extends android.test.** { *; } |
Sam Mortimer | 3533d38 | 2019-05-13 15:28:04 -0700 | [diff] [blame] | 26 | -keep interface androidx.** { *; } |
Adnan Begovic | cf8f5ce | 2016-06-06 16:21:56 -0700 | [diff] [blame] | 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 | |
| 35 | # Keep compiled java classes from declared aidl's within the test package |
Sam Mortimer | 3d25e8b | 2019-09-19 16:33:47 -0700 | [diff] [blame] | 36 | -keep public class * implements android.os.IInterface { *; } |
Adnan Begovic | cf8f5ce | 2016-06-06 16:21:56 -0700 | [diff] [blame] | 37 | |
| 38 | # Don't warn about the Android Support Test JUnit Runner |
Sam Mortimer | 3533d38 | 2019-05-13 15:28:04 -0700 | [diff] [blame] | 39 | -dontwarn androidx.** |
Adnan Begovic | cf8f5ce | 2016-06-06 16:21:56 -0700 | [diff] [blame] | 40 | -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 |