blob: 764dc49ef7db59cdd3cb48cce12e7701365e4976 [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",
felkachangacf1bd42018-10-08 15:42:19 +080042}
43
Bill Line77ec522019-02-12 19:35:12 +080044filegroup {
45 name: "DocumentsUI-srcs",
46 srcs: [
47 "src/**/*.java",
shawnlina06573a2019-04-09 15:48:43 +080048 ":statslog-docsui-java-gen",
Bill Line77ec522019-02-12 19:35:12 +080049 ],
50}
51
shawnlina06573a2019-04-09 15:48:43 +080052java_library {
53 name: "docsui-statsd",
54 srcs: [
55 ":statslog-docsui-java-gen",
56 ],
57}
58
59genrule {
60 name: "statslog-docsui-java-gen",
61 tools: ["stats-log-api-gen"],
62 cmd: "$(location stats-log-api-gen) --java $(out) --module docsui --javaPackage com.android.documentsui --javaClass DocumentsStatsLog",
63 out: ["com/android/documentsui/DocumentsStatsLog.java"],
64}
65
Bill Line77ec522019-02-12 19:35:12 +080066android_library {
67 name: "DocumentsUI-res-lib",
68
69 manifest: "AndroidManifest.xml",
70
71 static_libs: [
72 "androidx.appcompat_appcompat",
73 "com.google.android.material_material",
74 ],
75
76 resource_dirs: [
77 "res",
78 ],
79
80 aaptflags: [
81 "--auto-add-overlay",
82 ],
Jeff Hamilton1ecca352019-03-06 23:09:40 -050083
84 min_sdk_version: "28",
85 target_sdk_version: "28",
Bill Line77ec522019-02-12 19:35:12 +080086}
87
felkachangacf1bd42018-10-08 15:42:19 +080088android_app {
felkachangacf1bd42018-10-08 15:42:19 +080089 name: "DocumentsUI",
90
91 defaults: ["documentsui_defaults"],
92
93 manifest: "AndroidManifest.xml",
94
95 srcs: [
shawnlina06573a2019-04-09 15:48:43 +080096 ":DocumentsUI-srcs",
felkachangacf1bd42018-10-08 15:42:19 +080097 ],
98
99 resource_dirs: [
100 "res",
101 ],
Bill Lin24499e62019-05-14 18:15:42 +0800102
103 required: ["privapp_whitelist_com.android.documentsui"],
felkachangacf1bd42018-10-08 15:42:19 +0800104}