1/** 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21android_library { 22 name: "imsmedia-core", 23 srcs: [ 24 "src/**/*.java", 25 "src/**/*.aidl", 26 ], 27 aidl: { 28 include_dirs: [ 29 "packages/modules/ImsMedia/framework/src", 30 ], 31 }, 32 libs: [ 33 "android-support-annotations", 34 "androidx.annotation_annotation", 35 "keepanno-annotations", 36 ], 37 static_libs: [ 38 "android.hardware.radio.ims.media-V1-java", 39 // TODO: move this to libs after API review 40 "ImsMediaFramework", 41 ], 42 platform_apis: true, 43} 44 45android_app { 46 name: "ImsMediaService", 47 system_ext_specific: true, 48 manifest: "AndroidManifest.xml", 49 static_libs: [ 50 "imsmedia-core", 51 ], 52 required: [ 53 "libimsmedia", 54 ], 55 dex_preopt: { 56 enabled: false, 57 }, 58 asset_dirs: [ 59 "assets" 60 ], 61 62 privileged: true, 63 certificate: "platform", 64 platform_apis: true, 65} 66