Nan Zhang | 5b1e7c9 | 2018-04-13 15:58:29 -0700 | [diff] [blame] | 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 | droiddoc { |
| 16 | name: "uiautomator-stubs-docs", |
| 17 | srcs: [ |
| 18 | "core-src/**/*.java", |
| 19 | "testrunner-src/**/*.java", |
| 20 | ], |
| 21 | libs: [ |
| 22 | "android.test.runner", |
| 23 | "junit", |
| 24 | "android.test.base", |
Artur Satayev | 6aa25ec | 2019-12-11 16:33:22 +0000 | [diff] [blame] | 25 | "unsupportedappusage", |
Nan Zhang | 5b1e7c9 | 2018-04-13 15:58:29 -0700 | [diff] [blame] | 26 | ], |
| 27 | custom_template: "droiddoc-templates-sdk", |
| 28 | installable: false, |
| 29 | args: "-stubpackages com.android.uiautomator.core:" + |
| 30 | "com.android.uiautomator.testrunner", |
| 31 | api_tag_name: "UIAUTOMATOR", |
| 32 | api_filename: "uiautomator_api.txt", |
| 33 | removed_api_filename: "uiautomator_removed_api.txt", |
Colin Cross | 37d4c00 | 2019-03-28 22:31:35 -0700 | [diff] [blame] | 34 | |
| 35 | check_api: { |
| 36 | current: { |
| 37 | api_file: ":uiautomator-current-api", |
| 38 | removed_api_file: ":uiautomator-removed-api", |
| 39 | }, |
| 40 | last_released: { |
| 41 | api_file: ":uiautomator-last-released-api", |
| 42 | removed_api_file: ":uiautomator-removed-api", |
| 43 | }, |
| 44 | }, |
Nan Zhang | 5b1e7c9 | 2018-04-13 15:58:29 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | java_library_static { |
| 48 | name: "android_uiautomator", |
| 49 | srcs: [ |
| 50 | ":uiautomator-stubs-docs", |
| 51 | ], |
| 52 | libs: [ |
| 53 | "android.test.runner", |
| 54 | "junit", |
| 55 | ], |
| 56 | } |
| 57 | |
| 58 | java_library_static { |
| 59 | name: "uiautomator.core", |
| 60 | srcs: [ |
| 61 | "core-src/**/*.java", |
| 62 | "testrunner-src/**/*.java", |
| 63 | ], |
| 64 | libs: [ |
| 65 | "android.test.runner", |
| 66 | "android.test.base", |
| 67 | ], |
| 68 | static_libs: [ |
| 69 | "junit", |
| 70 | ] |
| 71 | } |
Colin Cross | 37d4c00 | 2019-03-28 22:31:35 -0700 | [diff] [blame] | 72 | |
| 73 | java_library_static { |
| 74 | name: "uiautomator.library", |
| 75 | srcs: [ |
| 76 | "core-src/**/*.java", |
| 77 | ], |
| 78 | } |