• 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//
16java_library {
17    name: "deployagent_lib",
18    sdk_version: "24",
19    srcs: [
20        "deployagent/src/**/*.java",
21        "proto/**/*.proto",
22    ],
23    proto: {
24        type: "lite",
25    },
26}
27
28java_binary {
29    name: "deployagent",
30    sdk_version: "24",
31    static_libs: [
32        "deployagent_lib",
33    ],
34    dex_preopt: {
35        enabled: false,
36    }
37}
38
39android_test {
40    name: "FastDeployTests",
41
42    manifest: "AndroidManifest.xml",
43
44    srcs: [
45        "deployagent/test/com/android/fastdeploy/ApkArchiveTest.java",
46    ],
47
48    static_libs: [
49        "androidx.test.core",
50        "androidx.test.runner",
51        "androidx.test.rules",
52        "deployagent_lib",
53        "mockito-target-inline-minus-junit4",
54    ],
55
56    libs: [
57        "android.test.runner",
58        "android.test.base",
59        "android.test.mock",
60    ],
61
62    data: [
63        "testdata/sample.apk",
64        "testdata/sample.cd",
65    ],
66
67    optimize: {
68        enabled: false,
69    },
70}
71
72java_test_host {
73    name: "FastDeployHostTests",
74    srcs: [
75        "deployagent/test/com/android/fastdeploy/FastDeployTest.java",
76    ],
77    data: [
78        "testdata/helloworld5.apk",
79        "testdata/helloworld7.apk",
80    ],
81    libs: [
82        "compatibility-host-util",
83        "cts-tradefed",
84        "tradefed",
85    ],
86    test_suites: [
87        "general-tests",
88    ],
89}
90