1// 2// Copyright (C) 2018 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21java_test { 22 name: "flickerlib", 23 platform_apis: true, 24 optimize: { 25 enabled: false 26 }, 27 srcs: [ 28 "src/**/*.java", 29 "src/**/*.kt" 30 ], 31 static_libs: [ 32 "flickerlib-core", 33 "flickerlib-helpers" 34 ], 35} 36 37java_library { 38 name: "flickerlib-core", 39 platform_apis: true, 40 optimize: { 41 enabled: false 42 }, 43 srcs: [ 44 "src/com/android/server/wm/flicker/**/*.java", 45 "src/com/android/server/wm/flicker/**/*.kt" 46 ], 47 java_resource_dirs: [ 48 "src/com/android/server/wm/flicker/service/resources/" 49 ], 50 exclude_srcs: [ 51 "**/helpers/*", 52 ], 53 static_libs: [ 54 "flickerlib-helpers", 55 "compatibility-device-util-axt", 56 "ub-uiautomator", 57 "androidx.test.uiautomator_uiautomator", 58 "androidx.test.ext.junit", 59 "truth-prebuilt", 60 "launcher-helper-lib", 61 "wm-proto-parsers", 62 "platform-test-annotations", 63 "platform-test-core-rules", 64 "health-testing-utils", 65 "collector-device-lib", 66 "kotlinx-coroutines-android", 67 ], 68} 69 70java_library { 71 name: "flickerlib-helpers", 72 sdk_version: "test_current", 73 optimize: { 74 enabled: false 75 }, 76 srcs: [ 77 "src/**/helpers/*.java", 78 "src/**/helpers/*.kt", 79 ], 80 static_libs: [ 81 "compatibility-device-util-axt", 82 "app-helpers-core", 83 "launcher-helper-lib", 84 "wm-proto-parsers", 85 ], 86} 87 88java_library { 89 name: "wm-proto-parsers", 90 sdk_version: "test_current", 91 optimize: { 92 enabled: false 93 }, 94 srcs: [ 95 "src/com/android/server/wm/traces/**/*.java", 96 "src/com/android/server/wm/traces/**/*.kt", 97 ], 98 static_libs: [ 99 "android-support-annotations", 100 "androidx.test.ext.junit", 101 "platformprotosnano", 102 "layersprotosnano", 103 "flicker-tags-proto", 104 ], 105} 106 107java_library { 108 name: "flicker-tags-proto", 109 srcs: [ 110 "**/*.proto", 111 ], 112 optimize: { 113 enabled: false 114 } 115} 116