public abstract class GenruleAndroidTools extends Object implements AddsToRuleKey
GenruleBuildable
.
Note that, despite implementing AddsToRuleKey, GenruleAndroidTools does not actually
contribute to rule keys. The reason for this is that all of the Path objects contained in this
object are paths outside of the repository. GenruleAndroidTools is never serialized due to other
logic in GenruleBuildable
that prevents it from happening; it is a logic error to
serialize this class across a ModernBuildRule
boundary.
This class still must implement AddsToRuleKey because ModernBuildRule requires that all fields
in a Buildable
must implement AddsToRuleKey so that a
serializer can be derived.
Constructor and Description |
---|
GenruleAndroidTools() |
Modifier and Type | Method and Description |
---|---|
abstract Tool |
getAapt2Tool() |
abstract Tool |
getAaptTool() |
abstract Optional<Path> |
getAndroidNdkLocation() |
abstract Path |
getAndroidPathToDx() |
abstract Path |
getAndroidPathToZipalign() |
abstract Path |
getAndroidSdkLocation() |
static GenruleAndroidTools |
of(AndroidTools tools,
BuildTarget target,
BuildRuleResolver ruleResolver)
Extracts a set of Android tools for a particular build using that build's target and rule
resolver.
|
public abstract Path getAndroidSdkLocation()
public abstract Path getAndroidPathToDx()
public abstract Path getAndroidPathToZipalign()
public abstract Tool getAaptTool()
public abstract Tool getAapt2Tool()
public static GenruleAndroidTools of(AndroidTools tools, BuildTarget target, BuildRuleResolver ruleResolver)
tools
- Tools reference for Androidtarget
- The BuildTarget to retrieve tools forruleResolver
- Rule resolver for resolving tool referenves