blob: 86e1fdf230f5603397263a50327bc0c665fa53b7 [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 {
Aditya Choudhary1d87c972024-02-02 13:55:51 +000017 default_team: "trendy_team_framework_android_packages",
Bob Badour4a6774b2021-02-12 19:46:09 -080018 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "packages_modules_adb_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["packages_modules_adb_license"],
24}
25
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070026java_library {
27 name: "deployagent_lib",
Idries Hamadi1ecee442018-01-29 16:30:36 +000028 sdk_version: "24",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070029 srcs: [
30 "deployagent/src/**/*.java",
31 "proto/**/*.proto",
32 ],
Idries Hamadi1ecee442018-01-29 16:30:36 +000033 proto: {
34 type: "lite",
Henry Daitx35538b02019-01-17 16:24:52 +000035 },
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070036}
37
38java_binary {
39 name: "deployagent",
Zi Wang15c29ef2022-10-14 09:54:08 -070040 wrapper: "deployagent/deployagent.sh",
Josh Gao1b8426e2019-10-17 16:20:26 -070041 sdk_version: "24",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070042 static_libs: [
43 "deployagent_lib",
44 ],
Henry Daitx35538b02019-01-17 16:24:52 +000045 dex_preopt: {
46 enabled: false,
Aditya Choudhary1d87c972024-02-02 13:55:51 +000047 },
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070048}
49
50android_test {
51 name: "FastDeployTests",
52
53 manifest: "AndroidManifest.xml",
54
55 srcs: [
56 "deployagent/test/com/android/fastdeploy/ApkArchiveTest.java",
57 ],
58
59 static_libs: [
60 "androidx.test.core",
61 "androidx.test.runner",
62 "androidx.test.rules",
63 "deployagent_lib",
64 "mockito-target-inline-minus-junit4",
65 ],
66
67 libs: [
Jihoon Kang3a6c4b32024-08-30 00:30:16 +000068 "android.test.runner.stubs.system",
69 "android.test.base.stubs.system",
70 "android.test.mock.stubs.system",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070071 ],
72
73 data: [
74 "testdata/sample.apk",
75 "testdata/sample.cd",
76 ],
77
78 optimize: {
79 enabled: false,
80 },
Julien Desprezb5546aa2023-04-04 10:24:09 -070081
82 test_config: "FastDeployTests.xml",
83
84 test_suites: [
85 "general-tests",
86 ],
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070087}
88
89java_test_host {
90 name: "FastDeployHostTests",
91 srcs: [
92 "deployagent/test/com/android/fastdeploy/FastDeployTest.java",
93 ],
94 data: [
95 "testdata/helloworld5.apk",
96 "testdata/helloworld7.apk",
jahinimtiazced393c2023-03-28 17:02:37 +000097 "testdata/sample.apk",
jahinimtiazac9fa7d2023-03-30 20:45:54 +000098 "testdata/sample.cd",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -070099 ],
100 libs: [
101 "compatibility-host-util",
102 "cts-tradefed",
103 "tradefed",
104 ],
105 test_suites: [
106 "general-tests",
107 ],
Julien Desprezb5546aa2023-04-04 10:24:09 -0700108 test_config: "FastDeployHostDrivenTests.xml",
Alex Buynytskyy1af550e2019-09-16 12:10:54 -0700109}