This is liable to change in the future.An
apple_resource()rule contains sets of resource directories, files and file variants that can be bundled in an application bundle. This rule does not have any output on its own and can be built only as a dependency (either direct or transitive) of an
The name of the rule.
Set of paths of resource directories that should be placed in an application bundle.
Set of paths of resource files that should be placed in an application bundle.
Set of paths of resource file variants that should be placed in an application bundle. The files mentioned here should be placed in a directory named
$VARIANT_NAMEis the name of the variant (e.g.
en). This argument makes it possible to use different resource files based on the active locale.
Set of build targets whose transitive
apple_resources should be considered as part of the current resource when collecting resources for bundles. Usually, an
apple_resourcerules transitively reachable through apple_library rules. This field allows for resources which are not reachable using the above traversal strategy to be considered for inclusion in the bundle.
List of build target patterns that identify the build rules that can include this rule as a dependency, for example, by listing it in their
exported_depsattributes. For more information, see visibility.
apple_resource( name = 'Images', files = glob([ '*.png', ]), dirs = [ 'PrettyImages', ], )