xref: /aosp_15_r20/external/ims/rcs/presencepolling/Android.bp (revision 060f4407e8083d867a85d4a869747d9905816290)
1*060f4407SAndroid Build Coastguard Worker// Copyright (c) 2015, Motorola Mobility LLC
2*060f4407SAndroid Build Coastguard Worker// All rights reserved.
3*060f4407SAndroid Build Coastguard Worker//
4*060f4407SAndroid Build Coastguard Worker// Redistribution and use in source and binary forms, with or without
5*060f4407SAndroid Build Coastguard Worker// modification, are permitted provided that the following conditions are met:
6*060f4407SAndroid Build Coastguard Worker//     - Redistributions of source code must retain the above copyright
7*060f4407SAndroid Build Coastguard Worker//       notice, this list of conditions and the following disclaimer.
8*060f4407SAndroid Build Coastguard Worker//     - Redistributions in binary form must reproduce the above copyright
9*060f4407SAndroid Build Coastguard Worker//       notice, this list of conditions and the following disclaimer in the
10*060f4407SAndroid Build Coastguard Worker//       documentation and/or other materials provided with the distribution.
11*060f4407SAndroid Build Coastguard Worker//     - Neither the name of Motorola Mobility nor the
12*060f4407SAndroid Build Coastguard Worker//       names of its contributors may be used to endorse or promote products
13*060f4407SAndroid Build Coastguard Worker//       derived from this software without specific prior written permission.
14*060f4407SAndroid Build Coastguard Worker//
15*060f4407SAndroid Build Coastguard Worker// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16*060f4407SAndroid Build Coastguard Worker// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17*060f4407SAndroid Build Coastguard Worker// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18*060f4407SAndroid Build Coastguard Worker// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MOTOROLA MOBILITY LLC BE LIABLE
19*060f4407SAndroid Build Coastguard Worker// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*060f4407SAndroid Build Coastguard Worker// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*060f4407SAndroid Build Coastguard Worker// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*060f4407SAndroid Build Coastguard Worker// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*060f4407SAndroid Build Coastguard Worker// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*060f4407SAndroid Build Coastguard Worker// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25*060f4407SAndroid Build Coastguard Worker// DAMAGE.
26*060f4407SAndroid Build Coastguard Worker
27*060f4407SAndroid Build Coastguard Workerpackage {
28*060f4407SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_ims_rcs_presencepolling_license"],
29*060f4407SAndroid Build Coastguard Worker}
30*060f4407SAndroid Build Coastguard Worker
31*060f4407SAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
32*060f4407SAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
33*060f4407SAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
34*060f4407SAndroid Build Coastguard Worker//
35*060f4407SAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
36*060f4407SAndroid Build Coastguard Worker//
37*060f4407SAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
38*060f4407SAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
39*060f4407SAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
40*060f4407SAndroid Build Coastguard Worker//
41*060f4407SAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private"
42*060f4407SAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
43*060f4407SAndroid Build Coastguard Worker// used in the current project.
44*060f4407SAndroid Build Coastguard Worker// See: http://go/android-license-faq
45*060f4407SAndroid Build Coastguard Workerlicense {
46*060f4407SAndroid Build Coastguard Worker    name: "external_ims_rcs_presencepolling_license",
47*060f4407SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
48*060f4407SAndroid Build Coastguard Worker    license_kinds: [
49*060f4407SAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
50*060f4407SAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
51*060f4407SAndroid Build Coastguard Worker    ],
52*060f4407SAndroid Build Coastguard Worker    license_text: [
53*060f4407SAndroid Build Coastguard Worker        "LICENSE",
54*060f4407SAndroid Build Coastguard Worker    ],
55*060f4407SAndroid Build Coastguard Worker}
56*060f4407SAndroid Build Coastguard Worker
57*060f4407SAndroid Build Coastguard Workerjava_defaults {
58*060f4407SAndroid Build Coastguard Worker    name: "presence_polling_defaults",
59*060f4407SAndroid Build Coastguard Worker    srcs: ["src/**/*.java"],
60*060f4407SAndroid Build Coastguard Worker    static_libs: ["com.android.ims.rcsmanager"],
61*060f4407SAndroid Build Coastguard Worker    certificate: "platform",
62*060f4407SAndroid Build Coastguard Worker    system_ext_specific: true,
63*060f4407SAndroid Build Coastguard Worker    platform_apis: true,
64*060f4407SAndroid Build Coastguard Worker    optimize: {
65*060f4407SAndroid Build Coastguard Worker        proguard_flags_files: ["proguard.flags"],
66*060f4407SAndroid Build Coastguard Worker    },
67*060f4407SAndroid Build Coastguard Worker}
68*060f4407SAndroid Build Coastguard Worker
69*060f4407SAndroid Build Coastguard Workerandroid_app {
70*060f4407SAndroid Build Coastguard Worker    name: "PresencePolling",
71*060f4407SAndroid Build Coastguard Worker    defaults: ["presence_polling_defaults"],
72*060f4407SAndroid Build Coastguard Worker}
73*060f4407SAndroid Build Coastguard Worker
74*060f4407SAndroid Build Coastguard Workerandroid_test_helper_app {
75*060f4407SAndroid Build Coastguard Worker    name: "PresencePollingTestHelper",
76*060f4407SAndroid Build Coastguard Worker    defaults: ["presence_polling_defaults"],
77*060f4407SAndroid Build Coastguard Worker    test_suites: ["device-tests"],
78*060f4407SAndroid Build Coastguard Worker}
79