blob: a796d2afecf726547494282577876354e534b4be [file] [log] [blame]
Jaewoong Jung9f39a3b2019-05-09 12:43:15 -07001// Copyright (C) 2016 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
Bob Badour8807f4a2021-02-12 15:46:22 -080015package {
16 default_applicable_licenses: ["packages_modules_ExtServices_license"],
17}
18
19// Added automatically by a large-scale-change
20// See: http://go/android-license-faq
21license {
22 name: "packages_modules_ExtServices_license",
23 visibility: [":__subpackages__"],
24 license_kinds: [
25 "SPDX-license-identifier-Apache-2.0",
26 ],
27 license_text: [
28 "NOTICE",
29 ],
30}
31
Julia Reynolds55268d72019-01-30 12:16:58 -050032android_library {
33 name: "ExtServices-core",
lpeterc92565e2020-01-10 14:27:25 +080034 srcs: [
chaviwdeb91092020-11-12 15:45:44 -080035 "java/src/**/*.java",
lpeterc92565e2020-01-10 14:27:25 +080036 ],
Neharika Jali35286c82021-10-20 14:30:03 +000037 sdk_version: "module_current",
Tony Makcb7c4fd2020-11-02 15:06:07 +000038 min_sdk_version: "30",
lpeterc92565e2020-01-10 14:27:25 +080039 resource_dirs: [
chaviwdeb91092020-11-12 15:45:44 -080040 "java/res",
lpeterc92565e2020-01-10 14:27:25 +080041 ],
Julia Reynolds55268d72019-01-30 12:16:58 -050042
lpeterc92565e2020-01-10 14:27:25 +080043 manifest: "AndroidManifest.xml",
Kun Niud119a172019-07-01 17:36:13 -070044
lpeterc92565e2020-01-10 14:27:25 +080045 static_libs: [
46 "androidx.annotation_annotation",
Adam Hee0d8a8b2020-01-23 13:42:05 -080047 "androidx.autofill_autofill",
lpeterc92565e2020-01-10 14:27:25 +080048 "TextClassifierServiceLibNoManifest",
Chang Li7d2e3512021-02-19 19:56:45 +000049 "TextClassifierNotificationLibNoManifest",
50 "androidx.work_work-runtime",
Neharika Jali35286c82021-10-20 14:30:03 +000051 "modules-utils-build",
lpeterc92565e2020-01-10 14:27:25 +080052 ],
Narayan Kamatha9eea9b2019-08-08 17:14:54 +010053
Neharika Jali35286c82021-10-20 14:30:03 +000054 libs : ["framework-connectivity"],
55
lpeterc92565e2020-01-10 14:27:25 +080056 plugins: ["java_api_finder"],
chaviw9ed01102021-06-22 11:34:02 -050057 lint: {
58 strict_updatability_linting: true,
59 },
Jaewoong Jung9f39a3b2019-05-09 12:43:15 -070060}
61
62android_app {
63 name: "ExtServices",
Neharika Jali35286c82021-10-20 14:30:03 +000064 sdk_version: "module_current",
Tony Makcb7c4fd2020-11-02 15:06:07 +000065 min_sdk_version: "30",
Jaewoong Jung9f39a3b2019-05-09 12:43:15 -070066 optimize: {
Tony Mak69468792021-04-14 20:18:39 +010067 optimize: true,
68 proguard_compatibility: false,
Jaewoong Jung9f39a3b2019-05-09 12:43:15 -070069 proguard_flags_files: ["proguard.proguard"],
70 },
71 privileged: true,
Narayan Kamatha9eea9b2019-08-08 17:14:54 +010072 static_libs: [
Tony Mak45604e52019-09-03 17:17:44 +010073 "ExtServices-core",
74 ],
chaviw89c336f2020-11-20 14:24:21 -080075 jni_libs: ["libtextclassifier", "libextservices_jni"],
Dario Freni1682cb72020-01-17 02:17:56 +000076 use_embedded_native_libs: true,
Andrei Oneae9ce53a2022-02-15 14:15:23 +000077 required: ["privapp_allowlist_android.ext.services.xml"],
Dario Freni1682cb72020-01-17 02:17:56 +000078 apex_available: [
Dario Frenif1df3d32020-01-20 17:30:14 +000079 "//apex_available:platform",
Dario Freni1682cb72020-01-17 02:17:56 +000080 "com.android.extservices",
lpeter7f4c9c52020-02-05 15:35:29 +080081 "test_com.android.extservices",
Dario Freni1682cb72020-01-17 02:17:56 +000082 ],
Jaewoong Jung9f39a3b2019-05-09 12:43:15 -070083}