Debian Codegraph @

cmds/uiautomator/library/Android.bp

raw
1 // Copyright (C) 2012 The Android Open Source 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 package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_base_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_base_license"],
22 }
23
24 droidstubs {
25 name: "uiautomator-stubs",
26 srcs: [
27 "core-src/**/*.java",
28 "testrunner-src/**/*.java",
29 ],
30 libs: [
31 "android.test.runner",
32 "junit",
33 "android.test.base",
34 "unsupportedappusage",
35 ],
36 installable: false,
37 flags: [
38 "-stubpackages com.android.uiautomator.core:com.android.uiautomator.testrunner",
39 ],
40
41 check_api: {
42 current: {
43 api_file: ":uiautomator-current-api",
44 removed_api_file: ":uiautomator-removed-api",
45 },
46 last_released: {
47 api_file: ":uiautomator-last-released-api",
48 removed_api_file: ":uiautomator-removed-api",
49 },
50 },
51 }
52
53 droiddoc {
54 name: "uiautomator-stubs-docs",
55 srcs: [
56 ":uiautomator-stubs",
57 ],
58 libs: [
59 "android.test.runner",
60 "junit",
61 "android.test.base",
62 ],
63 sdk_version: "current",
64 installable: false,
65 custom_template: "droiddoc-templates-sdk",
66 }
67
68 java_library_static {
69 name: "android_uiautomator",
70 srcs: [
71 ":uiautomator-stubs",
72 ],
73 libs: [
74 "android.test.runner",
75 "junit",
76 ],
77 java_version: "1.8",
78 }
79
80 java_library_static {
81 name: "uiautomator.core",
82 srcs: [
83 "core-src/**/*.java",
84 "testrunner-src/**/*.java",
85 ],
86 libs: [
87 "android.test.runner",
88 "android.test.base",
89 ],
90 static_libs: [
91 "junit",
92 ],
93 }
94
95 java_library_static {
96 name: "uiautomator.library",
97 srcs: [
98 "core-src/**/*.java",
99 ],
100 }