blob: 1cce2c3cc32cdebcff44c2b47b9945f5c347a186 [file] [log] [blame]
Colin Crossfc7ba9e2017-12-07 13:11:06 -08001//
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// =====================================
19java_library {
20 name: "android.test.runner",
21
Tobias Thiererd65595a2018-02-05 15:49:52 +000022 // Needs to be consistent with the repackaged version of this make target.
23 java_version: "1.8",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080024 srcs: ["src/**/*.java"],
25
Paul Duffin2d86c7a2018-02-16 13:11:05 +000026 errorprone: {
Paul Duffinbedfae92018-02-22 12:16:31 +000027 javacflags: ["-Xep:DepAnn:ERROR"],
Paul Duffin2d86c7a2018-02-16 13:11:05 +000028 },
29
Jiyong Park029925a2018-02-22 14:16:35 +090030 sdk_version: "current",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080031 libs: [
Paul Duffine95a8952017-11-16 15:53:09 +000032 "android.test.base",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080033 "android.test.mock",
34 ],
35}
36
Paul Duffina88eb292018-01-12 16:08:35 +000037// Build the android.test.runner-minus-junit library
38// =================================================
Paul Duffin001d87c2018-02-14 10:36:16 +000039// This is only intended for inclusion in the legacy-android-test static
40// library and must not be used elsewhere.
Paul Duffina88eb292018-01-12 16:08:35 +000041java_library {
42 name: "android.test.runner-minus-junit",
43
44 srcs: ["src/android/**/*.java"],
45
Jiyong Park029925a2018-02-22 14:16:35 +090046 sdk_version: "current",
Paul Duffina88eb292018-01-12 16:08:35 +000047 libs: [
Paul Duffinb36eb542018-01-15 15:47:47 +000048 "android.test.base",
Paul Duffina88eb292018-01-12 16:08:35 +000049 "android.test.mock",
50 "junit",
51 ],
52}
53
Colin Crossfc7ba9e2017-12-07 13:11:06 -080054// Build the repackaged.android.test.runner library
55// ================================================
56java_library_static {
57 name: "repackaged.android.test.runner",
58
Paul Duffinbedfae92018-02-22 12:16:31 +000059 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
Jiyong Park029925a2018-02-22 14:16:35 +090070 sdk_version: "current",
Paul Duffinbedfae92018-02-22 12:16:31 +000071 libs: [
72 "android.test.base",
73 ],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080074
75 jarjar_rules: "jarjar-rules.txt",
Tobias Thiererd65595a2018-02-05 15:49:52 +000076 // Pin java_version until jarjar is certified to support later versions. http://b/72703434
77 java_version: "1.8",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080078}