blob: 409f9e6bb52c5e7df4d17ed291cd32a77ecc45d8 [file] [log] [blame]
Nan Zhang27eb8682018-04-09 17:44:38 -07001// 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 Park2fdddb92018-04-25 20:05:19 +090015java_sdk_library {
16 name: "org.apache.http.legacy",
Nan Zhang27eb8682018-04-09 17:44:38 -070017 srcs: [
18 "src/**/*.java",
19 "android/**/*.java",
Jiyong Park2fdddb92018-04-25 20:05:19 +090020 ],
21 api_srcs: [
Nan Zhang27eb8682018-04-09 17:44:38 -070022 ":apache-http-stubs-sources",
23 ],
Jiyong Park2fdddb92018-04-25 20:05:19 +090024 api_packages: [
Paul Duffin491661a2019-02-11 15:59:32 +000025 "android.net.compatibility",
26 "android.net.http",
27 "com.android.internal.http.multipart",
28 "org.apache.commons.codec",
29 "org.apache.commons.codec.binary",
30 "org.apache.commons.codec.language",
31 "org.apache.commons.codec.net",
32 "org.apache.commons.logging",
33 "org.apache.commons.logging.impl",
34 "org.apache.http",
35 "org.apache.http.auth",
36 "org.apache.http.auth.params",
37 "org.apache.http.client",
38 "org.apache.http.client.entity",
39 "org.apache.http.client.methods",
40 "org.apache.http.client.params",
41 "org.apache.http.client.protocol",
42 "org.apache.http.client.utils",
43 "org.apache.http.conn",
44 "org.apache.http.conn.params",
45 "org.apache.http.conn.routing",
46 "org.apache.http.conn.scheme",
47 "org.apache.http.conn.util",
48 "org.apache.http.cookie",
49 "org.apache.http.cookie.params",
50 "org.apache.http.entity",
51 "org.apache.http.impl",
52 "org.apache.http.impl.auth",
53 "org.apache.http.impl.client",
54 "org.apache.http.impl.conn",
55 "org.apache.http.impl.conn.tsccm",
56 "org.apache.http.impl.cookie",
57 "org.apache.http.impl.entity",
58 "org.apache.http.impl.io",
59 "org.apache.http.io",
60 "org.apache.http.message",
61 "org.apache.http.params",
62 "org.apache.http.protocol",
63 "org.apache.http.util",
Nan Zhang27eb8682018-04-09 17:44:38 -070064 ],
Jiyong Park2fdddb92018-04-25 20:05:19 +090065 dex_preopt: {
66 profile: "art-profile",
67 app_image: false,
Nan Zhang27eb8682018-04-09 17:44:38 -070068 },
Andreas Gampeb61c6f52018-02-16 11:00:01 -080069 errorprone: {
Paul Duffin491661a2019-02-11 15:59:32 +000070 javacflags: ["-Xep:MissingOverride:OFF"], // b/73499927
Andreas Gampeb61c6f52018-02-16 11:00:01 -080071 },
Paul Duffined131822019-02-11 16:00:00 +000072 // Add dependencies on files used by droiddoc_options.
73 droiddoc_option_files: [":frameworks-base-api-current.txt"],
74 droiddoc_options: [
75 "--hide ReferencesHidden",
76 // Subtract classes from the API .txt / stubs that are in the public SDK API. Without this
77 // the org.apache.http.legacy.jar would contain duplicates of classes in android.jar.
78 // See http://b/119021844 for more details.
79 "--subtract-api $(location :frameworks-base-api-current.txt)",
80 ],
Nan Zhang27eb8682018-04-09 17:44:38 -070081}