blob: f5893aa191b03b804d04cf60d3aa91f43000bcd7 [file] [log] [blame]
Idries Hamadied409ea2018-01-29 16:30:36 +00001//
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//
Alex Buynytskyy665f3ff2019-09-16 12:10:54 -070016java_library {
17 name: "deployagent_lib",
Idries Hamadied409ea2018-01-29 16:30:36 +000018 sdk_version: "24",
Alex Buynytskyy665f3ff2019-09-16 12:10:54 -070019 srcs: [
20 "deployagent/src/**/*.java",
21 "proto/**/*.proto",
22 ],
Idries Hamadied409ea2018-01-29 16:30:36 +000023 proto: {
24 type: "lite",
Henry Daitx05af6ae2019-01-17 16:24:52 +000025 },
Alex Buynytskyy665f3ff2019-09-16 12:10:54 -070026}
27
28java_binary {
29 name: "deployagent",
Josh Gaoc9e09e62019-10-17 16:20:26 -070030 sdk_version: "24",
Alex Buynytskyy665f3ff2019-09-16 12:10:54 -070031 static_libs: [
32 "deployagent_lib",
33 ],
Henry Daitx05af6ae2019-01-17 16:24:52 +000034 dex_preopt: {
35 enabled: false,
Idries Hamadied409ea2018-01-29 16:30:36 +000036 }
Alex Buynytskyy665f3ff2019-09-16 12:10:54 -070037}
38
39android_test {
40 name: "FastDeployTests",
41
42 manifest: "AndroidManifest.xml",
43
44 srcs: [
45 "deployagent/test/com/android/fastdeploy/ApkArchiveTest.java",
46 ],
47
48 static_libs: [
49 "androidx.test.core",
50 "androidx.test.runner",
51 "androidx.test.rules",
52 "deployagent_lib",
53 "mockito-target-inline-minus-junit4",
54 ],
55
56 libs: [
57 "android.test.runner",
58 "android.test.base",
59 "android.test.mock",
60 ],
61
62 data: [
63 "testdata/sample.apk",
64 "testdata/sample.cd",
65 ],
66
67 optimize: {
68 enabled: false,
69 },
70}
71
72java_test_host {
73 name: "FastDeployHostTests",
74 srcs: [
75 "deployagent/test/com/android/fastdeploy/FastDeployTest.java",
76 ],
77 data: [
78 "testdata/helloworld5.apk",
79 "testdata/helloworld7.apk",
80 ],
81 libs: [
82 "compatibility-host-util",
83 "cts-tradefed",
84 "tradefed",
85 ],
86 test_suites: [
87 "general-tests",
88 ],
89}