Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [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_visibility: [":__subpackages__"], |
Bob Badour | be5b707 | 2021-02-12 14:50:30 -0800 | [diff] [blame] | 17 | default_applicable_licenses: ["Android-Apache-2.0"], |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | apex { |
| 21 | name: "com.android.sdkext", |
Paul Duffin | c9d11fc | 2021-05-17 13:19:48 +0100 | [diff] [blame^] | 22 | defaults: ["com.android.sdkext-defaults"], |
satayev | 9a5c441 | 2021-05-12 13:30:40 +0100 | [diff] [blame] | 23 | bootclasspath_fragments: ["com.android.sdkext-bootclasspath-fragment"], |
satayev | be3f8ea | 2021-03-19 11:08:49 +0000 | [diff] [blame] | 24 | binaries: [ |
| 25 | "derive_classpath", |
| 26 | "derive_sdk", |
| 27 | ], |
Anton Hansson | 16097ea | 2021-01-12 20:34:32 +0000 | [diff] [blame] | 28 | prebuilts: [ |
| 29 | "cur_sdkinfo", |
| 30 | "extensions_db", |
| 31 | ], |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 32 | manifest: "manifest.json", |
Nikita Ioffe | 10c8718 | 2020-10-20 16:07:01 +0100 | [diff] [blame] | 33 | min_sdk_version: "30", |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | apex_defaults { |
| 37 | name: "com.android.sdkext-defaults", |
Jiyong Park | 78ad7d4 | 2020-02-24 18:36:46 +0900 | [diff] [blame] | 38 | updatable: true, |
Nikita Ioffe | 10c8718 | 2020-10-20 16:07:01 +0100 | [diff] [blame] | 39 | min_sdk_version: "30", |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 40 | prebuilts: [ |
satayev | be3f8ea | 2021-03-19 11:08:49 +0000 | [diff] [blame] | 41 | "derive_classpath.rc", |
Anton Hansson | 36e2b13 | 2019-12-19 12:10:53 +0000 | [diff] [blame] | 42 | "derive_sdk.rc", |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 43 | ], |
| 44 | key: "com.android.sdkext.key", |
| 45 | certificate: ":com.android.sdkext.certificate", |
| 46 | } |
| 47 | |
Anton Hansson | da4972f | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 48 | apex_key { |
| 49 | name: "com.android.sdkext.key", |
| 50 | public_key: "com.android.sdkext.avbpubkey", |
| 51 | private_key: "com.android.sdkext.pem", |
| 52 | } |
| 53 | |
| 54 | android_app_certificate { |
| 55 | name: "com.android.sdkext.certificate", |
| 56 | certificate: "com.android.sdkext", |
| 57 | } |
| 58 | |
Anton Hansson | 966175d | 2020-11-09 15:03:34 +0000 | [diff] [blame] | 59 | sdk { |
| 60 | name: "sdkextensions-sdk", |
| 61 | java_sdk_libs: ["framework-sdkextensions"], |
| 62 | } |
satayev | 9a5c441 | 2021-05-12 13:30:40 +0100 | [diff] [blame] | 63 | |
| 64 | // Encapsulate the contributions made by the com.android.sdkext to the bootclasspath. |
| 65 | bootclasspath_fragment { |
| 66 | name: "com.android.sdkext-bootclasspath-fragment", |
| 67 | contents: ["framework-sdkextensions"], |
| 68 | apex_available: ["com.android.sdkext"], |
| 69 | } |