| Kateryna Ivanova | 24229d1 | 2023-04-26 15:12:30 +0000 | [diff] [blame] | 1 | // Copyright (C) 2018 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_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
| 19 | |
| 20 | android_library { |
| 21 | name: "animationlib", |
| 22 | manifest: "AndroidManifest.xml", |
| 23 | sdk_version: "system_current", |
| 24 | min_sdk_version: "26", |
| 25 | static_libs: [ |
| 26 | "androidx.core_core-animation", |
| 27 | "androidx.core_core-ktx", |
| 28 | "androidx.annotation_annotation", |
| 29 | ], |
| 30 | srcs: [ |
| 31 | "src/**/*.java", |
| 32 | "src/**/*.kt" |
| 33 | ], |
| 34 | kotlincflags: ["-Xjvm-default=all"], |
| 35 | // This library is meant to access only public APIs |
| 36 | // do not flip this flag to true |
| 37 | platform_apis: false |
| 38 | } |
| 39 | |
| 40 | android_test { |
| 41 | name: "animationlib_tests", |
| Kateryna Ivanova | cb2ba48 | 2023-04-20 13:27:07 +0000 | [diff] [blame^] | 42 | manifest: "tests/AndroidManifest.xml", |
| Kateryna Ivanova | 24229d1 | 2023-04-26 15:12:30 +0000 | [diff] [blame] | 43 | |
| 44 | static_libs: [ |
| 45 | "animationlib", |
| 46 | "androidx.test.ext.junit", |
| 47 | "androidx.test.rules", |
| 48 | "testables", |
| 49 | ], |
| 50 | libs: [ |
| 51 | "android.test.base", |
| 52 | ], |
| 53 | srcs: [ |
| 54 | "**/*.java", |
| 55 | "**/*.kt" |
| 56 | ], |
| 57 | kotlincflags: ["-Xjvm-default=all"], |
| 58 | test_suites: ["general-tests"], |
| 59 | } |