blob: 2c5b481d4d9582a74d3916c5f421ee318cbd0374 [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",
33 jni_libs: ["libcronet.80.0.3986.0"],
34 java_libs: ["org.chromium.net.cronet"],
35}
36
37apex_defaults {
38 name: "CronetApexDefaultsDisabled",
39}
40
Motomu Utsumiceb2a752022-10-04 18:38:04 +090041apex_defaults {
42 name: "com.android.cronet-defaults",
43 compile_multilib: "both",
44 jni_libs: ["libcronet.80.0.3986.0"],
45 java_libs: ["org.chromium.net.cronet"],
46 key: "com.android.cronet.key",
47 certificate: ":com.android.cronet.certificate",
48 updatable: false,
49 generate_hashtree: false,
50
51 // Use a custom AndroidManifest.xml used for API targeting.
52 androidManifest: ":cronet-manifest.xml",
53}
54
55filegroup {
56 name: "cronet-manifest.xml",
57 srcs: [
58 "AndroidManifest.xml",
59 ],
60}
61
62apex {
63 name: "com.android.cronet",
64 defaults: ["com.android.cronet-defaults"],
65 manifest: "manifest.json",
66}
67
68apex_key {
69 name: "com.android.cronet.key",
70 public_key: "com.android.cronet.avbpubkey",
71 private_key: "com.android.cronet.pem",
72}
73
74android_app_certificate {
75 name: "com.android.cronet.certificate",
76 certificate: "com.android.cronet",
77}