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    ],
26    plugins: ["auto_value_plugin"],
27    sdk_version: "system_current",
28    min_sdk_version: "29",
29}
30
31java_library {
32    defaults: ["service-entitlement-defaults"],
33    name: "service-entitlement-impl",
34    visibility: [
35        "//visibility:private"
36    ],
37    srcs: [
38        "java/com/android/libraries/entitlement/eapaka/*.java",
39        "java/com/android/libraries/entitlement/http/*.java",
40        "java/com/android/libraries/entitlement/utils/*.java",
41    ],
42    static_libs: [
43        "guava",
44        "service-entitlement-data",
45    ],
46}
47
48java_library {
49    defaults: ["service-entitlement-defaults"],
50    name: "service-entitlement",
51    static_libs: [
52        "service-entitlement-api",
53        "service-entitlement-data",
54    ],
55}
56
57java_library {
58    defaults: ["service-entitlement-defaults"],
59    name: "service-entitlement-api",
60    visibility: [
61        "//visibility:private",
62    ],
63    srcs: [
64        "java/com/android/libraries/entitlement/ServiceEntitlement.java",
65        "java/com/android/libraries/entitlement/EapAkaHelper.java",
66    ],
67    static_libs: [
68        "guava",
69        "service-entitlement-data",
70        "service-entitlement-impl",
71
72    ],
73}
74
75java_library {
76    defaults: ["service-entitlement-defaults"],
77    name: "service-entitlement-data",
78    visibility: [
79        "//visibility:private",
80    ],
81    srcs: [
82        "java/com/android/libraries/entitlement/CarrierConfig.java",
83        "java/com/android/libraries/entitlement/EsimOdsaOperation.java",
84        "java/com/android/libraries/entitlement/ServiceEntitlementException.java",
85        "java/com/android/libraries/entitlement/ServiceEntitlementRequest.java",
86    ],
87}
88