blob: 1776e05cb6acce1358086539ef36a5e427b2345f [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
85java_defaults {
86 name: "WallpaperPicker2_defaults",
87
88 static_libs: [
89 "wallpaper-common-deps",
90 ],
91
92 srcs: [
93 ":WallpaperPicker2_srcs",
94 "src_override/**/*.java",
95 "src_override/**/*.kt",
96 ],
97 resource_zips: [":WallpaperPicker2_res"],
98
99 certificate: "",
100
101 optimize: {
102 enabled: false,
103 },
104
Santiago Etchebeherec49240a2021-03-16 18:53:22 -0700105 kotlincflags: ["-Xjvm-default=enable"],
Santiago Etchebehereac7512d2021-03-04 18:26:29 -0800106 privileged: true,
107 system_ext_specific: true,
108
109 use_embedded_native_libs: true,
110
111 manifest: "AndroidManifest.xml",
112}
113
114//
115// Build app code.
116//
117android_app {
118 name: "WallpaperPicker2",
119
120 defaults: ["WallpaperPicker2_defaults"],
121
122 platform_apis: true,
123}