blob: 6fe36281374bc44690e88218a591ed2f19ed9bf3 [file] [log] [blame]
Juan Sebastian Martinez338b49e2024-06-17 15:49:42 -07001// 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",
Juan Sebastian Martinez83c988b2024-11-08 14:16:50 -080024 min_sdk_version: "31",
Juan Sebastian Martinez338b49e2024-06-17 15:49:42 -070025 static_libs: [
26 "kotlinx_coroutines_android",
Juan Sebastian Martinez4fd76392024-07-24 16:05:35 -070027 "androidx.annotation_annotation",
Juan Sebastian Martinez338b49e2024-06-17 15:49:42 -070028 ],
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: [
Jihoon Kang689f5712024-09-13 04:29:22 +000039 "android.test.base.stubs.system",
Juan Sebastian Martinez338b49e2024-06-17 15:49:42 -070040 "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}