From 355f285ffd000f6cfe76680eb22d010546d124bb Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Sat, 13 Feb 2016 20:26:45 -0800 Subject: AAPT2: Implement density stripping and initial Split support When a preferred density is supplied, the closest matching densities will be selected, the rest stripped from the APK. Split support will be enabled in a later CL. Command line support is still needed, but the foundation is ready. Bug:25958912 Change-Id: I56d599806b4ec4ffa24e17aad48d47130ca05c08 --- tools/aapt2/ResourceValues.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/aapt2/ResourceValues.cpp') diff --git a/tools/aapt2/ResourceValues.cpp b/tools/aapt2/ResourceValues.cpp index ab9c792876b3..dd7ff013e524 100644 --- a/tools/aapt2/ResourceValues.cpp +++ b/tools/aapt2/ResourceValues.cpp @@ -18,6 +18,7 @@ #include "ResourceUtils.h" #include "ResourceValues.h" #include "ValueVisitor.h" +#include "io/File.h" #include "util/Util.h" #include @@ -190,6 +191,7 @@ bool FileReference::flatten(android::Res_value* outValue) const { FileReference* FileReference::clone(StringPool* newPool) const { FileReference* fr = new FileReference(newPool->makeRef(*path)); + fr->file = file; fr->mComment = mComment; fr->mSource = mSource; return fr; -- cgit v1.2.3-59-g8ed1b