blob: 355860e247db69d1ac477e275a57285efacf6817 [file] [log] [blame]
// Copyright (C) 2020 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
filegroup {
name: "SampleCustomInputService-srcs",
srcs: [
"src/**/*.java",
],
}
android_app {
name: "SampleCustomInputService",
srcs: [":SampleCustomInputService-srcs"],
resource_dirs: ["res"],
// Because it uses a platform API (CarInputManager).
platform_apis: true,
// This app should be platform signed because it requires android.permission.MONITOR_INPUT
// permission, which is of type "signature".
certificate: "platform",
optimize: {
enabled: false,
},
dex_preopt: {
enabled: false,
},
libs: [
"android.car",
],
product_variables: {
pdk: {
enabled: false,
},
},
}
android_test {
name: "SampleCustomInputServiceTest",
srcs: [
"tests/src/**/*.java",
":SampleCustomInputService-srcs",
],
manifest: "tests/AndroidManifest.xml",
platform_apis: true,
static_libs: [
"mockito-target-extended",
"androidx.test.core",
"androidx.test.ext.junit",
"androidx.test.rules",
"truth-prebuilt",
],
libs: [
"android.car",
"android.test.mock",
"android.test.base",
"android.test.runner",
],
// Required by mockito-target-extended (lib used to mock final classes).
jni_libs: [
"libdexmakerjvmtiagent",
],
optimize: {
enabled: false,
},
}