blob: c008eca169244815bbe4ba99e6eadd1543579291 [file] [log] [blame]
Colin Crossfc7ba9e2017-12-07 13:11:06 -08001//
2// Copyright (C) 2016 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
Paul Duffine95a8952017-11-16 15:53:09 +000017// Build the android.test.base library
18// ===================================
19// This contains the junit.framework and android.test classes that were in
20// Android API level 25 excluding those from android.test.runner.
21// Also contains the com.android.internal.util.Predicate[s] classes.
22java_library {
23 name: "android.test.base",
24
25 srcs: ["src/**/*.java"],
26
Tobias Thiererd65595a2018-02-05 15:49:52 +000027 // Needs to be consistent with the repackaged version of this make target.
28 java_version: "1.8",
29
Paul Duffin4cdec672018-02-14 10:36:16 +000030 sdk_version: "current",
Paul Duffine95a8952017-11-16 15:53:09 +000031 hostdex: true,
Paul Duffine95a8952017-11-16 15:53:09 +000032}
33
Colin Crossfc7ba9e2017-12-07 13:11:06 -080034// Build the legacy-test library
35// =============================
36// This contains the junit.framework and android.test classes that were in
37// Android API level 25 excluding those from android.test.runner.
38// Also contains the com.android.internal.util.Predicate[s] classes.
39java_library {
40 name: "legacy-test",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080041
Paul Duffin4cdec672018-02-14 10:36:16 +000042 sdk_version: "current",
43 static_libs: ["android.test.base"],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080044}
45
Paul Duffine95a8952017-11-16 15:53:09 +000046// Build the repackaged.android.test.base library
47// ==============================================
Paul Duffinb36eb542018-01-15 15:47:47 +000048// This contains repackaged versions of the classes from
49// android.test.base.
Colin Crossfc7ba9e2017-12-07 13:11:06 -080050java_library_static {
Paul Duffine95a8952017-11-16 15:53:09 +000051 name: "repackaged.android.test.base",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080052
Paul Duffin4cdec672018-02-14 10:36:16 +000053 sdk_version: "current",
Paul Duffine95a8952017-11-16 15:53:09 +000054 static_libs: ["android.test.base"],
Colin Crossfc7ba9e2017-12-07 13:11:06 -080055
56 jarjar_rules: "jarjar-rules.txt",
Tobias Thiererd65595a2018-02-05 15:49:52 +000057 // Pin java_version until jarjar is certified to support later versions. http://b/72703434
58 java_version: "1.8",
Colin Crossfc7ba9e2017-12-07 13:11:06 -080059}
60
Paul Duffinbee7cce2018-01-05 15:11:18 +000061// Build the android.test.base-minus-junit library
62// ===============================================
63// This contains the android.test classes from android.test.base plus
64// the com.android.internal.util.Predicate[s] classes. This is only
Paul Duffinf24612b2018-01-31 13:30:22 +000065// intended for inclusion in the android.test.legacy and
66// legacy-android-test static libraries and must not be used elsewhere.
Paul Duffinbee7cce2018-01-05 15:11:18 +000067java_library_static {
68 name: "android.test.base-minus-junit",
69
70 srcs: [
71 "src/android/**/*.java",
72 "src/com/**/*.java",
73 ],
74
75 sdk_version: "current",
76 libs: [
77 "junit",
78 ],
79}