• 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: "system_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    ],
51
52    plugins: ["java_api_finder"],
53    lint: {
54        strict_updatability_linting: true,
55    },
56}
57
58android_app {
59    name: "ExtServices",
60    sdk_version: "system_current",
61    min_sdk_version: "30",
62    certificate: "platform",
63    optimize: {
64        optimize: true,
65        proguard_compatibility: false,
66        proguard_flags_files: ["proguard.proguard"],
67    },
68    privileged: true,
69    static_libs: [
70        "ExtServices-core",
71    ],
72    jni_libs: ["libtextclassifier", "libextservices_jni"],
73    use_embedded_native_libs: true,
74    apex_available: [
75        "//apex_available:platform",
76        "com.android.extservices",
77        "test_com.android.extservices",
78    ],
79}
80