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. 14package { 15 // See: http://go/android-license-faq 16 // A large-scale-change added 'default_applicable_licenses' to import 17 // all of the 'license_kinds' from "frameworks_base_license" 18 // to get the below license kinds: 19 // SPDX-license-identifier-Apache-2.0 20 default_applicable_licenses: ["frameworks_base_license"], 21} 22 23genrule { 24 name: "statslog-appsearch-java-gen", 25 tools: ["stats-log-api-gen"], 26 cmd: "$(location stats-log-api-gen) --java $(out) --module appsearch --javaPackage com.android.server.appsearch.stats --javaClass AppSearchStatsLog", 27 out: ["com/android/server/appsearch/stats/AppSearchStatsLog.java"], 28} 29 30java_library { 31 name: "statslog-appsearch-lib", 32 srcs: [":statslog-appsearch-java-gen"], 33 libs: [ 34 "framework-statsd.stubs.module_lib", 35 ], 36 sdk_version: "system_server_current", 37 apex_available: ["com.android.appsearch"], 38} 39 40java_library { 41 name: "service-appsearch", 42 srcs: ["java/**/*.java"], 43 sdk_version: "system_server_current", 44 static_libs: [ 45 "icing-java-proto-lite", 46 "libicing-java", 47 "statslog-appsearch-lib", 48 // Entries below this line are outside of the appsearch package tree and must be kept in 49 // sync with jarjar.txt 50 "modules-utils-preconditions", 51 ], 52 libs: [ 53 "framework-appsearch.impl", 54 "framework-statsd.stubs.module_lib", 55 ], 56 defaults: ["framework-system-server-module-defaults"], 57 permitted_packages: [ 58 "com.android.server.appsearch", 59 "com.google.android.icing", 60 ], 61 jarjar_rules: "jarjar-rules.txt", 62 visibility: [ 63 // These are required until appsearch is properly unbundled. 64 "//frameworks/base/services/tests/mockingservicestests", 65 "//frameworks/base/services/tests/servicestests", 66 ], 67 apex_available: ["com.android.appsearch"], 68 installable: true, 69} 70