blob: d8f631e6b9e6b4eb5abae503761e5fd843abdb63 [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]})) && "
82 + "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR && "
83 + "cp $(out) ."
84}
85
86java_defaults {
87 name: "WallpaperPicker2_defaults",
88
89 static_libs: [
90 "wallpaper-common-deps",
91 ],
92
93 srcs: [
94 ":WallpaperPicker2_srcs",
95 "src_override/**/*.java",
96 "src_override/**/*.kt",
97 ],
98 resource_zips: [":WallpaperPicker2_res"],
99
100 certificate: "",
101
102 optimize: {
103 enabled: false,
104 },
105
Santiago Etchebeherec49240a2021-03-16 18:53:22 -0700106 kotlincflags: ["-Xjvm-default=enable"],
Santiago Etchebehereac7512d2021-03-04 18:26:29 -0800107 privileged: true,
108 system_ext_specific: true,
109
110 use_embedded_native_libs: true,
111
112 manifest: "AndroidManifest.xml",
113}
114
115//
116// Build app code.
117//
118android_app {
119 name: "WallpaperPicker2",
120
121 defaults: ["WallpaperPicker2_defaults"],
122
123 platform_apis: true,
124}