1// Copyright 2019 The Android Open Source Project
2java_defaults {
3    name: "CellBroadcastServiceCommon",
4    min_sdk_version: "29",
5    srcs: [
6      "src/**/*.java",
7      ":framework-annotations",
8      ":framework-cellbroadcast-shared-srcs",
9    ],
10    libs: [
11        "telephony-common",
12        "unsupportedappusage",
13    ],
14    platform_apis: true,
15    certificate: "platform",
16    privileged: true,
17    resource_dirs: ["res"],
18    optimize: {
19        proguard_flags_files: ["proguard.flags"],
20    },
21    jarjar_rules: "cellbroadcast-jarjar-rules.txt",
22    plugins: ["java_api_finder"],
23}
24
25android_app {
26    name: "CellBroadcastServiceModule",
27    defaults: ["CellBroadcastServiceCommon"],
28    certificate: "networkstack",
29    manifest: "AndroidManifest.xml",
30}
31
32android_app {
33     name: "CellBroadcastServiceModulePlatform",
34     defaults: ["CellBroadcastServiceCommon"],
35     certificate: "platform",
36     // CellBroadcastServicePlatformModule is a replacement for com.android.cellbroadcast apex
37     // which consists of CellBroadcastServiceModule
38     overrides: ["com.android.cellbroadcast"],
39     manifest: "AndroidManifest_Platform.xml",
40}
41
42// used to share common constants between cellbroadcastservice and cellbroadcastreceier
43filegroup {
44    name: "cellbroadcast-constants-shared-srcs",
45    srcs: [
46        "src/com/android/cellbroadcastservice/SmsCbConstants.java",
47    ],
48}
49
50// used to share src with cellbroadcastreceiver test app
51filegroup {
52    name: "cellbroadcast-util-shared-srcs",
53    srcs: [
54        "src/com/android/cellbroadcastservice/GsmAlphabet.java",
55        "src/com/android/cellbroadcastservice/CbGeoUtils.java",
56        "src/com/android/cellbroadcastservice/SmsCbHeader.java",
57    ],
58}
59
60// used to share src with unit test app
61filegroup {
62    name: "cellbroadcast-shared-srcs",
63    srcs: [
64        "src/**/*.java",
65        ":framework-cellbroadcast-shared-srcs",
66    ],
67}
68