• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15package {
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
32android_library {
33    name: "ExtServices-core",
34    srcs: [
35        "java/src/**/*.java",
36    ],
37    sdk_version: "module_current",
38    min_sdk_version: "30",
39    resource_dirs: [
40        "java/res",
41    ],
42
43    manifest: "AndroidManifest.xml",
44
45    static_libs: [
46        "androidx.annotation_annotation",
47        "androidx.autofill_autofill",
48        "TextClassifierServiceLibNoManifest",
49        "TextClassifierNotificationLibNoManifest",
50        "androidx.work_work-runtime",
51        "modules-utils-build",
52    ],
53
54    libs : ["framework-connectivity"],
55
56    plugins: ["java_api_finder"],
57    lint: {
58        strict_updatability_linting: true,
59    },
60}
61
62android_app {
63    name: "ExtServices",
64    sdk_version: "module_current",
65    min_sdk_version: "30",
66    optimize: {
67        optimize: true,
68        proguard_compatibility: false,
69        proguard_flags_files: ["proguard.proguard"],
70    },
71    privileged: true,
72    static_libs: [
73        "ExtServices-core",
74    ],
75    jni_libs: ["libtextclassifier", "libextservices_jni"],
76    use_embedded_native_libs: true,
77    required: ["privapp_allowlist_android.ext.services.xml"],
78    apex_available: [
79        "//apex_available:platform",
80        "com.android.extservices",
81        "test_com.android.extservices",
82    ],
83}
84