• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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//
16package {
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
25java_library {
26    name: "deployagent_lib",
27    sdk_version: "24",
28    srcs: [
29        "deployagent/src/**/*.java",
30        "proto/**/*.proto",
31    ],
32    proto: {
33        type: "lite",
34    },
35}
36
37java_binary {
38    name: "deployagent",
39    wrapper: "deployagent/deployagent.sh",
40    sdk_version: "24",
41    static_libs: [
42        "deployagent_lib",
43    ],
44    dex_preopt: {
45        enabled: false,
46    }
47}
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    },
80
81    test_config: "FastDeployTests.xml",
82
83    test_suites: [
84        "general-tests",
85    ],
86}
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",
96        "testdata/sample.apk",
97        "testdata/sample.cd",
98    ],
99    libs: [
100        "compatibility-host-util",
101        "cts-tradefed",
102        "tradefed",
103    ],
104    test_suites: [
105        "general-tests",
106    ],
107    test_config: "FastDeployHostDrivenTests.xml",
108}
109