Android.bp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. package {
  15. default_applicable_licenses: ["Android-Apache-2.0"],
  16. }
  17. android_library {
  18. name: "animationlib",
  19. manifest: "AndroidManifest.xml",
  20. sdk_version: "system_current",
  21. min_sdk_version: "26",
  22. static_libs: [
  23. "androidx.core_core-animation",
  24. "androidx.core_core-ktx",
  25. "androidx.annotation_annotation",
  26. ],
  27. srcs: [
  28. "src/**/*.java",
  29. "src/**/*.kt"
  30. ],
  31. kotlincflags: ["-Xjvm-default=all"],
  32. // This library is meant to access only public APIs
  33. // do not flip this flag to true
  34. platform_apis: false
  35. }
  36. android_test {
  37. name: "animationlib_tests",
  38. manifest: "tests/AndroidManifest.xml",
  39. static_libs: [
  40. "animationlib",
  41. "androidx.test.ext.junit",
  42. "androidx.test.rules",
  43. "testables",
  44. ],
  45. libs: [
  46. "android.test.base",
  47. ],
  48. srcs: [
  49. "**/*.java",
  50. "**/*.kt"
  51. ],
  52. kotlincflags: ["-Xjvm-default=all"],
  53. test_suites: ["general-tests"],
  54. }