George Chang | 60c693a | 2021-04-08 22:05:11 +0800 | [diff] [blame] | 1 | // 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 | |
| 15 | package { |
Ronish Kalia | f891397 | 2024-02-14 14:30:14 +0000 | [diff] [blame] | 16 | default_team: "trendy_team_fwk_nfc", |
George Chang | 60c693a | 2021-04-08 22:05:11 +0800 | [diff] [blame] | 17 | // 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 | |
| 25 | android_test { |
| 26 | name: "NfcManagerTests", |
| 27 | static_libs: [ |
Roshan Pius | 4596985 | 2024-12-05 21:53:40 +0000 | [diff] [blame] | 28 | "androidx.test.core", |
George Chang | 60c693a | 2021-04-08 22:05:11 +0800 | [diff] [blame] | 29 | "androidx.test.rules", |
Roshan Pius | 4596985 | 2024-12-05 21:53:40 +0000 | [diff] [blame] | 30 | "androidx.test.runner", |
| 31 | "androidx.test.ext.junit", |
Roshan Pius | 4596985 | 2024-12-05 21:53:40 +0000 | [diff] [blame] | 32 | "mockito-target-extended-minus-junit4", |
| 33 | "frameworks-base-testutils", |
Krzysztof KosiĆski | 60b7087 | 2023-10-06 20:11:39 +0000 | [diff] [blame] | 34 | "truth", |
Roshan Pius | 4596985 | 2024-12-05 21:53:40 +0000 | [diff] [blame] | 35 | "androidx.annotation_annotation", |
| 36 | "androidx.appcompat_appcompat", |
| 37 | "flag-junit", |
| 38 | "platform-test-annotations", |
| 39 | "testables", |
George Chang | 60c693a | 2021-04-08 22:05:11 +0800 | [diff] [blame] | 40 | ], |
| 41 | libs: [ |
Roshan Pius | 2410637 | 2024-12-13 17:19:03 -0800 | [diff] [blame] | 42 | "androidx.annotation_annotation", |
| 43 | "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage |
| 44 | "framework-permission-s.stubs.module_lib", |
| 45 | "framework-permission.stubs.module_lib", |
Roshan Pius | 4596985 | 2024-12-05 21:53:40 +0000 | [diff] [blame] | 46 | "android.test.base.stubs.system", |
| 47 | "android.test.mock.stubs.system", |
Jihoon Kang | 1e37ed3 | 2024-08-30 00:29:12 +0000 | [diff] [blame] | 48 | "android.test.runner.stubs.system", |
Roshan Pius | 2410637 | 2024-12-13 17:19:03 -0800 | [diff] [blame] | 49 | "framework-nfc.impl", |
George Chang | 60c693a | 2021-04-08 22:05:11 +0800 | [diff] [blame] | 50 | ], |
Roshan Pius | 4596985 | 2024-12-05 21:53:40 +0000 | [diff] [blame] | 51 | jni_libs: [ |
| 52 | // Required for ExtendedMockito |
| 53 | "libdexmakerjvmtiagent", |
| 54 | "libstaticjvmtiagent", |
| 55 | ], |
Roshan Pius | 2410637 | 2024-12-13 17:19:03 -0800 | [diff] [blame] | 56 | srcs: [ |
| 57 | "src/**/*.java", |
| 58 | ":framework-nfc-updatable-sources", |
| 59 | ":framework-nfc-non-updatable-sources", |
| 60 | ], |
George Chang | 60c693a | 2021-04-08 22:05:11 +0800 | [diff] [blame] | 61 | platform_apis: true, |
| 62 | certificate: "platform", |
Roshan Pius | 4596985 | 2024-12-05 21:53:40 +0000 | [diff] [blame] | 63 | test_suites: [ |
| 64 | "device-tests", |
| 65 | "mts-nfc", |
| 66 | ], |
| 67 | min_sdk_version: "35", // Should be 36 later. |
George Chang | 60c693a | 2021-04-08 22:05:11 +0800 | [diff] [blame] | 68 | } |