You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.6 KiB

// Copyright 2011 The Android Open Source Project
package {
default_applicable_licenses: [
"packages_apps_CellBroadcastReceiver_license",
],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "packages_apps_CellBroadcastReceiver_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
java_defaults {
name: "CellBroadcastCommon",
min_sdk_version: "30",
target_sdk_version: "31",
sdk_version: "system_current",
privileged: true,
srcs: [
"src/**/*.java",
":framework-annotations",
":cellbroadcast-constants-shared-srcs",
":statslog-cellbroadcast-java-gen",
],
static_libs: [
"androidx.legacy_legacy-support-v4",
"androidx.legacy_legacy-support-v13",
"androidx.recyclerview_recyclerview",
"androidx.preference_preference",
"androidx.appcompat_appcompat",
"androidx.legacy_legacy-preference-v14",
"SettingsLibSettingsTheme",
"SettingsLibCollapsingToolbarBaseActivity",
"SettingsLibMainSwitchPreference",
"modules-utils-build_system",
],
optimize: {
proguard_flags_files: ["proguard.flags"],
},
resource_dirs: ["res"],
plugins: ["java_api_finder"],
lint: {
strict_updatability_linting: true,
},
}
android_app {
name: "CellBroadcastApp",
defaults: ["CellBroadcastCommon"],
certificate: "networkstack",
aaptflags: ["--custom-package com.android.cellbroadcastreceiver"],
manifest: "AndroidManifest.xml",
apex_available: ["com.android.cellbroadcast"],
}
// filegroup used to include source into unit tests
filegroup {
name: "cellbroadcastreceiver-sources",
srcs: [
"src/**/*.java",
":framework-annotations",
":cellbroadcast-constants-shared-srcs",
],
}
android_app {
name: "CellBroadcastAppPlatform",
defaults: ["CellBroadcastCommon"],
certificate: "platform",
// CellBroadcastAppPlatform is a replacement for com.android.cellbroadcast apex which consists
// of CellBroadcastApp
overrides: ["com.android.cellbroadcast", "CellBroadcastLegacyApp"],
manifest: "AndroidManifest_Platform.xml",
system_ext_specific: true,
privileged: true,
required: ["privapp_whitelist_com.android.cellbroadcastreceiver"],
}
// source file shared with legacy cellbroadcast app
filegroup {
name: "cellbroadcast-database-sources",
srcs: [
"src/com/android/cellbroadcastreceiver/CellBroadcastDatabaseHelper.java",
],
}