1// Copyright (c) 2015, Motorola Mobility LLC
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are met:
6//     - Redistributions of source code must retain the above copyright
7//       notice, this list of conditions and the following disclaimer.
8//     - Redistributions in binary form must reproduce the above copyright
9//       notice, this list of conditions and the following disclaimer in the
10//       documentation and/or other materials provided with the distribution.
11//     - Neither the name of Motorola Mobility nor the
12//       names of its contributors may be used to endorse or promote products
13//       derived from this software without specific prior written permission.
14//
15// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MOTOROLA MOBILITY LLC BE LIABLE
19// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25// DAMAGE.
26
27//#########################################################################
28// Build the application : Presence.apk
29//#########################################################################
30
31package {
32    default_applicable_licenses: ["external_ims_rcs_rcsservice_license"],
33}
34
35// Added automatically by a large-scale-change
36// See: http://go/android-license-faq
37license {
38    name: "external_ims_rcs_rcsservice_license",
39    visibility: [":__subpackages__"],
40    license_kinds: [
41        "SPDX-license-identifier-BSD",
42    ],
43    license_text: [
44        "LICENSE",
45    ],
46}
47
48java_library {
49    name: "ucepresencelib",
50    // We only want this to be used as a static import.
51    installable: false,
52    srcs: [
53        "src/com/android/service/ims/presence/*.java",
54        "src/com/android/service/ims/RcsSettingUtils.java",
55        "src/com/android/service/ims/Task.java",
56        "src/com/android/service/ims/TaskManager.java",
57        ":rcsmanager-utils"
58    ]
59}
60
61android_app {
62    // This is the target being built. (Name of APK)
63    name: "RcsService",
64    // Only compile source java files in this apk.
65    srcs: [
66        "src/com/android/service/ims/AlarmBroadcastReceiver.java",
67        "src/com/android/service/ims/DeviceShutdown.java",
68        "src/com/android/service/ims/LauncherUtils.java",
69        "src/com/android/service/ims/PresenceInfoParser.java",
70        "src/com/android/service/ims/RcsService.java",
71        "src/com/android/service/ims/RcsServiceApp.java",
72        "src/com/android/service/ims/RcsStackAdaptor.java",
73        "src/com/android/service/ims/RcsUtils.java",
74        "src/com/android/service/ims/StackListener.java"
75    ],
76    static_libs: [
77        "ucepresencelib",
78        "com.android.ims.rcsmanager"
79    ],
80    certificate: "platform",
81    system_ext_specific: true,
82    platform_apis: true,
83}
84