Android.bp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Copyright (C) 2022 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. java_library {
  18. name: "view_capture_proto",
  19. srcs: ["src/com/android/app/viewcapture/proto/*.proto"],
  20. proto: {
  21. type: "lite",
  22. local_include_dirs:[
  23. "src/com/android/app/viewcapture/proto"
  24. ],
  25. },
  26. static_libs: ["libprotobuf-java-lite"],
  27. java_version: "1.8",
  28. }
  29. android_library {
  30. name: "view_capture",
  31. manifest: "AndroidManifest.xml",
  32. platform_apis: true,
  33. min_sdk_version: "26",
  34. static_libs: [
  35. "androidx.core_core",
  36. "view_capture_proto",
  37. ],
  38. srcs: [
  39. "src/**/*.java",
  40. "src/**/*.kt"
  41. ],
  42. }
  43. android_test {
  44. name: "view_capture_tests",
  45. manifest: "tests/AndroidManifest.xml",
  46. platform_apis: true,
  47. min_sdk_version: "26",
  48. static_libs: [
  49. "androidx.core_core",
  50. "view_capture",
  51. "androidx.test.ext.junit",
  52. "androidx.test.rules",
  53. "testables",
  54. "mockito-target-extended-minus-junit4",
  55. ],
  56. srcs: [
  57. "**/*.java",
  58. "**/*.kt"
  59. ],
  60. libs: [
  61. "android.test.runner",
  62. "android.test.base",
  63. "android.test.mock",
  64. ],
  65. test_suites: ["device-tests"],
  66. }