AndroidAssetsInfo

Information about the Android assets provided by a rule.

AndroidAssetsInfo

AndroidAssetsInfo AndroidAssetsInfo(label, validation_result, direct_parsed_assets, transitive_parsed_assets, transitive_assets, transitive_symbols, transitive_compiled_symbols)

The AndroidAssetsInfo constructor.

Parameters

Parameter Description
label

Label

The label of the target.

validation_result

File

An artifact of the validation result.

direct_parsed_assets

depset of ParsedAndroidAssetsApis

A depset of all the parsed assets in the target.

transitive_parsed_assets

depset of ParsedAndroidAssetsApis

A depset of all the parsed assets in the transitive closure.

transitive_assets

depset of Files

A depset of all the assets in the transitive closure.

transitive_symbols

depset of Files

A depset of all the symbols in the transitive closure.

transitive_compiled_symbols

depset of Files

A depset of all the compiled symbols in the transitive closure.

local_asset_dir

string AndroidAssetsInfo.local_asset_dir

Returns the local asset directory for the target. May return None.

local_assets

list AndroidAssetsInfo.local_assets

Returns the local assets for the target. May return None.

to_json

string AndroidAssetsInfo.to_json()

Creates a JSON string from the struct parameter. This method only works if all struct elements (recursively) are strings, ints, booleans, other structs, a list of these types or a dictionary with string keys and values of these types. Quotes and new lines in strings are escaped. Examples:
struct(key=123).to_json()
# {"key":123}

struct(key=True).to_json()
# {"key":true}

struct(key=[1, 2, 3]).to_json()
# {"key":[1,2,3]}

struct(key='text').to_json()
# {"key":"text"}

struct(key=struct(inner_key='text')).to_json()
# {"key":{"inner_key":"text"}}

struct(key=[struct(inner_key=1), struct(inner_key=2)]).to_json()
# {"key":[{"inner_key":1},{"inner_key":2}]}

struct(key=struct(inner_key=struct(inner_inner_key='text'))).to_json()
# {"key":{"inner_key":{"inner_inner_key":"text"}}}

to_proto

string AndroidAssetsInfo.to_proto()

Creates a text message from the struct parameter. This method only works if all struct elements (recursively) are strings, ints, booleans, other structs or a list of these types. Quotes and new lines in strings are escaped. Keys are iterated in the sorted order. Examples:
struct(key=123).to_proto()
# key: 123

struct(key=True).to_proto()
# key: true

struct(key=[1, 2, 3]).to_proto()
# key: 1
# key: 2
# key: 3

struct(key='text').to_proto()
# key: "text"

struct(key=struct(inner_key='text')).to_proto()
# key {
#   inner_key: "text"
# }

struct(key=[struct(inner_key=1), struct(inner_key=2)]).to_proto()
# key {
#   inner_key: 1
# }
# key {
#   inner_key: 2
# }

struct(key=struct(inner_key=struct(inner_inner_key='text'))).to_proto()
# key {
#    inner_key {
#     inner_inner_key: "text"
#   }
# }

validation_result

File AndroidAssetsInfo.validation_result

If not None, represents the output of asset merging and validation for this target. The action to merge and validate assets is not run be default; to force it, add this artifact to your target's outputs. The validation action is somewhat expensive - in native code, this artifact is added to the top-level output group (so validation is only done if the target is requested on the command line). The contents of this artifact are subject to change and should not be relied upon. May return None.