blob: c2daf9b58f4d609a3e4a2bc1868f6bc5d7f379c6 [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//
Bob Badour4a6774b2021-02-12 19:46:09 -080016package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "packages_modules_adb_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["packages_modules_adb_license"],
23}
24
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070025java_library {
26 name: "deployagent_lib",
Idries Hamadi1ecee442018-01-29 16:30:36 +000027 sdk_version: "24",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070028 srcs: [
29 "deployagent/src/**/*.java",
30 "proto/**/*.proto",
31 ],
Idries Hamadi1ecee442018-01-29 16:30:36 +000032 proto: {
33 type: "lite",
Henry Daitx35538b02019-01-17 16:24:52 +000034 },
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070035}
36
37java_binary {
38 name: "deployagent",
Josh Gao1b8426e2019-10-17 16:20:26 -070039 sdk_version: "24",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070040 static_libs: [
41 "deployagent_lib",
42 ],
Henry Daitx35538b02019-01-17 16:24:52 +000043 dex_preopt: {
44 enabled: false,
Idries Hamadi1ecee442018-01-29 16:30:36 +000045 }
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070046}
47
48android_test {
49 name: "FastDeployTests",
50
51 manifest: "AndroidManifest.xml",
52
53 srcs: [
54 "deployagent/test/com/android/fastdeploy/ApkArchiveTest.java",
55 ],
56
57 static_libs: [
58 "androidx.test.core",
59 "androidx.test.runner",
60 "androidx.test.rules",
61 "deployagent_lib",
62 "mockito-target-inline-minus-junit4",
63 ],
64
65 libs: [
66 "android.test.runner",
67 "android.test.base",
68 "android.test.mock",
69 ],
70
71 data: [
72 "testdata/sample.apk",
73 "testdata/sample.cd",
74 ],
75
76 optimize: {
77 enabled: false,
78 },
79}
80
81java_test_host {
82 name: "FastDeployHostTests",
83 srcs: [
84 "deployagent/test/com/android/fastdeploy/FastDeployTest.java",
85 ],
86 data: [
87 "testdata/helloworld5.apk",
88 "testdata/helloworld7.apk",
89 ],
90 libs: [
91 "compatibility-host-util",
92 "cts-tradefed",
93 "tradefed",
94 ],
95 test_suites: [
96 "general-tests",
97 ],
98}