1// Copyright (C) 2024 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 { 16 default_team: "trendy_team_motion", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20android_library { 21 name: "msdl", 22 manifest: "AndroidManifest.xml", 23 sdk_version: "system_current", 24 min_sdk_version: "31", 25 static_libs: [ 26 "kotlinx_coroutines_android", 27 "androidx.annotation_annotation", 28 ], 29 srcs: [ 30 "src/**/*.java", 31 "src/**/*.kt", 32 ], 33 kotlincflags: ["-Xjvm-default=all"], 34} 35 36android_library { 37 name: "msdl-tests-base", 38 libs: [ 39 "android.test.base.stubs.system", 40 "androidx.test.core", 41 ], 42 static_libs: [ 43 "msdl", 44 "androidx.test.ext.junit", 45 "androidx.test.rules", 46 "testables", 47 "truth", 48 "kotlinx_coroutines_test", 49 "kotlin-test", 50 ], 51} 52 53android_app { 54 name: "TestMSDLApp", 55 platform_apis: true, 56 static_libs: [ 57 "msdl-tests-base", 58 ], 59} 60 61android_test { 62 name: "msdl_tests", 63 manifest: "tests/AndroidManifest.xml", 64 65 static_libs: [ 66 "msdl-tests-base", 67 ], 68 srcs: [ 69 "tests/src/**/*.kt", 70 ], 71 kotlincflags: ["-Xjvm-default=all"], 72 test_suites: ["general-tests"], 73} 74