From 004511660671511ae88e0e837a6f92db28eadaef Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Tue, 3 Oct 2017 07:44:08 -0700 Subject: AAPT2: Define and Implement AAPT Container Format AAPT Container Format (.apc) is a simple container that enumerates the various intermediate files that AAPT2 generates during the compile phase. The format is defined in formats.md. For now, continue using the .flat extension for the container file, and keep making use of the .flata zip for storing multiple files. This will allow easier integration with existing build systems and allow the evolution of the APC format to better handle arbitrarily large files. Test: make aapt2_tests Change-Id: Id7216e5b76316bdd683f0fa4eaf2d2da273ba815 --- tools/aapt2/ResourceValues.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/aapt2/ResourceValues.cpp') diff --git a/tools/aapt2/ResourceValues.cpp b/tools/aapt2/ResourceValues.cpp index e0137290f5ee..4e84a476a300 100644 --- a/tools/aapt2/ResourceValues.cpp +++ b/tools/aapt2/ResourceValues.cpp @@ -292,6 +292,7 @@ bool FileReference::Flatten(android::Res_value* out_value) const { FileReference* FileReference::Clone(StringPool* new_pool) const { FileReference* fr = new FileReference(new_pool->MakeRef(*path)); fr->file = file; + fr->type = type; fr->comment_ = comment_; fr->source_ = source_; return fr; -- cgit v1.2.3-59-g8ed1b