1// Copyright (C) 2021 The Android Open Source Project 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 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19genrule { 20 name: "statslog-imsentitlement-java-gen", 21 tools: ["stats-log-api-gen"], 22 cmd: "$(location stats-log-api-gen) --java $(out) --module imsentitlement --javaPackage com.android.imsserviceentitlement --javaClass ImsServiceEntitlementStatsLog", 23 out: ["com/android/imsserviceentitlement/ImsServiceEntitlementStatsLog.java"], 24} 25 26// Library isn't proguard optimized, suitable for unit test 27android_library { 28 name: "ImsServiceEntitlementLib", 29 static_libs: [ 30 "androidx.annotation_annotation", 31 "androidx.fragment_fragment", 32 "service-entitlement", 33 "setupdesign", 34 "guava", 35 "firebase-encoders-jar", 36 "firebase-common-aar", 37 "firebase-components-aar", 38 "firebase-iid-aar", 39 "firebase-iid-interop-aar", 40 "firebase-installations-aar", 41 "firebase-installations-interop-aar", 42 "firebase-messaging-aar", 43 "play-services-basement-aar", 44 "play-services-cloud-messaging-aar", 45 "play-services-tasks-aar", 46 "transport-api-aar", 47 "firebase-measurement-connector-aar", 48 "firebase-encoders-json-aar", 49 "firebase-datatransport-aar", 50 "play-services-stats-aar", 51 "transport-runtime-aar", 52 "transport-backend-cct-aar", 53 "jsr330", 54 "dagger2", 55 ], 56 libs: [ 57 "auto_value_annotations", 58 ], 59 plugins: ["auto_value_plugin"], 60 resource_dirs: ["res"], 61 srcs: [ 62 "src/**/*.java", 63 ":statslog-imsentitlement-java-gen", 64 ], 65 sdk_version: "system_current", 66} 67 68android_app { 69 name: "ImsServiceEntitlement", 70 static_libs: [ 71 "ImsServiceEntitlementLib", 72 ], 73 resource_dirs: [], 74 optimize: { 75 proguard_flags_files: ["proguard.flags"], 76 }, 77 product_specific: true, 78 sdk_version: "system_current", 79 privileged: true, 80 required: ["privapp_whitelist_com.android.imsserviceentitlement"], 81} 82