blob: 2d4269e9147c1a048773c00b01890f405f3ecd08 [file] [log] [blame]
Nan Zhang110f6152018-08-15 12:05:04 -07001// Copyright (C) 2018 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
15java_library_static {
16 name: "android.support.car",
17 srcs: [
18 "src/**/*.java",
19 "src/**/I*.aidl",
20 ],
21 aidl: {
22 include_dirs: [
23 "system/bt/binder",
24 ],
25 },
26 libs: [
27 "android.car",
28 ],
29 static_libs: [
30 "androidx.annotation_annotation",
31 ],
32 platform_apis: true,
33 product_variables: {
34 pdk: {
35 enabled: false,
36 },
37 },
38 installable: true,
39}
40
41doc_defaults {
42 name: "android.support.car-docs-default",
43 srcs: [
44 "src/**/*.java",
45 ],
46 libs: [
47 "android.car",
48 "android.support.car",
49 "androidx.annotation_annotation",
50 ],
51 custom_template: "droiddoc-templates-sdk",
52 product_variables: {
53 pdk: {
54 enabled: false,
55 },
56 },
57}
58
59droiddoc {
60 name: "android.support.car-stubs-docs",
61 defaults: ["android.support.car-docs-default"],
62 api_tag_name: "ANDROID_SUPPORT_CAR",
63 api_filename: "api.txt",
64 removed_api_filename: "removed.txt",
65 args: "-hide 113 -hide 110 -nodocs -stubpackages android.support.car* ",
66 installable: false,
67 check_api: {
68 current: {
69 api_file: "api/current.txt",
70 removed_api_file: "api/removed.txt",
71 args: " -error 2 -error 3 -error 4 -error 5 -error 6 -error 7 -error 8 -error 9 -error 10 -error 11 " +
72 " -error 12 -error 13 -error 14 -error 15 -error 16 -error 17 -error 18 -error 19 -error 20 " +
73 " -error 21 -error 23 -error 24 -error 25 -hide 113 ",
74 },
75 },
76}
77
78droiddoc {
79 name: "android.support.car-proguard-docs",
80 defaults: ["android.support.car-docs-default"],
81 api_tag_name: "ANDROID_SUPPORT_CAR_PROGUARD",
82 proguard_filename: "keep_list.proguard",
83 create_stubs: false,
84}
85
86// TODO(deanh) support lib should be able to be using public APIs only
87droiddoc {
88 name: "android.support.car-docs",
89 srcs: [
90 "src/**/*.java",
91 ],
92 libs: [
93 "android.car",
94 "androidx.annotation_annotation",
95 ],
96 custom_template: "droiddoc-templates-sdk",
97 create_stubs: false,
98 product_variables: {
99 pdk: {
100 enabled: false,
101 },
102 },
103}