• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2023 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    default_applicable_licenses: ["Android-Apache-2.0"],
19    default_visibility: [":__subpackages__"],
20}
21
22java_defaults {
23    name: "Java_Defaults",
24    srcs: [
25        "java/src/**/*.java",
26        "java/src/**/*.kt",
27        "java/aidl/**/I*.aidl",
28    ],
29    resource_dirs: [
30        "java/res",
31    ],
32    manifest: "AndroidManifest-lib.xml",
33    min_sdk_version: "current",
34    lint: {
35        strict_updatability_linting: false,
36        extra_check_modules: ["SystemUILintChecker"],
37        warning_checks: ["MissingApacheLicenseDetector"],
38        baseline_filename: "lint-baseline.xml",
39    },
40}
41
42android_library {
43    name: "IntentResolver-core",
44    defaults: ["Java_Defaults"],
45    static_libs: [
46        "androidx.annotation_annotation",
47        "androidx.concurrent_concurrent-futures",
48        "androidx-constraintlayout_constraintlayout",
49        "androidx.recyclerview_recyclerview",
50        "androidx.viewpager_viewpager",
51        "androidx.lifecycle_lifecycle-common-java8",
52        "androidx.lifecycle_lifecycle-extensions",
53        "androidx.lifecycle_lifecycle-runtime-ktx",
54        "androidx.lifecycle_lifecycle-viewmodel-ktx",
55        "dagger2",
56        "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib",
57        "hilt_android",
58        "IntentResolverFlagsLib",
59        "iconloader",
60        "jsr330",
61        "kotlin-stdlib",
62        "kotlinx_coroutines",
63        "kotlinx-coroutines-android",
64        "//external/kotlinc:kotlin-annotations",
65        "guava",
66        "PlatformComposeCore",
67        "PlatformComposeSceneTransitionLayout",
68        "androidx.compose.runtime_runtime",
69        "androidx.compose.material3_material3",
70        "androidx.compose.material_material-icons-extended",
71        "androidx.activity_activity-compose",
72        "androidx.compose.animation_animation-graphics",
73        "androidx.lifecycle_lifecycle-viewmodel-compose",
74        "androidx.lifecycle_lifecycle-runtime-compose",
75    ],
76    javacflags: [
77        "-Adagger.fastInit=enabled",
78        "-Adagger.explicitBindingConflictsWithInject=ERROR",
79        "-Adagger.strictMultibindingValidation=enabled",
80    ],
81    aidl: {
82        local_include_dirs: ["java/aidl"],
83    },
84}
85
86java_defaults {
87    name: "App_Defaults",
88    min_sdk_version: "current",
89    platform_apis: true,
90    certificate: "platform",
91    privileged: true,
92    manifest: "AndroidManifest-app.xml",
93    required: [
94        "privapp_whitelist_com.android.intentresolver",
95    ],
96}
97
98android_app {
99    name: "IntentResolver",
100    defaults: ["App_Defaults"],
101    static_libs: [
102        "IntentResolver-core",
103    ],
104    optimize: {
105        enabled: true,
106        optimize: true,
107        shrink: true,
108        optimized_shrink_resources: true,
109        proguard_flags_files: ["proguard.flags"],
110    },
111    visibility: ["//visibility:public"],
112}
113