1# Copyright 2023 The Bazel Authors. All rights reserved. 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"""Providers for Android Sandboxed SDK rules.""" 16 17AndroidSandboxedSdkInfo = provider( 18 doc = "Provides information about a sandboxed Android SDK.", 19 fields = dict( 20 internal_apk_info = "ApkInfo for SDKs dexes and resources. Note: it cannot " + 21 "be installed on a device as is. It needs to be further processed by " + 22 "other sandboxed SDK rules.", 23 sdk_module_config = "The SDK Module config. For the full definition see " + 24 "https://github.com/google/bundletool/blob/master/src/main/proto/sdk_modules_config.proto", 25 sdk_api_descriptors = "Jar file with the SDK API Descriptors. This can later be used to " + 26 "generate sources for communicating with this SDK from the app " + 27 "process.", 28 ), 29) 30 31AndroidArchivedSandboxedSdkInfo = provider( 32 doc = "Provides information about an Android Sandboxed SDK archive.", 33 fields = dict( 34 asar = "Android Sandboxed SDK archive file, as generated by Bundletool.", 35 sdk_api_descriptors = "Jar file with the SDK API Descriptors. This can later be used to " + 36 "generate sources for communicating with this SDK from the app " + 37 "process.", 38 ), 39) 40 41AndroidSandboxedSdkBundleInfo = provider( 42 doc = "Provides information about a sandboxed Android SDK Bundle (ASB).", 43 fields = dict( 44 sdk_info = "AndroidSandboxedSdkInfo with information about the SDK.", 45 asb = "Path to the final ASB, unsigned.", 46 ), 47) 48