Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc3529ed authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

[aapt] Add --verbose support to 'aapt2 convert

Bug: 336758568
Bug: 342579978
Test: build
Flag: EXEMPT bugfix
Change-Id: I7b0844fb29e8630d9b4d63ac174ce4b4ca4ba47b
parent 707263e4
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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) {