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