| Idries Hamadi | ed409ea | 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 | 665f3ff | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 16 | java_library { | 
 | 17 |     name: "deployagent_lib", | 
| Idries Hamadi | ed409ea | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 18 |     sdk_version: "24", | 
| Alex Buynytskyy | 665f3ff | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 19 |     srcs: [ | 
 | 20 |         "deployagent/src/**/*.java", | 
 | 21 |         "proto/**/*.proto", | 
 | 22 |     ], | 
| Idries Hamadi | ed409ea | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 23 |     proto: { | 
 | 24 |         type: "lite", | 
| Henry Daitx | 05af6ae | 2019-01-17 16:24:52 +0000 | [diff] [blame] | 25 |     }, | 
| Alex Buynytskyy | 665f3ff | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 26 | } | 
 | 27 |  | 
 | 28 | java_binary { | 
 | 29 |     name: "deployagent", | 
| Josh Gao | c9e09e6 | 2019-10-17 16:20:26 -0700 | [diff] [blame] | 30 |     sdk_version: "24", | 
| Alex Buynytskyy | 665f3ff | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 31 |     static_libs: [ | 
 | 32 |         "deployagent_lib", | 
 | 33 |     ], | 
| Henry Daitx | 05af6ae | 2019-01-17 16:24:52 +0000 | [diff] [blame] | 34 |     dex_preopt: { | 
 | 35 |         enabled: false, | 
| Idries Hamadi | ed409ea | 2018-01-29 16:30:36 +0000 | [diff] [blame] | 36 |     } | 
| Alex Buynytskyy | 665f3ff | 2019-09-16 12:10:54 -0700 | [diff] [blame] | 37 | } | 
 | 38 |  | 
 | 39 | android_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 |  | 
 | 72 | java_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 | } |