blob: 84e62c627770a6eb05c3cb10c9ed64e00ed6a4da [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",
Zi Wang15c29ef2022-10-14 09:54:08 -070039 wrapper: "deployagent/deployagent.sh",
Josh Gao1b8426e2019-10-17 16:20:26 -070040 sdk_version: "24",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070041 static_libs: [
42 "deployagent_lib",
43 ],
Henry Daitx35538b02019-01-17 16:24:52 +000044 dex_preopt: {
45 enabled: false,
Idries Hamadi1ecee442018-01-29 16:30:36 +000046 }
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070047}
48
49android_test {
50 name: "FastDeployTests",
51
52 manifest: "AndroidManifest.xml",
53
54 srcs: [
55 "deployagent/test/com/android/fastdeploy/ApkArchiveTest.java",
56 ],
57
58 static_libs: [
59 "androidx.test.core",
60 "androidx.test.runner",
61 "androidx.test.rules",
62 "deployagent_lib",
63 "mockito-target-inline-minus-junit4",
64 ],
65
66 libs: [
67 "android.test.runner",
68 "android.test.base",
69 "android.test.mock",
70 ],
71
72 data: [
73 "testdata/sample.apk",
74 "testdata/sample.cd",
75 ],
76
77 optimize: {
78 enabled: false,
79 },
Julien Desprezb5546aa2023-04-04 10:24:09 -070080
81 test_config: "FastDeployTests.xml",
82
83 test_suites: [
84 "general-tests",
85 ],
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070086}
87
88java_test_host {
89 name: "FastDeployHostTests",
90 srcs: [
91 "deployagent/test/com/android/fastdeploy/FastDeployTest.java",
92 ],
93 data: [
94 "testdata/helloworld5.apk",
95 "testdata/helloworld7.apk",
jahinimtiazced393c2023-03-28 17:02:37 +000096 "testdata/sample.apk",
jahinimtiazac9fa7d2023-03-30 20:45:54 +000097 "testdata/sample.cd",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070098 ],
99 libs: [
100 "compatibility-host-util",
101 "cts-tradefed",
102 "tradefed",
103 ],
104 test_suites: [
105 "general-tests",
106 ],
Julien Desprezb5546aa2023-04-04 10:24:09 -0700107 test_config: "FastDeployHostDrivenTests.xml",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700108}