aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java
diff options
context:
space:
mode:
authorGravatar corysmith <corysmith@google.com>2018-08-14 08:03:51 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-08-14 08:05:14 -0700
commit4d57f86c3df2c36763cf9cf92b8cfd206a7153b6 (patch)
tree2d5c90bd2e160c876fc8ab8410a24dda111b4b55 /src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java
parent0d480f69e8c934fb4b789e0b5d72fb42405fafe0 (diff)
Add test to ensure that the binary building pipeline works.
RELNOTES: None PiperOrigin-RevId: 208647642
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java')
-rw-r--r--src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java b/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java
index 2bd13aba59..a8455d609d 100644
--- a/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java
+++ b/src/tools/android/java/com/google/devtools/build/android/aapt2/ResourceLinker.java
@@ -72,8 +72,14 @@ import java.util.stream.Stream;
public class ResourceLinker {
private static final Predicate<String> IS_JAR = s -> s.endsWith(".jar");
- private static final String PROTO_EXTENSION = "-pb.apk";
- private static final String BINARY_EXTENSION = "apk";
+
+ /**
+ * A file extension to indicate whether an apk is a proto or binary format.
+ *
+ * The file extension is tremendously important to aapt2 -- it uses it determine how to
+ * interpret the contents of the file.
+ */
+ public static final String PROTO_EXTENSION = "-pb.apk";
private boolean debug;
private static final Predicate<DirectoryEntry> IS_FLAT_FILE =
h -> h.getFilename().endsWith(".flat");