1// Copyright (C) 2021 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_library { 20 name: "car-rotary-lib", 21 22 sdk_version: "current", 23 min_sdk_version: "28", 24 target_sdk_version: "30", 25 26 manifest: "src/main/AndroidManifest.xml", 27 srcs: ["src/main/java/**/*.java"], 28 resource_dirs: [ 29 "src/main/res", 30 "src/main/res-overlayable", 31 ], 32 optimize: { 33 enabled: false, 34 }, 35 static_libs: [ 36 "androidx.annotation_annotation", 37 "androidx.recyclerview_recyclerview", 38 ], 39 apex_available: [ 40 "com.android.permission", 41 "//apex_available:platform", 42 ], 43} 44 45android_test { 46 name: "CarRotaryLibUnitTests", 47 certificate: "platform", 48 libs: [ 49 "android.test.runner", 50 "android.test.base", 51 "android.car-stubs", 52 "android.test.mock.stubs" 53 ], 54 manifest: "src/androidTest/AndroidManifest.xml", 55 resource_dirs: ["src/androidTest/res"], 56 // Include all test java files. 57 srcs: ["src/androidTest/java/**/*.java"], 58 static_libs: [ 59 "androidx.test.rules", 60 "androidx.test.espresso.core", 61 "androidx.test.espresso.contrib", 62 "androidx.test.ext.junit", 63 "car-rotary-lib", 64 "car-ui-lib", 65 "platform-test-annotations", 66 "mockito-target-inline-minus-junit4", 67 "truth-prebuilt", 68 ], 69 jni_libs: [ 70 // For mockito extended 71 "libdexmakerjvmtiagent", 72 "libstaticjvmtiagent", 73 ], 74 75 platform_apis: true, 76 test_suites: ["device-tests"], 77} 78