Anton Hansson | f3cf62b | 2020-03-19 15:30:40 +0000 | [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. |
Muhammad Qureshi | 8ea733e | 2020-02-07 09:30:28 -0800 | [diff] [blame] | 14 | |
| 15 | filegroup { |
| 16 | name: "service-statsd-sources", |
| 17 | srcs: [ |
| 18 | "java/**/*.java", |
| 19 | ], |
| 20 | } |
| 21 | |
Tej Singh | c53ac0a | 2019-09-20 16:29:13 -0700 | [diff] [blame] | 22 | java_library { |
Anton Hansson | 97369f8 | 2019-11-22 11:40:08 +0000 | [diff] [blame] | 23 | name: "service-statsd", |
Tej Singh | c53ac0a | 2019-09-20 16:29:13 -0700 | [diff] [blame] | 24 | installable: true, |
| 25 | |
| 26 | srcs: [ |
Muhammad Qureshi | 8ea733e | 2020-02-07 09:30:28 -0800 | [diff] [blame] | 27 | ":service-statsd-sources", |
Tej Singh | c53ac0a | 2019-09-20 16:29:13 -0700 | [diff] [blame] | 28 | ], |
Muhammad Qureshi | fc3e305 | 2020-02-09 13:27:28 -0800 | [diff] [blame] | 29 | |
| 30 | // TODO(b/146757305) should be "module_current" since not allowed to use |
| 31 | // @CorePlatformApi's |
Muhammad Qureshi | 8ea733e | 2020-02-07 09:30:28 -0800 | [diff] [blame] | 32 | sdk_version: "core_platform", |
Muhammad Qureshi | fc3e305 | 2020-02-09 13:27:28 -0800 | [diff] [blame] | 33 | |
Tej Singh | c53ac0a | 2019-09-20 16:29:13 -0700 | [diff] [blame] | 34 | libs: [ |
Muhammad Qureshi | 8ea733e | 2020-02-07 09:30:28 -0800 | [diff] [blame] | 35 | "framework-annotations-lib", |
Muhammad Qureshi | 8ea733e | 2020-02-07 09:30:28 -0800 | [diff] [blame] | 36 | "services-stubs", |
Muhammad Qureshi | fc3e305 | 2020-02-09 13:27:28 -0800 | [diff] [blame] | 37 | "framework-statsd", |
| 38 | |
| 39 | // TODO(b/146757305): should be unnecessary once |
| 40 | // sdk_version="module_lib_current" or "module_current" |
| 41 | "android_module_lib_stubs_current", |
Tej Singh | c53ac0a | 2019-09-20 16:29:13 -0700 | [diff] [blame] | 42 | ], |
Muhammad Qureshi | fc3e305 | 2020-02-09 13:27:28 -0800 | [diff] [blame] | 43 | |
Howard Ro | 30ab9fe | 2020-02-26 23:34:17 -0800 | [diff] [blame] | 44 | plugins: ["java_api_finder"], |
| 45 | |
Anton Hansson | 5e0d394 | 2020-01-10 17:38:35 +0000 | [diff] [blame] | 46 | apex_available: [ |
| 47 | "com.android.os.statsd", |
| 48 | "test_com.android.os.statsd", |
| 49 | ], |
Anton Hansson | 97369f8 | 2019-11-22 11:40:08 +0000 | [diff] [blame] | 50 | } |