samalin | e287764 | 2020-12-21 17:33:02 +0800 | [diff] [blame] | 1 | // |
Meng Wang | 150f868 | 2021-01-16 10:20:52 -0800 | [diff] [blame] | 2 | // Copyright (C) 2021 The Android Open Source Project |
samalin | e287764 | 2020-12-21 17:33:02 +0800 | [diff] [blame] | 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. |
Meng Wang | 941c588 | 2021-02-10 19:49:26 -0800 | [diff] [blame] | 15 | |
Bob Badour | b73e510 | 2021-03-01 21:10:57 -0800 | [diff] [blame] | 16 | package { |
| 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 18 | } |
| 19 | |
Meng Wang | 941c588 | 2021-02-10 19:49:26 -0800 | [diff] [blame] | 20 | java_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 | |
samalin | e287764 | 2020-12-21 17:33:02 +0800 | [diff] [blame] | 31 | java_library { |
Meng Wang | 941c588 | 2021-02-10 19:49:26 -0800 | [diff] [blame] | 32 | defaults: ["service-entitlement-defaults"], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 33 | name: "service-entitlement-impl", |
| 34 | visibility: [ |
| 35 | "//visibility:private" |
| 36 | ], |
samalin | e287764 | 2020-12-21 17:33:02 +0800 | [diff] [blame] | 37 | srcs: [ |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 38 | "java/com/android/libraries/entitlement/eapaka/*.java", |
| 39 | "java/com/android/libraries/entitlement/http/*.java", |
| 40 | "java/com/android/libraries/entitlement/utils/*.java", |
samalin | e287764 | 2020-12-21 17:33:02 +0800 | [diff] [blame] | 41 | ], |
samalin | b7eabb0 | 2020-12-26 01:08:36 +0800 | [diff] [blame] | 42 | static_libs: [ |
| 43 | "guava", |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 44 | "service-entitlement-data", |
| 45 | ], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | java_library { |
Meng Wang | 941c588 | 2021-02-10 19:49:26 -0800 | [diff] [blame] | 49 | defaults: ["service-entitlement-defaults"], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 50 | name: "service-entitlement", |
| 51 | static_libs: [ |
| 52 | "service-entitlement-api", |
| 53 | "service-entitlement-data", |
| 54 | ], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | java_library { |
Meng Wang | 941c588 | 2021-02-10 19:49:26 -0800 | [diff] [blame] | 58 | defaults: ["service-entitlement-defaults"], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 59 | name: "service-entitlement-api", |
| 60 | visibility: [ |
| 61 | "//visibility:private", |
| 62 | ], |
| 63 | srcs: [ |
| 64 | "java/com/android/libraries/entitlement/ServiceEntitlement.java", |
Meng Wang | 1e4ed2d | 2021-02-17 12:04:07 -0800 | [diff] [blame] | 65 | "java/com/android/libraries/entitlement/EapAkaHelper.java", |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 66 | ], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 67 | static_libs: [ |
| 68 | "guava", |
| 69 | "service-entitlement-data", |
| 70 | "service-entitlement-impl", |
| 71 | |
| 72 | ], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | java_library { |
Meng Wang | 941c588 | 2021-02-10 19:49:26 -0800 | [diff] [blame] | 76 | defaults: ["service-entitlement-defaults"], |
samalin | 088870c | 2021-01-29 03:34:47 +0800 | [diff] [blame] | 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 | ], |
samalin | e287764 | 2020-12-21 17:33:02 +0800 | [diff] [blame] | 87 | } |