|
31 | 31 | #include <variant> |
32 | 32 | #include <vector> |
33 | 33 |
|
34 | | -#include <json/value.h> |
35 | 34 | #include "absl/log/log.h" |
| 35 | +#include "android-base/file.h" |
| 36 | +#include "json/value.h" |
36 | 37 |
|
37 | | -#include <android-base/file.h> |
38 | 38 | #include "cuttlefish/common/libs/utils/contains.h" |
39 | 39 | #include "cuttlefish/common/libs/utils/files.h" |
40 | 40 | #include "cuttlefish/common/libs/utils/json.h" |
@@ -148,7 +148,6 @@ Result<std::string> AndroidBuildApi::DownloadFile( |
148 | 148 | return DownloadTargetFile(build, target_directory, artifact_name); |
149 | 149 | } |
150 | 150 |
|
151 | | - |
152 | 151 | Result<SeekableZipSource> AndroidBuildApi::FileReader( |
153 | 152 | const Build& build, const std::string& artifact_name) { |
154 | 153 | Result<SeekableZipSource> res = |
@@ -350,14 +349,14 @@ Result<std::string> AndroidBuildApi::GetArtifactDownloadUrl( |
350 | 349 | const DeviceBuild& build, const std::string& artifact) { |
351 | 350 | const std::string download_url_endpoint = |
352 | 351 | android_build_url_.GetArtifactDownloadUrl(build.id, build.target, |
353 | | - artifact); |
| 352 | + artifact); |
354 | 353 | auto response = CF_EXPECT( |
355 | 354 | HttpGetToJson(http_client_, download_url_endpoint, CF_EXPECT(Headers()))); |
356 | 355 | const Json::Value json = |
357 | 356 | CF_EXPECTF(GetResponseJson(response, /* allow redirect response */ true), |
358 | 357 | "Error fetching download URL for \"{}\" from build ID \"{}\"", |
359 | 358 | artifact, build.id); |
360 | | - return CF_EXPECT(GetValue<std::string>(json, { "signedUrl" })); |
| 359 | + return CF_EXPECT(GetValue<std::string>(json, {"signedUrl"})); |
361 | 360 | } |
362 | 361 |
|
363 | 362 | Result<void> AndroidBuildApi::ArtifactToFile(const DeviceBuild& build, |
|
0 commit comments