| /* |
| * Copyright (c) 2023-2024 The LeafOS Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| filegroup { |
| name: "ThemePickerLeaf_src_prod", |
| srcs: ["src_override/com/android/customization/picker/CustomizationPickerApplication.java"], |
| } |
| |
| java_library { |
| name: "ThemePickerLeafOverridesLib", |
| srcs: [ |
| "src_override/**/*.java", |
| "src_override/**/*.kt", |
| ], |
| exclude_srcs: [":ThemePickerLeaf_src_prod"], |
| libs: [ |
| "hilt_android", |
| "ThemePickerLeafLib", |
| ], |
| } |
| |
| java_library { |
| name: "ThemePickerLeafApplicationLib", |
| srcs: [":ThemePickerLeaf_src_prod"], |
| libs: [ |
| "hilt_android", |
| "ThemePickerLeafLib", |
| "ThemePickerOverridesLib", |
| ], |
| } |
| |
| android_library { |
| name: "ThemePickerLeafLib", |
| |
| static_libs: [ |
| "guava", |
| "monet", |
| "renderscript_toolkit", |
| "WallpaperPicker2Lib", |
| "ThemePickerLib", |
| "SettingsLibSettingsTheme", |
| "SystemUI-statsd", |
| "styleprotoslite", |
| "androidx.lifecycle_lifecycle-livedata-ktx", |
| "androidx.lifecycle_lifecycle-runtime-ktx", |
| "androidx.lifecycle_lifecycle-viewmodel-ktx", |
| "androidx.recyclerview_recyclerview", |
| "SystemUICustomizationLib", |
| "hilt_android", |
| ], |
| |
| srcs: [ |
| "src/**/*.java", |
| "src/**/*.kt", |
| ], |
| |
| resource_dirs: [ |
| "res", |
| "res_override", |
| ], |
| |
| manifest: "AndroidManifest-empty.xml", |
| } |
| |
| java_defaults { |
| name: "ThemePickerLeaf_defaults", |
| |
| static_libs: [ |
| "hilt_android", |
| "ThemePickerLeafLib", |
| "ThemePickerLeafOverridesLib", |
| ], |
| |
| jni_libs: [ |
| "librenderscript-toolkit", |
| ], |
| |
| required: [ |
| "android.software.theme_picker.xml", |
| "default_permissions_com.android.wallpaper.xml", |
| ], |
| |
| use_embedded_native_libs: true, |
| |
| optimize: { |
| enabled: false, |
| }, |
| kotlincflags: ["-Xjvm-default=all"], |
| certificate: "", |
| |
| privileged: true, |
| system_ext_specific: true, |
| } |
| |
| prebuilt_etc_xml { |
| name: "default_permissions_com.android.wallpaper.xml", |
| src: "default_permissions_com.android.wallpaper.xml", |
| system_ext_specific: true, |
| filename_from_src: true, |
| sub_dir: "default-permissions", |
| } |
| |
| // |
| // Build app code. |
| // |
| android_app { |
| name: "ThemePickerLeaf", |
| package_name: "com.android.wallpaper", |
| defaults: ["ThemePickerLeaf_defaults"], |
| |
| platform_apis: true, |
| manifest: "AndroidManifest.xml", |
| additional_manifests: [ |
| ":ThemePicker_Manifest", |
| ":WallpaperPicker2_Manifest", |
| ], |
| overrides: [ |
| "ThemePicker", |
| "WallpaperCropper", |
| "WallpaperPicker", |
| "WallpaperPicker2", |
| ], |
| static_libs: [ |
| "ThemePickerLeafApplicationLib", |
| ], |
| } |