1 // 2 // Copyright (C) 2008 The Android Open Source Project 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 // Build the android.test.runner library 18 // ===================================== 19 java_library { 20 name: "android.test.runner", 21 22 // Needs to be consistent with the repackaged version of this make target. 23 java_version: "1.8", 24 srcs: ["src/**/*.java"], 25 26 errorprone: { 27 javacflags: ["-Xep:DepAnn:ERROR"], 28 }, 29 30 sdk_version: "current", 31 libs: [ 32 "android.test.base", 33 "android.test.mock", 34 ], 35 } 36 37 // Build the android.test.runner-minus-junit library 38 // ================================================= 39 // This is only intended for inclusion in the legacy-android-test static 40 // library and must not be used elsewhere. 41 java_library { 42 name: "android.test.runner-minus-junit", 43 44 srcs: ["src/android/**/*.java"], 45 46 sdk_version: "current", 47 libs: [ 48 "android.test.base", 49 "android.test.mock", 50 "junit", 51 ], 52 } 53 54 // Build the repackaged.android.test.runner library 55 // ================================================ 56 java_library_static { 57 name: "repackaged.android.test.runner", 58 59 srcs: ["src/**/*.java"], 60 exclude_srcs: [ 61 "src/android/test/ActivityUnitTestCase.java", 62 "src/android/test/ApplicationTestCase.java", 63 "src/android/test/IsolatedContext.java", 64 "src/android/test/ProviderTestCase.java", 65 "src/android/test/ProviderTestCase2.java", 66 "src/android/test/RenamingDelegatingContext.java", 67 "src/android/test/ServiceTestCase.java", 68 ], 69 70 sdk_version: "current", 71 libs: [ 72 "android.test.base", 73 ], 74 75 jarjar_rules: "jarjar-rules.txt", 76 // Pin java_version until jarjar is certified to support later versions. http://b/72703434 77 java_version: "1.8", 78 } 79