blob: 17fb810c626b145ec98b94698fa5bd6dd4668ae9 [file] [log] [blame]
George Chang60c693a2021-04-08 22:05:11 +08001// Copyright 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 {
Ronish Kaliaf8913972024-02-14 14:30:14 +000016 default_team: "trendy_team_fwk_nfc",
George Chang60c693a2021-04-08 22:05:11 +080017 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "frameworks_base_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["frameworks_base_license"],
23}
24
25android_test {
26 name: "NfcManagerTests",
27 static_libs: [
Roshan Pius45969852024-12-05 21:53:40 +000028 "androidx.test.core",
George Chang60c693a2021-04-08 22:05:11 +080029 "androidx.test.rules",
Roshan Pius45969852024-12-05 21:53:40 +000030 "androidx.test.runner",
31 "androidx.test.ext.junit",
Roshan Pius45969852024-12-05 21:53:40 +000032 "mockito-target-extended-minus-junit4",
33 "frameworks-base-testutils",
Krzysztof KosiƄski60b70872023-10-06 20:11:39 +000034 "truth",
Roshan Pius45969852024-12-05 21:53:40 +000035 "androidx.annotation_annotation",
36 "androidx.appcompat_appcompat",
37 "flag-junit",
38 "platform-test-annotations",
39 "testables",
George Chang60c693a2021-04-08 22:05:11 +080040 ],
41 libs: [
Roshan Pius24106372024-12-13 17:19:03 -080042 "androidx.annotation_annotation",
43 "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage
44 "framework-permission-s.stubs.module_lib",
45 "framework-permission.stubs.module_lib",
Roshan Pius45969852024-12-05 21:53:40 +000046 "android.test.base.stubs.system",
47 "android.test.mock.stubs.system",
Jihoon Kang1e37ed32024-08-30 00:29:12 +000048 "android.test.runner.stubs.system",
Roshan Pius24106372024-12-13 17:19:03 -080049 "framework-nfc.impl",
George Chang60c693a2021-04-08 22:05:11 +080050 ],
Roshan Pius45969852024-12-05 21:53:40 +000051 jni_libs: [
52 // Required for ExtendedMockito
53 "libdexmakerjvmtiagent",
54 "libstaticjvmtiagent",
55 ],
Roshan Pius24106372024-12-13 17:19:03 -080056 srcs: [
57 "src/**/*.java",
58 ":framework-nfc-updatable-sources",
59 ":framework-nfc-non-updatable-sources",
60 ],
George Chang60c693a2021-04-08 22:05:11 +080061 platform_apis: true,
62 certificate: "platform",
Roshan Pius45969852024-12-05 21:53:40 +000063 test_suites: [
64 "device-tests",
65 "mts-nfc",
66 ],
67 min_sdk_version: "35", // Should be 36 later.
George Chang60c693a2021-04-08 22:05:11 +080068}