Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 1 | // Copyright (C) 2014 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Jiyong Park | 7240bbc | 2019-09-13 20:44:44 +0900 | [diff] [blame] | 15 | filegroup { |
| 16 | name: "org.apache.http.legacy.sources", |
| 17 | srcs: ["src/**/*.java"], |
| 18 | path: "src", |
| 19 | visibility: ["//visibility:private"], |
| 20 | } |
| 21 | |
| 22 | filegroup { |
| 23 | name: "org.apache.http.legacy.android.sources", |
| 24 | srcs: ["android/src/**/*.java"], |
| 25 | path: "android/src", |
| 26 | visibility: ["//visibility:private"], |
| 27 | } |
| 28 | |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 29 | java_sdk_library { |
| 30 | name: "org.apache.http.legacy", |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 31 | srcs: [ |
Jiyong Park | 7240bbc | 2019-09-13 20:44:44 +0900 | [diff] [blame] | 32 | ":org.apache.http.legacy.sources", |
| 33 | ":org.apache.http.legacy.android.sources", |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 34 | ], |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 35 | api_packages: [ |
Paul Duffin | 491661a | 2019-02-11 15:59:32 +0000 | [diff] [blame] | 36 | "android.net.compatibility", |
| 37 | "android.net.http", |
| 38 | "com.android.internal.http.multipart", |
| 39 | "org.apache.commons.codec", |
| 40 | "org.apache.commons.codec.binary", |
| 41 | "org.apache.commons.codec.language", |
| 42 | "org.apache.commons.codec.net", |
| 43 | "org.apache.commons.logging", |
| 44 | "org.apache.commons.logging.impl", |
| 45 | "org.apache.http", |
| 46 | "org.apache.http.auth", |
| 47 | "org.apache.http.auth.params", |
| 48 | "org.apache.http.client", |
| 49 | "org.apache.http.client.entity", |
| 50 | "org.apache.http.client.methods", |
| 51 | "org.apache.http.client.params", |
| 52 | "org.apache.http.client.protocol", |
| 53 | "org.apache.http.client.utils", |
| 54 | "org.apache.http.conn", |
| 55 | "org.apache.http.conn.params", |
| 56 | "org.apache.http.conn.routing", |
| 57 | "org.apache.http.conn.scheme", |
| 58 | "org.apache.http.conn.util", |
| 59 | "org.apache.http.cookie", |
| 60 | "org.apache.http.cookie.params", |
| 61 | "org.apache.http.entity", |
| 62 | "org.apache.http.impl", |
| 63 | "org.apache.http.impl.auth", |
| 64 | "org.apache.http.impl.client", |
| 65 | "org.apache.http.impl.conn", |
| 66 | "org.apache.http.impl.conn.tsccm", |
| 67 | "org.apache.http.impl.cookie", |
| 68 | "org.apache.http.impl.entity", |
| 69 | "org.apache.http.impl.io", |
| 70 | "org.apache.http.io", |
| 71 | "org.apache.http.message", |
| 72 | "org.apache.http.params", |
| 73 | "org.apache.http.protocol", |
| 74 | "org.apache.http.util", |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 75 | ], |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 76 | dex_preopt: { |
| 77 | profile: "art-profile", |
| 78 | app_image: false, |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 79 | }, |
Andreas Gampe | b61c6f5 | 2018-02-16 11:00:01 -0800 | [diff] [blame] | 80 | errorprone: { |
Paul Duffin | 491661a | 2019-02-11 15:59:32 +0000 | [diff] [blame] | 81 | javacflags: ["-Xep:MissingOverride:OFF"], // b/73499927 |
Andreas Gampe | b61c6f5 | 2018-02-16 11:00:01 -0800 | [diff] [blame] | 82 | }, |
Paul Duffin | ed13182 | 2019-02-11 16:00:00 +0000 | [diff] [blame] | 83 | // Add dependencies on files used by droiddoc_options. |
| 84 | droiddoc_option_files: [":frameworks-base-api-current.txt"], |
| 85 | droiddoc_options: [ |
| 86 | "--hide ReferencesHidden", |
| 87 | // Subtract classes from the API .txt / stubs that are in the public SDK API. Without this |
| 88 | // the org.apache.http.legacy.jar would contain duplicates of classes in android.jar. |
| 89 | // See http://b/119021844 for more details. |
| 90 | "--subtract-api $(location :frameworks-base-api-current.txt)", |
| 91 | ], |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 92 | } |
Paul Duffin | f788fc8 | 2019-05-30 15:06:12 +0100 | [diff] [blame] | 93 | |
| 94 | // Make the current.txt available for use by the cts/tests/signature tests. |
| 95 | // ======================================================================== |
Paul Duffin | 27e800b | 2019-06-04 11:44:39 +0100 | [diff] [blame] | 96 | filegroup { |
Paul Duffin | f788fc8 | 2019-05-30 15:06:12 +0100 | [diff] [blame] | 97 | name: "apache-http-legacy-current.txt", |
| 98 | srcs: [ |
| 99 | "api/current.txt", |
| 100 | ], |
Paul Duffin | f788fc8 | 2019-05-30 15:06:12 +0100 | [diff] [blame] | 101 | } |