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 ], 36 static_libs: [ 37 "android.hardware.radio.ims.media-V1-java", 38 // TODO: move this to libs after API review 39 "ImsMediaFramework", 40 ], 41 platform_apis: true, 42} 43 44android_app { 45 name: "ImsMediaService", 46 system_ext_specific: true, 47 manifest: "AndroidManifest.xml", 48 static_libs: [ 49 "imsmedia-core", 50 ], 51 required: [ 52 "libimsmedia", 53 ], 54 optimize: { 55 enabled: false, 56 }, 57 dex_preopt: { 58 enabled: false, 59 }, 60 asset_dirs: [ 61 "assets" 62 ], 63 64 privileged: true, 65 certificate: "platform", 66 platform_apis: true, 67} 68