blob: 871e19390ce142d09c57d266e1b4d8f54732bd79 [file] [log] [blame]
Santiago Etchebehereac7512d2021-03-04 18:26:29 -08001//
2// Copyright (C) 2021 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//
18// Build rule for WallpaperPicker2 dependencies lib.
19//
Bob Badour2021dd72021-03-19 03:57:19 -070020package {
21 default_applicable_licenses: ["Android-Apache-2.0"],
22}
23
Santiago Etchebehereac7512d2021-03-04 18:26:29 -080024android_library {
25 name: "wallpaper-common-deps",
26
27 static_libs: [
28 "androidx.appcompat_appcompat",
29 "androidx.cardview_cardview",
30 "androidx.exifinterface_exifinterface",
Santiago Etchebeherec49240a2021-03-16 18:53:22 -070031 "androidx.lifecycle_lifecycle-runtime-ktx",
Santiago Etchebehereac7512d2021-03-04 18:26:29 -080032 "androidx.recyclerview_recyclerview",
33 "androidx.slice_slice-view",
34 "androidx-constraintlayout_constraintlayout",
35 "com.google.android.material_material",
36 "glide-prebuilt",
Santiago Etchebeherec49240a2021-03-16 18:53:22 -070037 "kotlinx-coroutines-android",
38 "kotlinx-coroutines-core",
Santiago Etchebehereac7512d2021-03-04 18:26:29 -080039 "libbackup",
Kunhung Lid0174362021-04-05 15:31:41 +080040 "SettingsLibCollapsingToolbarBaseActivity",
Santiago Etchebehereac7512d2021-03-04 18:26:29 -080041 "subsampling-scale-image-view",
42 "SystemUISharedLib",
43 "volley",
44 ],
45
46 resource_dirs: ["res"],
47
48 optimize: {
49 enabled: false,
50 },
51
Santiago Etchebeherec49240a2021-03-16 18:53:22 -070052 kotlincflags: ["-Xjvm-default=enable"],
53
Santiago Etchebehereac7512d2021-03-04 18:26:29 -080054 sdk_version: "current",
55
56 manifest: "AndroidManifest-empty.xml",
57
58 visibility: [
59 ":__subpackages__",
60 "//packages/apps/ThemePicker",
61 "//vendor:__subpackages__",
62 ],
63}
64
65filegroup {
66 name: "WallpaperPicker2_srcs",
67 srcs: [
68 "src/**/*.java",
69 "src/**/*.kt",
70 ],
71}
72
73genrule {
74 name: "WallpaperPicker2_res",
75 tools: ["soong_zip"],
76 srcs: [
77 "res/**/*"
78 ],
79 out: ["wallpaperpicker2_res.zip"],
80 cmd: "INPUTS=($(in)) && "
81 + "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && "
Colin Crossd593b7b2021-05-11 18:29:39 +000082 + "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
Santiago Etchebehereac7512d2021-03-04 18:26:29 -080083}
84
Chihhang Chuang2813cbd2021-06-17 22:28:56 +080085filegroup {
86 name: "WallpaperPicker2_Manifest",
87 srcs: [
88 "AndroidManifest.xml",
89 ],
90}
91
Santiago Etchebehereac7512d2021-03-04 18:26:29 -080092java_defaults {
93 name: "WallpaperPicker2_defaults",
94
95 static_libs: [
96 "wallpaper-common-deps",
97 ],
98
99 srcs: [
100 ":WallpaperPicker2_srcs",
101 "src_override/**/*.java",
102 "src_override/**/*.kt",
103 ],
104 resource_zips: [":WallpaperPicker2_res"],
105
106 certificate: "",
107
108 optimize: {
109 enabled: false,
110 },
111
Santiago Etchebeherec49240a2021-03-16 18:53:22 -0700112 kotlincflags: ["-Xjvm-default=enable"],
Santiago Etchebehereac7512d2021-03-04 18:26:29 -0800113 privileged: true,
114 system_ext_specific: true,
115
116 use_embedded_native_libs: true,
117
118 manifest: "AndroidManifest.xml",
119}
120
121//
122// Build app code.
123//
124android_app {
125 name: "WallpaperPicker2",
126
127 defaults: ["WallpaperPicker2_defaults"],
128
129 platform_apis: true,
130}