Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame^] | 1 | // Copyright (C) 2019 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 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
| 19 | apex_defaults { |
| 20 | name: "com.android.cronet-defaults", |
| 21 | compile_multilib: "both", |
| 22 | jni_libs: ["libcronet.80.0.3986.0"], |
| 23 | java_libs: ["org.chromium.net.cronet"], |
| 24 | key: "com.android.cronet.key", |
| 25 | certificate: ":com.android.cronet.certificate", |
| 26 | updatable: false, |
| 27 | generate_hashtree: false, |
| 28 | |
| 29 | // Use a custom AndroidManifest.xml used for API targeting. |
| 30 | androidManifest: ":cronet-manifest.xml", |
| 31 | } |
| 32 | |
| 33 | filegroup { |
| 34 | name: "cronet-manifest.xml", |
| 35 | srcs: [ |
| 36 | "AndroidManifest.xml", |
| 37 | ], |
| 38 | } |
| 39 | |
| 40 | apex { |
| 41 | name: "com.android.cronet", |
| 42 | defaults: ["com.android.cronet-defaults"], |
| 43 | manifest: "manifest.json", |
| 44 | } |
| 45 | |
| 46 | apex_key { |
| 47 | name: "com.android.cronet.key", |
| 48 | public_key: "com.android.cronet.avbpubkey", |
| 49 | private_key: "com.android.cronet.pem", |
| 50 | } |
| 51 | |
| 52 | android_app_certificate { |
| 53 | name: "com.android.cronet.certificate", |
| 54 | certificate: "com.android.cronet", |
| 55 | } |