1// 2// Copyright (C) 2022 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_android_settings_app", 19 default_applicable_licenses: ["packages_apps_Settings_license"], 20} 21 22android_test { 23 name: "SettingsSpaUnitTests", 24 certificate: "platform", 25 platform_apis: true, 26 test_suites: ["device-tests"], 27 28 srcs: [ 29 "src/**/*.kt", 30 ], 31 use_resource_processor: true, 32 static_libs: [ 33 "Settings-core", 34 "SpaLibTestUtils", 35 "androidx.compose.runtime_runtime", 36 "androidx.test.ext.junit", 37 "androidx.test.runner", 38 "androidx.fragment_fragment-testing", 39 "flag-junit", 40 "mockito-target-extended-minus-junit4", 41 ], 42 jni_libs: [ 43 "libdexmakerjvmtiagent", 44 "libstaticjvmtiagent", 45 ], 46 kotlincflags: [ 47 "-Xjvm-default=all", 48 ], 49 50 instrumentation_for: "Settings-core", 51} 52