apple_resource_bundle
Function Signature
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
: (required)name of the target
-
default_target_platform
: (defaults to:None
)specifies the default target platform, used when no platforms are specified on the command line
-
target_compatible_with
: (defaults to:[]
)a list of constraints that are required to be satisfied for this target to be compatible with a configuration
-
compatible_with
: (defaults to:[]
)a list of constraints that are required to be satisfied for this target to be compatible with a configuration
-
exec_compatible_with
: (defaults to:[]
)a list of constraints that are required to be satisfied for this target to be compatible with an execution platform
-
visibility
: (defaults to:[]
)a list of visibility patterns restricting what targets can depend on this one
-
within_view
: (defaults to:["PUBLIC"]
)a list of visibility patterns restricting what this target can depend on
-
metadata
: (defaults to:{}
)a key-value map of metadata associated with this target
-
tests
: (defaults to:[]
)a list of targets that provide tests for this one
-
modifiers
: (defaults to:[]
)an array of modifiers associated with this target
-
asset_catalogs_compilation_options
: (defaults to:{}
)A dict holding parameters for asset catalogs compiler (actool). Its options include:
notices
(defaults toTrue
)warnings
(defaults toTrue
)errors
(defaults toTrue
)compress_pngs
(defaults toTrue
)optimization
(defaults to'space'
)output_format
(defaults to'human-readable-text'
)extra_flags
(defaults to[]
)
-
info_plist_substitutions
: (defaults to:{}
)A dictionary that assigns variable names to their values. It is used for variable substitution when processing the file specified in
info_plist
. For example if this argument is set to{'VAR': 'MyValue'}
, then each occurrence of$(VAR)
or${VAR}
in the file will be replaced byMyValue
.