1// Copyright (C) 2014 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//
16// Mms service
17//
18package {
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22genrule {
23    name: "statslog-mms-java-gen",
24    tools: ["stats-log-api-gen"],
25    cmd: "$(location stats-log-api-gen) --java $(out) --module mms"
26        + " --javaPackage com.android.mms --javaClass MmsStatsLog",
27    out: ["com/android/mms/MmsStatsLog.java"],
28}
29
30java_library {
31    name: "mms-statsd",
32    srcs: [
33        ":statslog-mms-java-gen",
34    ],
35}
36
37android_app {
38    name: "MmsService",
39    platform_apis: true,
40    privileged: true,
41    srcs: ["src/**/*.java"],
42    libs: ["telephony-common"],
43    resource_dirs: ["res"],
44    aaptflags: ["--auto-add-overlay"],
45    optimize: {
46        proguard_flags_files: ["proguard.flags"],
47    },
48    certificate: "platform",
49    static_libs: [
50        "mms-protos-lite",
51        "mms-statsd",
52        "androidx.annotation_annotation",
53    ],
54}
55
56filegroup {
57    name: "mms-service-srcs",
58    srcs: [
59        "src/com/android/mms/service/**/*.java",
60    ],
61}
62