diff options
| author | 2024-08-09 10:55:05 -0700 | |
|---|---|---|
| committer | 2024-08-09 10:55:05 -0700 | |
| commit | dc3529edf941460b85c3959f1a93f5597cd651be (patch) | |
| tree | 2ff58a46a17c9fd89fd85c431bc3f4cf24adcd43 | |
| parent | 707263e428bf711a19e55a48581c3d79c5a6f62f (diff) | |
[aapt] Add --verbose support to 'aapt2 convert
Bug: 336758568
Bug: 342579978
Test: build
Flag: EXEMPT bugfix
Change-Id: I7b0844fb29e8630d9b4d63ac174ce4b4ca4ba47b
| -rw-r--r-- | tools/aapt2/cmd/Convert.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/aapt2/cmd/Convert.cpp b/tools/aapt2/cmd/Convert.cpp index c132792d374b..6c3eae11eab9 100644 --- a/tools/aapt2/cmd/Convert.cpp +++ b/tools/aapt2/cmd/Convert.cpp @@ -244,6 +244,10 @@ class Context : public IAaptContext { return verbose_; } + void SetVerbose(bool verbose) { + verbose_ = verbose; + } + int GetMinSdkVersion() override { return min_sdk_; } @@ -388,6 +392,8 @@ int ConvertCommand::Action(const std::vector<std::string>& args) { } Context context; + context.SetVerbose(verbose_); + StringPiece path = args[0]; unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(path, context.GetDiagnostics()); if (apk == nullptr) { |