// Copyright 2021 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.

package {
    default_team: "trendy_team_fwk_nfc",
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "Android-Apache-2.0"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["Android-Apache-2.0"],
}

android_test {
    name: "NfcManagerTests",
    static_libs: [
        "androidx.test.core",
        "androidx.test.rules",
        "androidx.test.runner",
        "androidx.test.ext.junit",
        "mockito-target-extended-minus-junit4",
        "frameworks-base-testutils",
        "truth",
        "androidx.annotation_annotation",
        "androidx.appcompat_appcompat",
        "flag-junit",
        "platform-test-annotations",
        "testables",
        "modules-utils-extended-mockito-rule",
        "android.nfc.flags-aconfig-java",
        "android.permission.flags-aconfig-java",
        "com.android.nfc.module.flags-aconfig-java",
    ],
    libs: [
        "androidx.annotation_annotation",
        "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage
        "framework-permission-s.stubs.module_lib",
        "framework-permission.stubs.module_lib",
        "android.test.base.stubs.system",
        "android.test.mock.stubs.system",
        "android.test.runner.stubs.system",
        "framework-nfc.impl",
    ],
    jni_libs: [
        // Required for ExtendedMockito
        "libdexmakerjvmtiagent",
        "libstaticjvmtiagent",
    ],
    srcs: [
        "src/**/*.java",
        ":framework-nfc-updatable-sources",
        ":framework-nfc-non-updatable-sources",
    ],
    platform_apis: true,
    certificate: "platform",
    test_suites: [
        "device-tests",
        "mts-nfc",
    ],
    compile_multilib: "both",
    min_sdk_version: "36",
    jarjar_rules: "jarjar-rules.txt",
}
