diff options
author | corysmith@google.com <corysmith@google.com> | 2018-03-13 12:04:10 -0400 |
---|---|---|
committer | corysmith@google.com <corysmith@google.com> | 2018-03-18 14:30:13 -0400 |
commit | f7db43ee354a9cbda937e642952d8b3ac4ca66c4 (patch) | |
tree | 15bebe8d955e3a66bee671a1a07f3b75780add36 /tools/aapt2/LoadedApk.h | |
parent | 6b4e6a17e93198ffedfb6a447ff49364da9307f3 (diff) |
Writes the resource table proto out when writing a LoadedApk.
Small fixes for consistancy to use constants instead of strings.
Change-Id: I33439c376e1634b7957730ce16e241b0f5bb92f8
Fixes: 74594854
Test: Manual, tested against blaze test //javatests/com/google/devtools/build/android:UnitTests
Diffstat (limited to 'tools/aapt2/LoadedApk.h')
-rw-r--r-- | tools/aapt2/LoadedApk.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/aapt2/LoadedApk.h b/tools/aapt2/LoadedApk.h index 81bcecc3ca5d..41f879d0cdc3 100644 --- a/tools/aapt2/LoadedApk.h +++ b/tools/aapt2/LoadedApk.h @@ -57,11 +57,13 @@ class LoadedApk { const Source& source, std::unique_ptr<io::IFileCollection> collection, IDiagnostics* diag); LoadedApk(const Source& source, std::unique_ptr<io::IFileCollection> apk, - std::unique_ptr<ResourceTable> table, std::unique_ptr<xml::XmlResource> manifest) + std::unique_ptr<ResourceTable> table, std::unique_ptr<xml::XmlResource> manifest, + const ApkFormat& format) : source_(source), apk_(std::move(apk)), table_(std::move(table)), - manifest_(std::move(manifest)) { + manifest_(std::move(manifest)), + format_(format) { } io::IFileCollection* GetFileCollection() { @@ -112,6 +114,7 @@ class LoadedApk { std::unique_ptr<io::IFileCollection> apk_; std::unique_ptr<ResourceTable> table_; std::unique_ptr<xml::XmlResource> manifest_; + ApkFormat format_; static ApkFormat DetermineApkFormat(io::IFileCollection* apk); }; |