1//
2// Copyright (C) 2011 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//
16
17// The set of files that contribute to APIs.
18// Generally, apache-xml source files are not marked with @hide so we add them
19// one-by-one after having done so.
20filegroup {
21    name: "apache-xml_api_files",
22    srcs: [],
23}
24
25java_library {
26    name: "apache-xml",
27    srcs: ["src/main/java/**/*.java"],
28    java_resource_dirs: ["src/main/java"],
29
30    installable: true,
31    hostdex: true,
32    errorprone: {
33        javacflags: ["-Xep:MissingOverride:OFF"],
34    },
35
36    no_standard_libs: true,
37    libs: ["core-all"],
38    system_modules: "core-all-system-modules",
39}
40
41// A guaranteed unstripped version of apache-xml for use on device.
42// The build system may or may not strip the apache-xml jar, but this one will
43// not be stripped. See b/24535627.
44java_library {
45    name: "apache-xml-testdex",
46    static_libs: ["apache-xml"],
47
48    installable: true,
49    dex_preopt: {
50        enabled: false,
51    },
52
53    no_framework_libs: true,
54}
55