diff options
author | 2017-08-10 20:34:02 +0200 | |
---|---|---|
committer | 2017-08-11 12:56:18 +0200 | |
commit | e7e7ba4d6f250899165bb8862fefa4e90a33da57 (patch) | |
tree | 675b78d5edc34b3ad6847dfe3fbf62d3c9d5a411 /src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java | |
parent | a664a5118e552504ba7962e1cccfea43b51ef28e (diff) |
Adds aapt2.ResourceCompiler and CompileLibraryResourcesAction.
Refactorings:
* Change data binding to have configurable archive generation
* Extract a ZipBuilder class from the ZipBuilderVisitor to provide a general purpose archiving class.
* Small changes to visibility AaptCommandLineBuilder for reuse in the aapt2 code.
RELNOTES: None
PiperOrigin-RevId: 164880571
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java b/src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java index df4f899d34..4bfe5cb10c 100644 --- a/src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java +++ b/src/tools/android/java/com/google/devtools/build/android/AaptCommandBuilder.java @@ -27,7 +27,7 @@ import javax.annotation.Nullable; * Builder for AAPT command lines, with support for making flags conditional on build tools version * and variant type. */ -class AaptCommandBuilder { +public class AaptCommandBuilder { private final ImmutableList.Builder<String> flags = new ImmutableList.Builder<>(); private Revision buildToolsVersion; private VariantType variantType; @@ -37,7 +37,7 @@ class AaptCommandBuilder { } /** Sets the build tools version to be used for {@link #whenVersionIsAtLeast}. */ - AaptCommandBuilder forBuildToolsVersion(@Nullable Revision buildToolsVersion) { + public AaptCommandBuilder forBuildToolsVersion(@Nullable Revision buildToolsVersion) { Preconditions.checkState( this.buildToolsVersion == null, "A build tools version was already specified."); this.buildToolsVersion = buildToolsVersion; @@ -45,7 +45,7 @@ class AaptCommandBuilder { } /** Sets the variant type to be used for {@link #whenVariantIs}. */ - AaptCommandBuilder forVariantType(VariantType variantType) { + public AaptCommandBuilder forVariantType(VariantType variantType) { Preconditions.checkNotNull(variantType); Preconditions.checkState(this.variantType == null, "A variant type was already specified."); this.variantType = variantType; |