| Juan Sebastian Martinez | 338b49e | 2024-06-17 15:49:42 -0700 | [diff] [blame] | 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 | |
| 15 | package { |
| 16 | default_team: "trendy_team_motion", |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
| 20 | android_library { |
| 21 | name: "msdl", |
| 22 | manifest: "AndroidManifest.xml", |
| 23 | sdk_version: "system_current", |
| Juan Sebastian Martinez | 83c988b | 2024-11-08 14:16:50 -0800 | [diff] [blame] | 24 | min_sdk_version: "31", |
| Juan Sebastian Martinez | 338b49e | 2024-06-17 15:49:42 -0700 | [diff] [blame] | 25 | static_libs: [ |
| 26 | "kotlinx_coroutines_android", |
| Juan Sebastian Martinez | 4fd7639 | 2024-07-24 16:05:35 -0700 | [diff] [blame] | 27 | "androidx.annotation_annotation", |
| Juan Sebastian Martinez | 338b49e | 2024-06-17 15:49:42 -0700 | [diff] [blame] | 28 | ], |
| 29 | srcs: [ |
| 30 | "src/**/*.java", |
| 31 | "src/**/*.kt", |
| 32 | ], |
| 33 | kotlincflags: ["-Xjvm-default=all"], |
| 34 | } |
| 35 | |
| 36 | android_library { |
| 37 | name: "msdl-tests-base", |
| 38 | libs: [ |
| Jihoon Kang | 689f571 | 2024-09-13 04:29:22 +0000 | [diff] [blame] | 39 | "android.test.base.stubs.system", |
| Juan Sebastian Martinez | 338b49e | 2024-06-17 15:49:42 -0700 | [diff] [blame] | 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 | |
| 53 | android_app { |
| 54 | name: "TestMSDLApp", |
| 55 | platform_apis: true, |
| 56 | static_libs: [ |
| 57 | "msdl-tests-base", |
| 58 | ], |
| 59 | } |
| 60 | |
| 61 | android_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 | } |