Joshua Trask | e514d3d | 2021-11-01 17:12:57 -0400 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | package { |
| 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 | |
| 23 | license { |
| 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 | |
| 34 | android_library { |
| 35 | name: "IntentResolver-core", |
Matt Casey | bca35af | 2022-02-01 21:55:27 -0500 | [diff] [blame] | 36 | min_sdk_version: "current", |
Joshua Trask | e514d3d | 2021-11-01 17:12:57 -0400 | [diff] [blame] | 37 | srcs: [ |
| 38 | "java/src/**/*.java", |
| 39 | ], |
Joshua Trask | e514d3d | 2021-11-01 17:12:57 -0400 | [diff] [blame] | 40 | resource_dirs: [ |
| 41 | "java/res", |
| 42 | ], |
| 43 | |
| 44 | manifest: "AndroidManifest.xml", |
| 45 | |
| 46 | static_libs: [ |
| 47 | "androidx.annotation_annotation", |
Joshua Trask | 0263250 | 2022-09-20 13:58:08 -0400 | [diff] [blame] | 48 | "unsupportedappusage", |
Joshua Trask | e514d3d | 2021-11-01 17:12:57 -0400 | [diff] [blame] | 49 | ], |
| 50 | |
| 51 | plugins: ["java_api_finder"], |
| 52 | lint: { |
| 53 | strict_updatability_linting: true, |
| 54 | }, |
| 55 | } |
| 56 | |
| 57 | android_app { |
| 58 | name: "IntentResolver", |
Matt Casey | bca35af | 2022-02-01 21:55:27 -0500 | [diff] [blame] | 59 | min_sdk_version: "current", |
Joshua Trask | e514d3d | 2021-11-01 17:12:57 -0400 | [diff] [blame] | 60 | certificate: "platform", |
| 61 | privileged: true, |
Joshua Trask | 6538ea6 | 2021-11-17 15:35:03 -0500 | [diff] [blame] | 62 | required: [ |
| 63 | "privapp_whitelist_com.android.intentresolver", |
| 64 | ], |
Joshua Trask | e514d3d | 2021-11-01 17:12:57 -0400 | [diff] [blame] | 65 | srcs: ["src/**/*.java"], |
| 66 | platform_apis: true, |
| 67 | static_libs: [ |
| 68 | "IntentResolver-core", |
| 69 | ], |
Joshua Trask | 0263250 | 2022-09-20 13:58:08 -0400 | [diff] [blame] | 70 | 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 Trask | e514d3d | 2021-11-01 17:12:57 -0400 | [diff] [blame] | 76 | apex_available: [ |
| 77 | "//apex_available:platform", |
| 78 | "com.android.intentresolver", |
| 79 | "test_com.android.intentresolver", |
| 80 | ], |
| 81 | } |