blob: 0b71d63276a9b08d45d7a2a6eed8e98b9f235b3f [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 ],
24 libs: [
25 "conscrypt",
26 "bouncycastle",
27 "okhttp",
28 ],
Jiyong Park2fdddb92018-04-25 20:05:19 +090029 api_packages: [
30 "android.net.compatibility",
31 "android.net.http",
32 "com.android.internal.http.multipart",
33 "org.apache.commons.codec",
34 "org.apache.commons.codec.binary",
35 "org.apache.commons.codec.language",
36 "org.apache.commons.codec.net",
37 "org.apache.commons.logging",
38 "org.apache.commons.logging.impl",
39 "org.apache.http",
40 "org.apache.http.auth",
41 "org.apache.http.auth.params",
42 "org.apache.http.client",
43 "org.apache.http.client.entity",
44 "org.apache.http.client.methods",
45 "org.apache.http.client.params",
46 "org.apache.http.client.protocol",
47 "org.apache.http.client.utils",
48 "org.apache.http.conn",
49 "org.apache.http.conn.params",
50 "org.apache.http.conn.routing",
51 "org.apache.http.conn.scheme",
52 "org.apache.http.conn.util",
53 "org.apache.http.cookie",
54 "org.apache.http.cookie.params",
55 "org.apache.http.entity",
56 "org.apache.http.impl",
57 "org.apache.http.impl.auth",
58 "org.apache.http.impl.client",
59 "org.apache.http.impl.conn",
60 "org.apache.http.impl.conn.tsccm",
61 "org.apache.http.impl.cookie",
62 "org.apache.http.impl.entity",
63 "org.apache.http.impl.io",
64 "org.apache.http.io",
65 "org.apache.http.message",
66 "org.apache.http.params",
67 "org.apache.http.protocol",
68 "org.apache.http.util",
Nan Zhang27eb8682018-04-09 17:44:38 -070069 ],
Jiyong Park2fdddb92018-04-25 20:05:19 +090070 hidden_api_packages: ["com.android.okhttp"],
71 dex_preopt: {
72 profile: "art-profile",
73 app_image: false,
Nan Zhang27eb8682018-04-09 17:44:38 -070074 },
Andreas Gampeb61c6f52018-02-16 11:00:01 -080075 errorprone: {
76 javacflags: ["-Xep:MissingOverride:OFF"], // b/73499927
77 },
Nan Zhang27eb8682018-04-09 17:44:38 -070078}