• 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_team: "trendy_team_android_rubidium",
17    default_applicable_licenses: ["packages_modules_ExtServices_license"],
18}
19
20// Added automatically by a large-scale-change
21// See: http://go/android-license-faq
22license {
23    name: "packages_modules_ExtServices_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27    ],
28    license_text: [
29        "NOTICE",
30    ],
31}
32
33android_library {
34    name: "ExtServices-core",
35    srcs: [
36        "java/src/**/*.java",
37    ],
38
39    sdk_version: "module_current",
40    min_sdk_version: "30",
41    resource_dirs: [
42        "java/res",
43    ],
44
45    manifest: "EmptyManifest.xml",
46
47    static_libs: [
48        "androidx.annotation_annotation",
49        "androidx.autofill_autofill",
50        "TextClassifierServiceLibNoManifest",
51        "TextClassifierNotificationLibNoManifest",
52        "androidx.work_work-runtime",
53        "modules-utils-build",
54        "androidx.appsearch_appsearch",
55        "androidx.appsearch_appsearch-platform-storage",
56        "android.service.notification.flags-aconfig-export-java",
57    ],
58
59    libs: [
60        "framework-configinfrastructure",
61        "framework-connectivity",
62    ],
63
64    lint: {
65        strict_updatability_linting: true,
66        error_checks: ["Recycle"],
67    },
68    apex_available: [
69        "//apex_available:platform",
70        "com.android.extservices",
71    ],
72}
73
74android_app {
75    name: "ExtServices-tplus",
76    sdk_version: "module_current",
77    min_sdk_version: "30",
78    manifest: "AndroidManifest.xml",
79    optimize: {
80        optimize: true,
81        shrink_resources: true,
82        proguard_compatibility: false,
83        proguard_flags_files: ["proguard.proguard"],
84    },
85    privileged: true,
86    privapp_allowlist: ":privapp_allowlist_android.ext_tplus.services.xml",
87    static_libs: [
88        "ExtServices-core",
89    ],
90    jarjar_rules: "jarjar-rules.txt",
91    jni_libs: [
92        "libtextclassifier",
93        "libextservices_jni",
94    ],
95    use_embedded_native_libs: true,
96    apex_available: [
97        "//apex_available:platform",
98        "com.android.extservices",
99        "test_com.android.extservices",
100    ],
101}
102
103android_app {
104    name: "ExtServices-sminus",
105    sdk_version: "module_current",
106    min_sdk_version: "30",
107    manifest: "AndroidManifest.xml",
108    optimize: {
109        optimize: true,
110        shrink_resources: true,
111        proguard_compatibility: false,
112        proguard_flags_files: ["proguard.proguard"],
113    },
114    privileged: true,
115    privapp_allowlist: ":privapp_allowlist_android.ext_sminus.services.xml",
116    static_libs: [
117        "ExtServices-core",
118        "AdServices-core",
119    ],
120    jarjar_rules: "jarjar-rules.txt",
121    jni_libs: [
122        "libtextclassifier",
123        "libextservices_jni",
124        "libhpke_jni",
125    ],
126    libs: ["android.ext.adservices"],
127    optional_uses_libs: ["android.ext.adservices"],
128    use_embedded_native_libs: true,
129    apex_available: [
130        "//apex_available:platform",
131        "com.android.extservices",
132        "test_com.android.extservices",
133    ],
134}
135