1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5android_library { 6 name: "EventLib", 7 sdk_version: "test_current", 8 srcs: [ 9 "src/main/java/**/*.java", 10 "src/main/aidl/**/I*.aidl", 11 ], 12 static_libs: [ 13 "Nene", 14 "Queryable" 15 ], 16 manifest: "src/main/AndroidManifest.xml", 17 min_sdk_version: "27" 18} 19 20android_test { 21 name: "EventLibTest", 22 srcs: [ 23 "src/test/java/**/*.java" 24 ], 25 test_suites: [ 26 "general-tests", 27 ], 28 static_libs: [ 29 "EventLib", 30 "ActivityContext", 31 "androidx.test.ext.junit", 32 "ctstestrunner-axt", 33 "truth-prebuilt", 34 "testng", // for assertThrows 35 "mockito-target-minus-junit4", // TODO(scottjonathan): Remove once we can get rid of mocks 36 "compatibility-device-util-axt", // used for SystemUtil.runShellCommandOrThrow 37 ], 38 resource_dirs: ["src/test/res"], 39 data: [":EventLibTestApp"], 40 manifest: "src/test/AndroidManifest.xml", 41 min_sdk_version: "27" 42} 43