blob: a05de4de97e6219020634ed6913e94bb0b10709f [file] [log] [blame]
felkachang864699a2019-01-11 16:28:17 +08001// Copyright (C) 2019 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
felkachangacf1bd42018-10-08 15:42:19 +080015java_defaults {
16 name: "documentsui_defaults",
17
18 static_libs: [
19 "androidx.appcompat_appcompat",
20 "androidx.legacy_legacy-support-core-ui",
21 "androidx.legacy_legacy-support-v13",
22 "androidx.legacy_legacy-support-v4",
23 "androidx.recyclerview_recyclerview",
24 "androidx.recyclerview_recyclerview-selection",
25 "androidx.transition_transition",
felkachang1556c362018-08-30 16:21:59 +080026 "apache-commons-compress",
felkachangacf1bd42018-10-08 15:42:19 +080027 "com.google.android.material_material",
28 "guava",
29 ],
30
31 privileged: true,
32
33 certificate: "platform",
34
35 optimize: {
36 proguard_flags_files: ["proguard.flags"],
37 },
38
Jeff Sharkeya8032882018-12-12 09:42:26 -070039 sdk_version: "system_current",
Jeff Hamilton1ecca352019-03-06 23:09:40 -050040 min_sdk_version: "28",
41 target_sdk_version: "28",
Kun Niu5d29a012019-07-01 18:06:43 -070042
43 plugins: ["java_api_finder"],
felkachangacf1bd42018-10-08 15:42:19 +080044}
45
Bill Line77ec522019-02-12 19:35:12 +080046filegroup {
47 name: "DocumentsUI-srcs",
48 srcs: [
49 "src/**/*.java",
shawnlina06573a2019-04-09 15:48:43 +080050 ":statslog-docsui-java-gen",
Bill Line77ec522019-02-12 19:35:12 +080051 ],
52}
53
shawnlina06573a2019-04-09 15:48:43 +080054java_library {
55 name: "docsui-statsd",
56 srcs: [
57 ":statslog-docsui-java-gen",
58 ],
59}
60
61genrule {
62 name: "statslog-docsui-java-gen",
63 tools: ["stats-log-api-gen"],
64 cmd: "$(location stats-log-api-gen) --java $(out) --module docsui --javaPackage com.android.documentsui --javaClass DocumentsStatsLog",
65 out: ["com/android/documentsui/DocumentsStatsLog.java"],
66}
67
Bill Line77ec522019-02-12 19:35:12 +080068android_library {
69 name: "DocumentsUI-res-lib",
70
71 manifest: "AndroidManifest.xml",
72
73 static_libs: [
74 "androidx.appcompat_appcompat",
75 "com.google.android.material_material",
76 ],
77
78 resource_dirs: [
79 "res",
80 ],
81
82 aaptflags: [
83 "--auto-add-overlay",
84 ],
Jeff Hamilton1ecca352019-03-06 23:09:40 -050085
86 min_sdk_version: "28",
87 target_sdk_version: "28",
Bill Line77ec522019-02-12 19:35:12 +080088}
89
felkachangacf1bd42018-10-08 15:42:19 +080090android_app {
felkachangacf1bd42018-10-08 15:42:19 +080091 name: "DocumentsUI",
92
93 defaults: ["documentsui_defaults"],
94
95 manifest: "AndroidManifest.xml",
96
97 srcs: [
shawnlina06573a2019-04-09 15:48:43 +080098 ":DocumentsUI-srcs",
felkachangacf1bd42018-10-08 15:42:19 +080099 ],
100
101 resource_dirs: [
102 "res",
103 ],
Bill Lin24499e62019-05-14 18:15:42 +0800104
105 required: ["privapp_whitelist_com.android.documentsui"],
felkachangacf1bd42018-10-08 15:42:19 +0800106}