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 | |
Bob Badour | d894d54 | 2021-02-12 14:43:06 -0800 | [diff] [blame^] | 15 | package { |
| 16 | default_applicable_licenses: ["external_apache-http_license"], |
| 17 | } |
| 18 | |
| 19 | // Added automatically by a large-scale-change |
| 20 | // See: http://go/android-license-faq |
| 21 | license { |
| 22 | name: "external_apache-http_license", |
| 23 | visibility: [":__subpackages__"], |
| 24 | license_kinds: [ |
| 25 | "SPDX-license-identifier-Apache-2.0", |
| 26 | ], |
| 27 | license_text: [ |
| 28 | "NOTICE", |
| 29 | ], |
| 30 | } |
| 31 | |
Jiyong Park | 7240bbc | 2019-09-13 20:44:44 +0900 | [diff] [blame] | 32 | filegroup { |
| 33 | name: "org.apache.http.legacy.sources", |
| 34 | srcs: ["src/**/*.java"], |
| 35 | path: "src", |
| 36 | visibility: ["//visibility:private"], |
| 37 | } |
| 38 | |
| 39 | filegroup { |
| 40 | name: "org.apache.http.legacy.android.sources", |
| 41 | srcs: ["android/src/**/*.java"], |
| 42 | path: "android/src", |
| 43 | visibility: ["//visibility:private"], |
| 44 | } |
| 45 | |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 46 | java_sdk_library { |
| 47 | name: "org.apache.http.legacy", |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 48 | srcs: [ |
Jiyong Park | 7240bbc | 2019-09-13 20:44:44 +0900 | [diff] [blame] | 49 | ":org.apache.http.legacy.sources", |
| 50 | ":org.apache.http.legacy.android.sources", |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 51 | ], |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 52 | api_packages: [ |
Paul Duffin | 491661a | 2019-02-11 15:59:32 +0000 | [diff] [blame] | 53 | "android.net.compatibility", |
| 54 | "android.net.http", |
| 55 | "com.android.internal.http.multipart", |
| 56 | "org.apache.commons.codec", |
| 57 | "org.apache.commons.codec.binary", |
| 58 | "org.apache.commons.codec.language", |
| 59 | "org.apache.commons.codec.net", |
| 60 | "org.apache.commons.logging", |
| 61 | "org.apache.commons.logging.impl", |
| 62 | "org.apache.http", |
| 63 | "org.apache.http.auth", |
| 64 | "org.apache.http.auth.params", |
| 65 | "org.apache.http.client", |
| 66 | "org.apache.http.client.entity", |
| 67 | "org.apache.http.client.methods", |
| 68 | "org.apache.http.client.params", |
| 69 | "org.apache.http.client.protocol", |
| 70 | "org.apache.http.client.utils", |
| 71 | "org.apache.http.conn", |
| 72 | "org.apache.http.conn.params", |
| 73 | "org.apache.http.conn.routing", |
| 74 | "org.apache.http.conn.scheme", |
| 75 | "org.apache.http.conn.util", |
| 76 | "org.apache.http.cookie", |
| 77 | "org.apache.http.cookie.params", |
| 78 | "org.apache.http.entity", |
| 79 | "org.apache.http.impl", |
| 80 | "org.apache.http.impl.auth", |
| 81 | "org.apache.http.impl.client", |
| 82 | "org.apache.http.impl.conn", |
| 83 | "org.apache.http.impl.conn.tsccm", |
| 84 | "org.apache.http.impl.cookie", |
| 85 | "org.apache.http.impl.entity", |
| 86 | "org.apache.http.impl.io", |
| 87 | "org.apache.http.io", |
| 88 | "org.apache.http.message", |
| 89 | "org.apache.http.params", |
| 90 | "org.apache.http.protocol", |
| 91 | "org.apache.http.util", |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 92 | ], |
Jiyong Park | 2fdddb9 | 2018-04-25 20:05:19 +0900 | [diff] [blame] | 93 | dex_preopt: { |
| 94 | profile: "art-profile", |
| 95 | app_image: false, |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 96 | }, |
Andreas Gampe | b61c6f5 | 2018-02-16 11:00:01 -0800 | [diff] [blame] | 97 | errorprone: { |
Paul Duffin | 491661a | 2019-02-11 15:59:32 +0000 | [diff] [blame] | 98 | javacflags: ["-Xep:MissingOverride:OFF"], // b/73499927 |
Andreas Gampe | b61c6f5 | 2018-02-16 11:00:01 -0800 | [diff] [blame] | 99 | }, |
Paul Duffin | ed13182 | 2019-02-11 16:00:00 +0000 | [diff] [blame] | 100 | // Add dependencies on files used by droiddoc_options. |
| 101 | droiddoc_option_files: [":frameworks-base-api-current.txt"], |
| 102 | droiddoc_options: [ |
Paul Duffin | ed13182 | 2019-02-11 16:00:00 +0000 | [diff] [blame] | 103 | // Subtract classes from the API .txt / stubs that are in the public SDK API. Without this |
| 104 | // the org.apache.http.legacy.jar would contain duplicates of classes in android.jar. |
| 105 | // See http://b/119021844 for more details. |
| 106 | "--subtract-api $(location :frameworks-base-api-current.txt)", |
| 107 | ], |
Nan Zhang | 27eb868 | 2018-04-09 17:44:38 -0700 | [diff] [blame] | 108 | } |
Paul Duffin | f788fc8 | 2019-05-30 15:06:12 +0100 | [diff] [blame] | 109 | |
| 110 | // Make the current.txt available for use by the cts/tests/signature tests. |
| 111 | // ======================================================================== |
Paul Duffin | 27e800b | 2019-06-04 11:44:39 +0100 | [diff] [blame] | 112 | filegroup { |
Paul Duffin | f788fc8 | 2019-05-30 15:06:12 +0100 | [diff] [blame] | 113 | name: "apache-http-legacy-current.txt", |
| 114 | srcs: [ |
| 115 | "api/current.txt", |
| 116 | ], |
Paul Duffin | f788fc8 | 2019-05-30 15:06:12 +0100 | [diff] [blame] | 117 | } |