Anton Hansson | 98460ab | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 1 | // Copyright (C) 2019 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 | |
Anton Hansson | 2337daf | 2019-12-16 11:47:20 +0000 | [diff] [blame] | 15 | package { |
| 16 | default_visibility: [ ":__pkg__" ] |
| 17 | } |
| 18 | |
Anton Hansson | 98460ab | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 19 | filegroup { |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 20 | name: "framework-sdkextensions-sources", |
Anton Hansson | 98460ab | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 21 | srcs: [ |
| 22 | "java/**/*.java", |
| 23 | ], |
| 24 | path: "java", |
Anton Hansson | fc33dde | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 25 | visibility: [ "//frameworks/base" ] // For the "global" stubs. |
Anton Hansson | 98460ab | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 26 | } |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 27 | |
| 28 | java_library { |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 29 | name: "framework-sdkextensions", |
| 30 | srcs: [ ":framework-sdkextensions-sources" ], |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 31 | sdk_version: "system_current", |
| 32 | libs: [ "framework-annotations-lib" ], |
| 33 | permitted_packages: [ "android.os.ext" ], |
| 34 | installable: true, |
Anton Hansson | 6b82bcc | 2020-01-16 14:40:21 +0000 | [diff] [blame] | 35 | plugins: ["java_api_finder"], |
Anton Hansson | fc33dde | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 36 | visibility: [ |
| 37 | "//frameworks/base/apex/sdkextensions", |
| 38 | "//frameworks/base/apex/sdkextensions/testing", |
| 39 | ], |
Jiyong Park | 90247c8 | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 40 | hostdex: true, // for hiddenapi check |
| 41 | apex_available: [ |
| 42 | "com.android.sdkext", |
| 43 | "test_com.android.sdkext", |
| 44 | ], |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 45 | } |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 46 | |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 47 | stubs_defaults { |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 48 | name: "framework-sdkextensions-stubs-defaults", |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 49 | srcs: [ ":framework-sdkextensions-sources" ], |
| 50 | libs: [ "framework-annotations-lib" ], |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 51 | dist: { dest: "framework-sdkextensions.txt" }, |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 52 | } |
| 53 | |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 54 | droidstubs { |
| 55 | name: "framework-sdkextensions-stubs-srcs-publicapi", |
| 56 | defaults: [ |
| 57 | "framework-module-stubs-defaults-publicapi", |
| 58 | "framework-sdkextensions-stubs-defaults", |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 59 | ], |
Anton Hansson | 340954c | 2020-05-01 18:25:09 +0100 | [diff] [blame] | 60 | check_api: { |
| 61 | last_released: { |
| 62 | api_file: ":framework-sdkextensions.api.public.latest", |
| 63 | removed_api_file: ":framework-sdkextensions-removed.api.public.latest", |
| 64 | }, |
| 65 | api_lint: { |
| 66 | new_since: ":framework-sdkextensions.api.public.latest", |
| 67 | }, |
| 68 | }, |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | droidstubs { |
| 72 | name: "framework-sdkextensions-stubs-srcs-systemapi", |
| 73 | defaults: [ |
| 74 | "framework-module-stubs-defaults-systemapi", |
| 75 | "framework-sdkextensions-stubs-defaults", |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 76 | ], |
Anton Hansson | 340954c | 2020-05-01 18:25:09 +0100 | [diff] [blame] | 77 | check_api: { |
| 78 | last_released: { |
| 79 | api_file: ":framework-sdkextensions.api.system.latest", |
| 80 | removed_api_file: ":framework-sdkextensions-removed.api.system.latest", |
| 81 | }, |
| 82 | api_lint: { |
| 83 | new_since: ":framework-sdkextensions.api.system.latest", |
| 84 | }, |
| 85 | }, |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | droidstubs { |
| 89 | name: "framework-sdkextensions-api-module_libs_api", |
| 90 | defaults: [ |
| 91 | "framework-module-api-defaults-module_libs_api", |
| 92 | "framework-sdkextensions-stubs-defaults", |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 93 | ], |
Anton Hansson | 340954c | 2020-05-01 18:25:09 +0100 | [diff] [blame] | 94 | check_api: { |
| 95 | last_released: { |
| 96 | api_file: ":framework-sdkextensions.api.module-lib.latest", |
| 97 | removed_api_file: ":framework-sdkextensions-removed.api.module-lib.latest", |
| 98 | }, |
| 99 | api_lint: { |
| 100 | new_since: ":framework-sdkextensions.api.module-lib.latest", |
| 101 | }, |
| 102 | }, |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | droidstubs { |
| 106 | name: "framework-sdkextensions-stubs-srcs-module_libs_api", |
| 107 | defaults: [ |
| 108 | "framework-module-stubs-defaults-module_libs_api", |
| 109 | "framework-sdkextensions-stubs-defaults", |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 110 | ], |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | java_library { |
| 114 | name: "framework-sdkextensions-stubs-publicapi", |
| 115 | srcs: [":framework-sdkextensions-stubs-srcs-publicapi"], |
Anton Hansson | 2cc2287 | 2020-03-24 19:51:03 +0000 | [diff] [blame] | 116 | defaults: ["framework-module-stubs-lib-defaults-publicapi"], |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 117 | visibility: [ |
| 118 | "//frameworks/base", // Framework |
| 119 | "//frameworks/base/apex/sdkextensions", // sdkextensions SDK |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 120 | ], |
| 121 | dist: { dest: "framework-sdkextensions.jar" }, |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 122 | } |
| 123 | |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 124 | java_library { |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 125 | name: "framework-sdkextensions-stubs-systemapi", |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 126 | srcs: [":framework-sdkextensions-stubs-srcs-systemapi"], |
Anton Hansson | 2cc2287 | 2020-03-24 19:51:03 +0000 | [diff] [blame] | 127 | defaults: ["framework-module-stubs-lib-defaults-systemapi"], |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 128 | visibility: [ |
| 129 | "//frameworks/base", // Framework |
| 130 | "//frameworks/base/apex/sdkextensions", // sdkextensions SDK |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 131 | ], |
| 132 | dist: { dest: "framework-sdkextensions.jar" }, |
Anton Hansson | 89c77f5 | 2020-02-03 15:11:10 +0000 | [diff] [blame] | 133 | } |
| 134 | |
| 135 | java_library { |
| 136 | name: "framework-sdkextensions-stubs-module_libs_api", |
| 137 | srcs: [":framework-sdkextensions-stubs-srcs-module_libs_api"], |
Anton Hansson | 2cc2287 | 2020-03-24 19:51:03 +0000 | [diff] [blame] | 138 | defaults: ["framework-module-stubs-lib-defaults-module_libs_api"], |
Anton Hansson | 2337daf | 2019-12-16 11:47:20 +0000 | [diff] [blame] | 139 | visibility: [ |
Anton Hansson | fc33dde | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 140 | "//frameworks/base", // Framework |
| 141 | "//frameworks/base/apex/sdkextensions", // sdkextensions SDK |
Anton Hansson | 8bf731c | 2020-04-30 14:26:22 +0100 | [diff] [blame] | 142 | ], |
| 143 | dist: { dest: "framework-sdkextensions.jar" }, |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 144 | } |