public class PackageStringAssets extends AbstractBuildRule
.fbstr
files stored
as assets. Only applicable for android_binary
rules with resource_compression
parameter set to #ENABLED_WITH_STRINGS_AS_ASSETS
.
Produces an all_locales_string_assets.zip containing .fbstr files for all locales the app has strings for, and a string_assets.zip file that contains the .fbstr files filtered by the set of locales provided. The contents of string_assets.zip is built into the assets of the APK. all_locales_string_assets.zip is used for debugging purposes.
Modifier and Type | Field and Description |
---|---|
static String |
STRING_ASSETS_DIR_FORMAT |
Modifier and Type | Method and Description |
---|---|
SortedSet<BuildRule> |
getBuildDeps() |
com.google.common.collect.ImmutableList<Step> |
getBuildSteps(BuildContext context,
BuildableContext buildableContext) |
SourcePath |
getSourcePathToOutput() |
SourcePath |
getSourcePathToStringAssetsZip() |
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, isCacheable, toString, updateBuildRuleResolver
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getFullyQualifiedName, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution
public static final String STRING_ASSETS_DIR_FORMAT
public SortedSet<BuildRule> getBuildDeps()
deps
argument for this build rule in the build file in which it was defined.
However, there are special cases where other arguments pull in implicit dependencies
(e.g., the keystore
argument in android_binary
). In these cases, the
implicit dependencies are also included in the set returned by this method. The value of
the original deps
argument, as defined in the build file, must be accessed via a
custom getter provided by the build rule.
public com.google.common.collect.ImmutableList<Step> getBuildSteps(BuildContext context, BuildableContext buildableContext)
public SourcePath getSourcePathToOutput()
public SourcePath getSourcePathToStringAssetsZip()