diff options
author | Adam Lesinski <adamlesinski@google.com> | 2017-02-21 14:22:30 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2017-02-22 11:41:55 -0800 |
commit | d48944a745f9ed121e6bde22ef6feb3a44fbec39 (patch) | |
tree | 349c152caa68f1283535b2f9c49f5cd8a50eb59b /tools/aapt2/LoadedApk.h | |
parent | ceb9b2f80f853059233cdd29057f39a5960a74ae (diff) |
AAPT2: Rename strip phase to optimize
- Allow resource deduping, version collapsing, and sparse resource
encoding.
Test: manual
Change-Id: Ia4aa892ab5b06ba1d5ea4a6efb51b00bc3a980c4
Diffstat (limited to 'tools/aapt2/LoadedApk.h')
-rw-r--r-- | tools/aapt2/LoadedApk.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/aapt2/LoadedApk.h b/tools/aapt2/LoadedApk.h index f8878d13ae35..59eb8161a868 100644 --- a/tools/aapt2/LoadedApk.h +++ b/tools/aapt2/LoadedApk.h @@ -21,6 +21,7 @@ #include "ResourceTable.h" #include "flatten/Archive.h" +#include "flatten/TableFlattener.h" #include "io/ZipArchive.h" #include "unflatten/BinaryResourceParser.h" @@ -45,7 +46,8 @@ class LoadedApk { * Writes the APK on disk at the given path, while also removing the resource * files that are not referenced in the resource table. */ - bool WriteToArchive(IAaptContext* context, IArchiveWriter* writer); + bool WriteToArchive(IAaptContext* context, const TableFlattenerOptions& options, + IArchiveWriter* writer); static std::unique_ptr<LoadedApk> LoadApkFromPath(IAaptContext* context, const android::StringPiece& path); |