Skip to main content

apple_resource_bundle

apple_resource_bundle

def apple_resource_bundle(
*,
name: str,
default_target_platform: None | str = None,
target_compatible_with: list[str] = [],
compatible_with: list[str] = [],
exec_compatible_with: list[str] = [],
visibility: list[str] = [],
within_view: list[str] = ["PUBLIC"],
metadata: OpaqueMetadata = {},
tests: list[str] = [],
modifiers: OpaqueMetadata = [],
_apple_platforms: dict[str, str] = {},
_apple_toolchain: str = "gh_facebook_buck2_shims_meta//:apple-resources",
_apple_tools: str = "prelude//apple/tools:apple-tools",
_bundle_target_name: str,
_compile_resources_locally_override: None | bool = None,
_info_plist_identify_build_system_default: bool = False,
asset_catalogs_compilation_options: dict[str, typing.Any] = {},
binary: None | str = None,
copy_public_framework_headers: None | bool = None,
deps: list[str] = [],
extension: str,
ibtool_flags: None | list[str] = None,
info_plist: str,
info_plist_identify_build_system: None | bool = None,
info_plist_substitutions: dict[str, str] = {},
labels: list[str] = [],
module_map: None | str = None,
privacy_manifest: None | str = None,
product_name: None | str = None,
product_name_from_module_name: bool = False,
resource_group: None | str = None,
resource_group_map: None | str = None,
universal: None | bool = None,
) -> None

Parameters

  • name: name of the target
  • default_target_platform: specifies the default target platform, used when no platforms are specified on the command line
  • target_compatible_with: a list of constraints that are required to be satisfied for this target to be compatible with a configuration
  • compatible_with: a list of constraints that are required to be satisfied for this target to be compatible with a configuration
  • exec_compatible_with: a list of constraints that are required to be satisfied for this target to be compatible with an execution platform
  • visibility: a list of visibility patterns restricting what targets can depend on this one
  • within_view: a list of visibility patterns restricting what this target can depend on
  • metadata: a key-value map of metadata associated with this target
  • tests: a list of targets that provide tests for this one
  • modifiers: an array of modifiers associated with this target