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 15package { 16 default_visibility: [":__subpackages__"], 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20apex { 21 name: "com.android.sdkext", 22 defaults: ["com.android.sdkext-defaults"], 23 bootclasspath_fragments: ["com.android.sdkext-bootclasspath-fragment"], 24 binaries: [ 25 "derive_classpath", 26 "derive_sdk", 27 ], 28 prebuilts: [ 29 "current_sdkinfo", 30 "extensions_db", 31 ], 32 manifest: "manifest.json", 33 min_sdk_version: "30", 34} 35 36apex_defaults { 37 name: "com.android.sdkext-defaults", 38 updatable: true, 39 min_sdk_version: "30", 40 prebuilts: [ 41 "derive_classpath.rc", 42 "derive_sdk.rc", 43 ], 44 key: "com.android.sdkext.key", 45 certificate: ":com.android.sdkext.certificate", 46} 47 48apex_key { 49 name: "com.android.sdkext.key", 50 public_key: "com.android.sdkext.avbpubkey", 51 private_key: "com.android.sdkext.pem", 52} 53 54android_app_certificate { 55 name: "com.android.sdkext.certificate", 56 certificate: "com.android.sdkext", 57} 58 59sdk { 60 name: "sdkextensions-sdk", 61 bootclasspath_fragments: ["com.android.sdkext-bootclasspath-fragment"], 62} 63 64// Encapsulate the contributions made by the com.android.sdkext to the bootclasspath. 65bootclasspath_fragment { 66 name: "com.android.sdkext-bootclasspath-fragment", 67 contents: ["framework-sdkextensions"], 68 apex_available: ["com.android.sdkext"], 69 70 // The bootclasspath_fragments that provide APIs on which this depends. 71 fragments: [ 72 { 73 apex: "com.android.art", 74 module: "art-bootclasspath-fragment", 75 }, 76 ], 77} 78