blob: 2407fc727dc66f239e3a7de19e74074c9895a43f [file] [log] [blame]
Joshua Traske514d3d2021-11-01 17:12:57 -04001//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18 // See: http://go/android-license-faq
19 // This was chosen for Sharesheet to match existing packages.
20 default_applicable_licenses: ["packages_modules_IntentResolver_license"],
21}
22
23license {
24 name: "packages_modules_IntentResolver_license",
25 visibility: [":__subpackages__"],
26 license_kinds: [
27 "SPDX-license-identifier-Apache-2.0",
28 ],
29 license_text: [
30 "NOTICE",
31 ],
32}
33
34android_library {
35 name: "IntentResolver-core",
Matt Caseybca35af2022-02-01 21:55:27 -050036 min_sdk_version: "current",
Joshua Traske514d3d2021-11-01 17:12:57 -040037 srcs: [
38 "java/src/**/*.java",
39 ],
Joshua Traske514d3d2021-11-01 17:12:57 -040040 resource_dirs: [
41 "java/res",
42 ],
43
44 manifest: "AndroidManifest.xml",
45
46 static_libs: [
47 "androidx.annotation_annotation",
Joshua Trask02632502022-09-20 13:58:08 -040048 "unsupportedappusage",
Joshua Traske514d3d2021-11-01 17:12:57 -040049 ],
50
51 plugins: ["java_api_finder"],
52 lint: {
53 strict_updatability_linting: true,
54 },
55}
56
57android_app {
58 name: "IntentResolver",
Matt Caseybca35af2022-02-01 21:55:27 -050059 min_sdk_version: "current",
Joshua Traske514d3d2021-11-01 17:12:57 -040060 certificate: "platform",
61 privileged: true,
Joshua Trask6538ea62021-11-17 15:35:03 -050062 required: [
63 "privapp_whitelist_com.android.intentresolver",
64 ],
Joshua Traske514d3d2021-11-01 17:12:57 -040065 srcs: ["src/**/*.java"],
66 platform_apis: true,
67 static_libs: [
68 "IntentResolver-core",
69 ],
Joshua Trask02632502022-09-20 13:58:08 -040070 optimize: {
71 // TODO: consider re-enabling after setting up Proguard rules to
72 // preserve the name of the ChooserGridLayoutManager class, which is
73 // referenced by name in the chooser_list_per_profile layout XML.
74 enabled: false,
75 },
Joshua Traske514d3d2021-11-01 17:12:57 -040076 apex_available: [
77 "//apex_available:platform",
78 "com.android.intentresolver",
79 "test_com.android.intentresolver",
80 ],
81}