• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19
20android_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    resource_dirs: [
35        "res"
36    ],
37    kotlincflags: ["-Xjvm-default=all"],
38    // This library is meant to access only public APIs
39    // do not flip this flag to true
40    platform_apis: false
41}
42
43android_test {
44    name: "animationlib_tests",
45    manifest: "tests/AndroidManifest.xml",
46
47    static_libs: [
48        "animationlib",
49        "androidx.test.ext.junit",
50        "androidx.test.rules",
51        "testables",
52    ],
53    libs: [
54        "android.test.base",
55    ],
56    srcs: [
57        "**/*.java",
58        "**/*.kt"
59    ],
60    kotlincflags: ["-Xjvm-default=all"],
61    test_suites: ["general-tests"],
62}
63