1// Copyright (C) 2023 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// 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_library_static { 21 name: "launcher_item", 22 host_supported: true, 23 proto: { 24 type: "lite", 25 }, 26 sdk_version: "module_current", 27 min_sdk_version: "31", 28 srcs: ["lib/src/com/android/car/carlauncher/proto/launcher_item.proto"], 29} 30 31android_library { 32 name: "CarAppGrid-lib", 33 platform_apis: true, 34 35 srcs: [ 36 "lib/src/**/*.java", 37 "lib/src/**/*.kt", 38 ":hidden_api_enabled_srcs", 39 ], 40 41 resource_dirs: ["lib/res"], 42 43 static_libs: [ 44 "CarLauncherCommon", 45 "androidx-constraintlayout_constraintlayout-solver", 46 "androidx-constraintlayout_constraintlayout", 47 "androidx.lifecycle_lifecycle-extensions", 48 "car-media-common", 49 "guava", 50 "car-ui-lib", 51 "car_launcher_flags_java_lib", 52 "launcher_item", 53 "CarDockUtilLib", 54 "androidx.lifecycle_lifecycle-runtime-ktx", 55 "androidx.lifecycle_lifecycle-viewmodel-ktx", 56 "androidx.activity_activity-ktx", 57 "androidx.fragment_fragment-ktx", 58 "androidx.core_core-ktx", 59 "kotlinx-coroutines-core", 60 "kotlinx-coroutines-android", 61 ], 62 63 libs: ["android.car"], 64 65 manifest: "lib/AndroidManifest.xml", 66 // TODO(b/319708040): re-enable use_resource_processor 67 use_resource_processor: false, 68} 69 70// Uses test key instead of the regular "platform" key 71CERTIFICATE = ":com-android-car-launcher-test" 72 73android_app { 74 name: "CarAppGridTestApp", 75 76 manifest: "app/src/main/AndroidManifest.xml", 77 78 resource_dirs: ["app/src/main/res"], 79 80 srcs: [ 81 "app/src/**/*.java", 82 "app/src/**/*.kt", 83 ], 84 85 platform_apis: true, 86 87 required: ["allowed_privapp_com.android.car.appgrid.test"], 88 89 certificate: CERTIFICATE, 90 91 privileged: true, 92 93 static_libs: ["CarAppGrid-lib"], 94 95 optimize: { 96 enabled: true, 97 }, 98} 99