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 | |
Motomu Utsumi | 98a9820 | 2022-10-11 17:08:11 +0900 | [diff] [blame] | 19 | // CronetApexDefaults uses apex_defaults cronet_apex_defaults specifies. cronet_apex_defaults |
| 20 | // could be "CronetApexDefaultsEnabled" or "CronetApexDefaultsDisabled" depending on the branch. |
| 21 | cronet_apex_defaults = "CronetApexDefaultsEnabled" |
| 22 | // This is a placeholder comment to avoid merge conflicts |
| 23 | // as cronet_apex_defaults may have different values |
| 24 | // depending on the branch |
| 25 | |
| 26 | apex_defaults { |
| 27 | name: "CronetApexDefaults", |
| 28 | defaults: [cronet_apex_defaults], |
| 29 | } |
| 30 | |
| 31 | apex_defaults { |
| 32 | name: "CronetApexDefaultsEnabled", |
Patrick Rohr | 0f2ef7c | 2022-09-29 00:11:55 -0700 | [diff] [blame] | 33 | jni_libs: ["libcronet.107.0.5284.2"], |
Motomu Utsumi | 6dca85d | 2022-10-11 18:32:15 +0900 | [diff] [blame] | 34 | java_libs: ["framework-cronet"], |
Colin Cross | 9942396 | 2022-11-02 16:24:30 +0000 | [diff] [blame] | 35 | arch: { |
| 36 | riscv64: { |
Colin Cross | 72c813e | 2022-11-04 04:22:40 +0000 | [diff] [blame] | 37 | // TODO: remove this when there is a riscv64 libcronet |
| 38 | exclude_jni_libs: ["libcronet.107.0.5284.2"], |
Colin Cross | 9942396 | 2022-11-02 16:24:30 +0000 | [diff] [blame] | 39 | }, |
| 40 | }, |
Motomu Utsumi | 98a9820 | 2022-10-11 17:08:11 +0900 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | apex_defaults { |
| 44 | name: "CronetApexDefaultsDisabled", |
| 45 | } |
| 46 | |
Motomu Utsumi | 402b18d | 2022-10-11 17:21:41 +0900 | [diff] [blame] | 47 | // TODO: Remove cronet apex after com.android.cronet is removed from PRODUCT_PACKAGES |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 48 | apex { |
| 49 | name: "com.android.cronet", |
Motomu Utsumi | 402b18d | 2022-10-11 17:21:41 +0900 | [diff] [blame] | 50 | key: "com.android.cronet.key", |
| 51 | updatable: false, |
Motomu Utsumi | ceb2a75 | 2022-10-04 18:38:04 +0900 | [diff] [blame] | 52 | manifest: "manifest.json", |
| 53 | } |
| 54 | |
| 55 | apex_key { |
| 56 | name: "com.android.cronet.key", |
| 57 | public_key: "com.android.cronet.avbpubkey", |
| 58 | private_key: "com.android.cronet.pem", |
| 59 | } |