blob: 180dafb95c96ef48d6df653532193b40f73d2ecf [file] [log] [blame]
Motomu Utsumiceb2a752022-10-04 18:38:04 +09001// 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
15package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Motomu Utsumi98a98202022-10-11 17:08:11 +090019// CronetApexDefaults uses apex_defaults cronet_apex_defaults specifies. cronet_apex_defaults
20// could be "CronetApexDefaultsEnabled" or "CronetApexDefaultsDisabled" depending on the branch.
21cronet_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
26apex_defaults {
27 name: "CronetApexDefaults",
28 defaults: [cronet_apex_defaults],
29}
30
31apex_defaults {
32 name: "CronetApexDefaultsEnabled",
Patrick Rohr0f2ef7c2022-09-29 00:11:55 -070033 jni_libs: ["libcronet.107.0.5284.2"],
Motomu Utsumi6dca85d2022-10-11 18:32:15 +090034 java_libs: ["framework-cronet"],
Colin Cross99423962022-11-02 16:24:30 +000035 arch: {
36 riscv64: {
Colin Cross72c813e2022-11-04 04:22:40 +000037 // TODO: remove this when there is a riscv64 libcronet
38 exclude_jni_libs: ["libcronet.107.0.5284.2"],
Colin Cross99423962022-11-02 16:24:30 +000039 },
40 },
Motomu Utsumi98a98202022-10-11 17:08:11 +090041}
42
43apex_defaults {
44 name: "CronetApexDefaultsDisabled",
45}
46
Motomu Utsumi402b18d2022-10-11 17:21:41 +090047// TODO: Remove cronet apex after com.android.cronet is removed from PRODUCT_PACKAGES
Motomu Utsumiceb2a752022-10-04 18:38:04 +090048apex {
49 name: "com.android.cronet",
Motomu Utsumi402b18d2022-10-11 17:21:41 +090050 key: "com.android.cronet.key",
51 updatable: false,
Motomu Utsumiceb2a752022-10-04 18:38:04 +090052 manifest: "manifest.json",
53}
54
55apex_key {
56 name: "com.android.cronet.key",
57 public_key: "com.android.cronet.avbpubkey",
58 private_key: "com.android.cronet.pem",
59}