85 lines
2.5 KiB
Plaintext
85 lines
2.5 KiB
Plaintext
// Copyright 2011 The Android Open Source Project
|
|
package {
|
|
// See: http://go/android-license-faq
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
java_defaults {
|
|
name: "CellBroadcastCommon",
|
|
min_sdk_version: "30",
|
|
target_sdk_version: "33",
|
|
sdk_version: "module_current",
|
|
privileged: true,
|
|
srcs: [
|
|
"src/**/*.java",
|
|
":cellbroadcast-constants-shared-srcs",
|
|
":statslog-cellbroadcast-java-gen",
|
|
],
|
|
libs: [
|
|
"framework-annotations-lib",
|
|
"framework-statsd",
|
|
"framework-bluetooth",
|
|
],
|
|
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",
|
|
"SettingsLibTopIntroPreference",
|
|
"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"],
|
|
required: ["privapp_allowlist_com.android.cellbroadcastreceiver.module.xml"],
|
|
}
|
|
|
|
// filegroup used to include source into unit tests
|
|
filegroup {
|
|
name: "cellbroadcastreceiver-sources",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
":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_allowlist_com.android.cellbroadcastreceiver.xml"],
|
|
}
|
|
|
|
// source file shared with legacy cellbroadcast app
|
|
filegroup {
|
|
name: "cellbroadcast-database-sources",
|
|
srcs: [
|
|
"src/com/android/cellbroadcastreceiver/CellBroadcastDatabaseHelper.java",
|
|
],
|
|
}
|