Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 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 | // |
Bob Badour | 4a6774b | 2021-02-12 19:46:09 -0800 | [diff] [blame] | 16 | package { |
| 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 Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 25 | java_library { |
| 26 | name: "deployagent_lib", |
Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 27 | sdk_version: "24", |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 28 | srcs: [ |
| 29 | "deployagent/src/**/*.java", |
| 30 | "proto/**/*.proto", |
| 31 | ], |
Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 32 | proto: { |
| 33 | type: "lite", |
Henry Daitx | 35538b0 | 2019-01-17 16:24:52 +0000 | [diff] [blame] | 34 | }, |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | java_binary { |
| 38 | name: "deployagent", |
Josh Gao | 1b8426e | 2019-10-17 16:20:26 -0700 | [diff] [blame] | 39 | sdk_version: "24", |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 40 | static_libs: [ |
| 41 | "deployagent_lib", |
| 42 | ], |
Henry Daitx | 35538b0 | 2019-01-17 16:24:52 +0000 | [diff] [blame] | 43 | dex_preopt: { |
| 44 | enabled: false, |
Idries Hamadi | 1ecee44 | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 45 | } |
Alex Buynytskyy | 1af550e | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | android_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 | |
| 81 | java_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 | } |