blob: 0a0d50cc330cd44af73fc09f9d8f3653b56e65c5 [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// =====================================
Sundong Ahnf24779c2018-07-31 16:54:41 +090019java_sdk_library {
Colin Crossfc7ba9e2017-12-07 13:11:06 -080020 name: "android.test.runner",
21
22 srcs: ["src/**/*.java"],
23
Paul Duffin2d86c7a2018-02-16 13:11:05 +000024 errorprone: {
Paul Duffinbedfae92018-02-22 12:16:31 +000025 javacflags: ["-Xep:DepAnn:ERROR"],
Paul Duffin2d86c7a2018-02-16 13:11:05 +000026 },
27
Colin Crossfc7ba9e2017-12-07 13:11:06 -080028 libs: [
Paul Duffine95a8952017-11-16 15:53:09 +000029 "android.test.base",
Sundong Ahnf24779c2018-07-31 16:54:41 +090030 "android.test.mock",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080031 ],
Sundong Ahnf24779c2018-07-31 16:54:41 +090032 stub_only_libs: [
33 "android.test.base",
34 "android.test.mock",
35 ],
36 api_packages: [
37 "android.test",
38 "android.test.suitebuilder",
39 "junit.runner",
40 "junit.textui",
41 ],
42
Sundong Ahn558e7022018-09-17 15:23:14 +090043 droiddoc_options: ["-stubsourceonly"],
44 metalava_enabled: false,
Sundong Ahnf24779c2018-07-31 16:54:41 +090045 compile_dex: true
Colin Crossfc7ba9e2017-12-07 13:11:06 -080046}
47
Paul Duffina88eb292018-01-12 16:08:35 +000048// Build the android.test.runner-minus-junit library
49// =================================================
Paul Duffin001d87c2018-02-14 10:36:16 +000050// This is only intended for inclusion in the legacy-android-test static
51// library and must not be used elsewhere.
Paul Duffina88eb292018-01-12 16:08:35 +000052java_library {
53 name: "android.test.runner-minus-junit",
54
55 srcs: ["src/android/**/*.java"],
56
Jiyong Park029925a2018-02-22 14:16:35 +090057 sdk_version: "current",
Paul Duffina88eb292018-01-12 16:08:35 +000058 libs: [
Sundong Ahnf24779c2018-07-31 16:54:41 +090059 "android.test.base_static",
60 "android.test.mock",
Paul Duffina88eb292018-01-12 16:08:35 +000061 "junit",
62 ],
63}
64
Colin Crossfc7ba9e2017-12-07 13:11:06 -080065// Build the repackaged.android.test.runner library
66// ================================================
67java_library_static {
68 name: "repackaged.android.test.runner",
69
Paul Duffinbedfae92018-02-22 12:16:31 +000070 srcs: ["src/**/*.java"],
71 exclude_srcs: [
72 "src/android/test/ActivityUnitTestCase.java",
73 "src/android/test/ApplicationTestCase.java",
74 "src/android/test/IsolatedContext.java",
75 "src/android/test/ProviderTestCase.java",
76 "src/android/test/ProviderTestCase2.java",
77 "src/android/test/RenamingDelegatingContext.java",
78 "src/android/test/ServiceTestCase.java",
79 ],
80
Jiyong Park029925a2018-02-22 14:16:35 +090081 sdk_version: "current",
Paul Duffinbedfae92018-02-22 12:16:31 +000082 libs: [
Sundong Ahnf24779c2018-07-31 16:54:41 +090083 "android.test.base_static",
Paul Duffinbedfae92018-02-22 12:16:31 +000084 ],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080085
86 jarjar_rules: "jarjar-rules.txt",
Tobias Thiererd65595a2018-02-05 15:49:52 +000087 // Pin java_version until jarjar is certified to support later versions. http://b/72703434
88 java_version: "1.8",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080089}
Nan Zhang4a139d02018-04-26 14:55:41 -070090