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