1// Copyright 2018 Google Inc. All rights reserved. 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 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: [ 18 "Android-Apache-2.0", 19 "frameworks_opt_telephony_license", 20 ], 21} 22 23license { 24 name: "frameworks_opt_telephony_license", 25 visibility: [":__subpackages__"], 26 license_kinds: [ 27 "legacy_not_a_contribution", 28 ], 29} 30 31filegroup { 32 name: "opt-telephony-srcs", 33 srcs: [ 34 "src/java/android/telephony/**/*.java", 35 ], 36 path: "src/java", 37} 38 39filegroup { 40 name: "opt-telephony-htmls", 41 srcs: [ 42 "src/java/android/telephony/**/*.html", 43 ], 44} 45 46filegroup { 47 name: "opt-telephony-common-srcs", 48 srcs: [ 49 "src/java/**/*.java", 50 ], 51 path: "src/java", 52} 53 54filegroup { 55 name: "jarjar-rules-shared", 56 srcs: ["jarjar-rules-shared.txt"], 57} 58 59java_library { 60 name: "telephony-common", 61 installable: true, 62 63 aidl: { 64 local_include_dirs: ["src/java"], 65 }, 66 srcs: [ 67 ":opt-telephony-common-srcs", 68 ":framework-telephony-common-shared-srcs", 69 ":net-utils-telephony-common-srcs", 70 ":statslog-cellbroadcast-java-gen", 71 "src/java/**/I*.aidl", 72 "src/java/**/*.logtags", 73 ], 74 75 jarjar_rules: ":jarjar-rules-shared", 76 77 libs: [ 78 "android.hardware.radio-V1.0-java", 79 "android.hardware.radio-V1.1-java", 80 "android.hardware.radio-V1.2-java", 81 "android.hardware.radio-V1.3-java", 82 "android.hardware.radio-V1.4-java", 83 "android.hardware.radio-V1.5-java", 84 "android.hardware.radio-V1.6-java", 85 "android.hardware.radio.config-V3-java", 86 "android.hardware.radio.data-V3-java", 87 "android.hardware.radio.ims-V2-java", 88 "android.hardware.radio.messaging-V3-java", 89 "android.hardware.radio.modem-V3-java", 90 "android.hardware.radio.network-V3-java", 91 "android.hardware.radio.sim-V3-java", 92 "android.hardware.radio.voice-V3-java", 93 "voip-common", 94 "ims-common", 95 "unsupportedappusage", 96 ], 97 static_libs: [ 98 "android.hardware.radio.config-V1.0-java-shallow", 99 "android.hardware.radio.config-V1.1-java-shallow", 100 "android.hardware.radio.config-V1.2-java-shallow", 101 "android.hardware.radio.config-V1.3-java-shallow", 102 "ecc-protos-lite", 103 "libphonenumber-nogeocoder", 104 "PlatformProperties", 105 "net-utils-framework-common", 106 "telephony-protos", 107 "modules-utils-build_system", 108 "modules-utils-fastxmlserializer", 109 "modules-utils-statemachine", 110 "services-config-update", 111 ], 112 113 optimize: { 114 enabled: true, 115 shrink: true, 116 obfuscate: false, 117 proguard_flags_files: ["proguard.flags"], 118 }, 119} 120