vendor_aospa_apps_ParanoidT.../Android.bp

148 lines
3.3 KiB
Plaintext
Raw Normal View History

2022-04-17 01:52:45 +00:00
//
// Copyright (C) 2022 StatiXOS
// Copyright (C) 2022 Paranoid Android
// SPDX-License-Identifer: Apache-2.0
2022-04-17 01:52:45 +00:00
//
package {
default_applicable_licenses: ["packages_apps_Paranoid_ThemePicker_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "packages_apps_Paranoid_ThemePicker_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
2022-04-17 01:52:45 +00:00
}
java_library {
name: "ParanoidThemePickerOverridesLib",
2022-04-17 01:52:45 +00:00
srcs: [
"src_override/**/*.java",
"src_override/**/*.kt",
],
libs: [
"hilt_android",
"ParanoidThemePickerLib",
2022-04-17 01:52:45 +00:00
],
}
filegroup {
name: "ParanoidThemePicker_Manifest",
2022-04-17 01:52:45 +00:00
srcs: [
"AndroidManifest.xml",
],
}
android_library {
name: "ParanoidThemePickerLib",
static_libs: [
"guava",
"monet",
"renderscript_toolkit",
"ThemePickerLib",
"WallpaperPicker2Lib",
"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",
],
2022-04-17 01:52:45 +00:00
srcs: [
"src/**/*.java",
"src/**/*.kt",
],
resource_dirs: [
"res",
"res_override",
],
manifest: "AndroidManifest-empty.xml",
}
java_defaults {
name: "ParanoidThemePicker_defaults",
static_libs: [
"ThemePickerLib",
"ParanoidThemePickerLib",
"ThemePickerOverridesLib",
"ParanoidThemePickerOverridesLib",
"hilt_android",
2022-04-17 01:52:45 +00:00
],
jni_libs: [
"librenderscript-toolkit",
],
required: ["android.software.theme_picker.xml"],
2022-04-17 01:52:45 +00:00
use_embedded_native_libs: true,
2022-04-17 01:52:45 +00:00
optimize: {
enabled: false,
},
kotlincflags: ["-Xjvm-default=all"],
2022-04-17 01:52:45 +00:00
certificate: "platform",
privileged: true,
system_ext_specific: true,
}
//
// Build app code.
//
android_app {
name: "ParanoidThemePicker",
defaults: ["ParanoidThemePicker_defaults"],
2022-04-17 01:52:45 +00:00
platform_apis: true,
manifest: "AndroidManifest.xml",
additional_manifests: [":WallpaperPicker2_Manifest", ":ThemePicker_Manifest"],
overrides: ["WallpaperPicker", "WallpaperPicker2", "ThemePicker"],
required: [
"privapp_whitelist_com.android.wallpaper",
"default_permissions_com.android.wallpaper",
"ParanoidColorStub",
],
certificate: "platform",
}
prebuilt_etc {
name: "privapp_whitelist_com.android.wallpaper",
system_ext_specific: true,
src: "privapp_whitelist_com.android.wallpaper.xml",
sub_dir: "permissions",
filename_from_src: true,
2022-04-17 01:52:45 +00:00
}
prebuilt_etc_xml {
name: "default_permissions_com.android.wallpaper",
src: "default_permissions_com.android.wallpaper.xml",
system_ext_specific: true,
filename_from_src: true,
sub_dir: "default-permissions",
}
android_app {
name: "ParanoidColorStub",
manifest: "AndroidManifest-Stub.xml",
resource_dirs: ["res-stub"],
certificate: "platform",
product_specific: true,
sdk_version: "current",
}