1// 2// Copyright (C) 2021 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 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_defaults { 21 name: "service-entitlement-defaults", 22 libs: [ 23 "androidx.annotation_annotation", 24 "auto_value_annotations", 25 "error_prone_annotations", 26 ], 27 plugins: ["auto_value_plugin"], 28 sdk_version: "system_current", 29 min_sdk_version: "29", 30} 31 32java_library { 33 defaults: ["service-entitlement-defaults"], 34 name: "service-entitlement-impl", 35 visibility: [ 36 "//visibility:private", 37 ], 38 srcs: [ 39 "java/com/android/libraries/entitlement/eapaka/*.java", 40 "java/com/android/libraries/entitlement/http/*.java", 41 ], 42 static_libs: [ 43 "guava", 44 "service-entitlement-data", 45 ], 46 apex_available: [ 47 "//apex_available:platform", 48 "com.android.wifi", 49 ], 50} 51 52java_library { 53 defaults: ["service-entitlement-defaults"], 54 name: "service-entitlement", 55 static_libs: [ 56 "service-entitlement-api", 57 "service-entitlement-data", 58 ], 59 apex_available: [ 60 "//apex_available:platform", 61 "com.android.wifi", 62 ], 63} 64 65java_library { 66 defaults: ["service-entitlement-defaults"], 67 name: "service-entitlement-api", 68 visibility: [ 69 "//visibility:private", 70 ], 71 srcs: [ 72 "java/com/android/libraries/entitlement/ServiceEntitlement.java", 73 "java/com/android/libraries/entitlement/EapAkaHelper.java", 74 "java/com/android/libraries/entitlement/Ts43Authentication.java", 75 "java/com/android/libraries/entitlement/Ts43Operation.java", 76 ], 77 static_libs: [ 78 "guava", 79 "service-entitlement-data", 80 "service-entitlement-impl", 81 82 ], 83 apex_available: [ 84 "//apex_available:platform", 85 "com.android.wifi", 86 ], 87 lint: { 88 baseline_filename: "lint-baseline.xml", 89 }, 90} 91 92java_library { 93 defaults: ["service-entitlement-defaults"], 94 name: "service-entitlement-data", 95 visibility: [ 96 "//visibility:private", 97 ], 98 srcs: [ 99 "java/com/android/libraries/entitlement/CarrierConfig.java", 100 "java/com/android/libraries/entitlement/EsimOdsaOperation.java", 101 "java/com/android/libraries/entitlement/ServiceEntitlementException.java", 102 "java/com/android/libraries/entitlement/ServiceEntitlementRequest.java", 103 "java/com/android/libraries/entitlement/odsa/*.java", 104 "java/com/android/libraries/entitlement/utils/*.java", 105 ], 106 static_libs: [ 107 "guava", 108 ], 109 apex_available: [ 110 "//apex_available:platform", 111 "com.android.wifi", 112 ], 113} 114