Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 1 | // Copyright (C) 2020 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 | |
Hai Zhang | 76f0def | 2020-01-16 01:42:58 -0800 | [diff] [blame] | 15 | filegroup { |
| 16 | name: "service-permission-sources", |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 17 | srcs: [ |
| 18 | "java/**/*.java", |
| 19 | ], |
Hai Zhang | 76f0def | 2020-01-16 01:42:58 -0800 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | java_library { |
| 23 | name: "service-permission", |
| 24 | srcs: [ |
| 25 | ":service-permission-sources", |
| 26 | ], |
Anton Hansson | 9003745 | 2020-02-08 13:49:17 +0000 | [diff] [blame] | 27 | sdk_version: "module_current", |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 28 | libs: [ |
Hai Zhang | 76f0def | 2020-01-16 01:42:58 -0800 | [diff] [blame] | 29 | "framework-annotations-lib", |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 30 | "framework-permission", |
| 31 | ], |
| 32 | apex_available: [ |
| 33 | "com.android.permission", |
| 34 | "test_com.android.permission", |
| 35 | ], |
| 36 | installable: true, |
| 37 | } |
Anton Hansson | 1db3316 | 2020-03-23 13:30:15 +0000 | [diff] [blame] | 38 | |
| 39 | droidstubs { |
| 40 | name: "service-permission-stubs-srcs", |
| 41 | srcs: [ ":service-permission-sources" ], |
| 42 | defaults: ["service-module-stubs-srcs-defaults"], |
| 43 | visibility: ["//visibility:private"] |
| 44 | } |
| 45 | |
| 46 | java_library { |
| 47 | name: "service-permission-stubs", |
| 48 | srcs: [":service-permission-stubs-srcs"], |
| 49 | defaults: ["service-module-stubs-defaults"], |
| 50 | visibility: ["//visibility:private"] |
| 51 | } |