• 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        "extservices-mainline-aconfig-java-lib",
58    ],
59
60    libs: [
61        "framework-platformcrashrecovery.stubs.module_lib",
62        "framework-configinfrastructure.stubs.module_lib",
63        "framework-connectivity.stubs.module_lib",
64    ],
65
66    lint: {
67        strict_updatability_linting: true,
68        error_checks: ["Recycle"],
69    },
70    apex_available: [
71        "//apex_available:platform",
72        "com.android.extservices",
73    ],
74}
75
76android_app {
77    name: "ExtServices-tplus",
78    sdk_version: "module_current",
79    min_sdk_version: "30",
80    manifest: "AndroidManifest.xml",
81    optimize: {
82        optimize: true,
83        shrink_resources: true,
84        proguard_compatibility: false,
85        proguard_flags_files: ["proguard.proguard"],
86        keep_runtime_invisible_annotations: true,
87    },
88    privileged: true,
89    privapp_allowlist: ":privapp_allowlist_android.ext_tplus.services.xml",
90    static_libs: [
91        "ExtServices-core",
92    ],
93    jarjar_rules: "jarjar-rules.txt",
94    jni_libs: [
95        "libtextclassifier",
96        "libextservices_jni",
97    ],
98    use_embedded_native_libs: true,
99    apex_available: [
100        "//apex_available:platform",
101        "com.android.extservices",
102        "test_com.android.extservices",
103    ],
104    updatable: true,
105}
106
107android_app {
108    name: "ExtServices-sminus",
109    sdk_version: "module_current",
110    min_sdk_version: "30",
111    manifest: "AndroidManifest.xml",
112    optimize: {
113        optimize: true,
114        shrink_resources: true,
115        proguard_compatibility: false,
116        proguard_flags_files: ["proguard.proguard"],
117        keep_runtime_invisible_annotations: true,
118    },
119    privileged: true,
120    privapp_allowlist: ":privapp_allowlist_android.ext_sminus.services.xml",
121    static_libs: [
122        "ExtServices-core",
123        "AdServices-core",
124    ],
125    jarjar_rules: "jarjar-rules.txt",
126    jni_libs: [
127        "libtextclassifier",
128        "libextservices_jni",
129        "libhpke_jni",
130    ],
131    libs: ["android.ext.adservices"],
132    optional_uses_libs: ["android.ext.adservices"],
133    use_embedded_native_libs: true,
134    apex_available: [
135        "//apex_available:platform",
136        "com.android.extservices",
137        "test_com.android.extservices",
138    ],
139    updatable: true,
140}
141