1// Copyright (C) 2019 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// 16 17// Build the Experimental Car service. 18 19package { 20 default_team: "trendy_team_aaos_framework", 21 default_applicable_licenses: ["Android-Apache-2.0"], 22} 23 24experimentalcar_service_sources = ["src/**/*.java"] 25 26android_app { 27 name: "ExperimentalCarService", 28 29 srcs: experimentalcar_service_sources, 30 31 resource_dirs: ["res"], 32 33 platform_apis: true, 34 35 // Each update should be signed by OEMs 36 certificate: "platform", 37 privileged: true, 38 39 optimize: { 40 proguard_flags_files: ["proguard.flags"], 41 enabled: false, 42 }, 43 44 libs: ["android.car"], 45 46 static_libs: [ 47 "car-service-common-util-static-lib", 48 "car-experimental-api-static-lib", 49 ], 50} 51 52//#################################################################################### 53// Build a static library to help mocking various car services in testing. This is meant to be used 54// for internal unit tests around the car service. 55//#################################################################################### 56android_library { 57 name: "experimentalcar-service-test-static-lib", 58 59 srcs: experimentalcar_service_sources, 60 61 resource_dirs: ["res"], 62 63 libs: [ 64 "android.car", 65 ], 66 67 static_libs: [ 68 "car-service-common-util-static-lib", 69 "car-experimental-api-static-lib", 70 ], 71 72 min_sdk_version: "25", 73 lint: { 74 baseline_filename: "lint-baseline.xml", 75 }, 76} 77