blob: 19d2a825e386c8fed420cb2b68f7ecd4777ce856 [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
Andrey Epin50a7e3e2022-12-20 10:17:36 -080034filegroup {
35 name: "ReleaseSources",
36 srcs: [
37 "java/src-release/**/*.kt",
38 ],
39}
40
41filegroup {
42 name: "DebugSources",
43 srcs: [
44 "java/src-debug/**/*.kt",
45 ],
46}
47
Joshua Traske514d3d2021-11-01 17:12:57 -040048android_library {
49 name: "IntentResolver-core",
Matt Caseybca35af2022-02-01 21:55:27 -050050 min_sdk_version: "current",
Joshua Traske514d3d2021-11-01 17:12:57 -040051 srcs: [
52 "java/src/**/*.java",
Andrey Epin4b933df2022-10-16 11:44:33 -070053 "java/src/**/*.kt",
Andrey Epin50a7e3e2022-12-20 10:17:36 -080054 ":ReleaseSources",
Joshua Traske514d3d2021-11-01 17:12:57 -040055 ],
Andrey Epin50a7e3e2022-12-20 10:17:36 -080056 product_variables: {
57 debuggable: {
58 srcs: [":DebugSources"],
59 exclude_srcs: [":ReleaseSources"],
60 }
61 },
Joshua Traske514d3d2021-11-01 17:12:57 -040062 resource_dirs: [
63 "java/res",
64 ],
65
66 manifest: "AndroidManifest.xml",
67
68 static_libs: [
69 "androidx.annotation_annotation",
Joshua Traske2463f32022-11-09 16:15:56 -050070 "androidx.concurrent_concurrent-futures",
Joshua Traskc168f982022-10-05 12:59:07 -040071 "androidx.recyclerview_recyclerview",
72 "androidx.viewpager_viewpager",
Andrey Epin93d10c42022-10-05 11:43:30 -070073 "androidx.lifecycle_lifecycle-common-java8",
74 "androidx.lifecycle_lifecycle-extensions",
Andrey Epinfb2ee592022-12-23 15:45:43 -080075 "androidx.lifecycle_lifecycle-runtime-ktx",
76 "androidx.lifecycle_lifecycle-viewmodel-ktx",
77 "kotlin-stdlib",
78 "kotlinx_coroutines",
79 "kotlinx-coroutines-android",
80 "//external/kotlinc:kotlin-annotations",
Joshua Traske2463f32022-11-09 16:15:56 -050081 "guava",
Andrey Epin50a7e3e2022-12-20 10:17:36 -080082 "SystemUIFlagsLib",
Joshua Traske514d3d2021-11-01 17:12:57 -040083 ],
84
85 plugins: ["java_api_finder"],
86 lint: {
Andrey Epin50a7e3e2022-12-20 10:17:36 -080087 strict_updatability_linting: false,
Joshua Traske514d3d2021-11-01 17:12:57 -040088 },
89}
90
91android_app {
92 name: "IntentResolver",
Matt Caseybca35af2022-02-01 21:55:27 -050093 min_sdk_version: "current",
Joshua Traske514d3d2021-11-01 17:12:57 -040094 certificate: "platform",
95 privileged: true,
Joshua Trask6538ea62021-11-17 15:35:03 -050096 required: [
97 "privapp_whitelist_com.android.intentresolver",
98 ],
Joshua Traske514d3d2021-11-01 17:12:57 -040099 srcs: ["src/**/*.java"],
100 platform_apis: true,
101 static_libs: [
102 "IntentResolver-core",
103 ],
Joshua Trask02632502022-09-20 13:58:08 -0400104 optimize: {
Joshua Trask61d73102022-10-18 13:41:42 -0400105 enabled: true,
Joshua Trask02632502022-09-20 13:58:08 -0400106 },
Joshua Traske514d3d2021-11-01 17:12:57 -0400107 apex_available: [
108 "//apex_available:platform",
109 "com.android.intentresolver",
110 "test_com.android.intentresolver",
111 ],
112}