Skip to content

Commit

Permalink
Merge pull request #179 from unoplatform/emulator-arch-fix
Browse files Browse the repository at this point in the history
fix(androidsdk): only download arch independent or matching the host archives
  • Loading branch information
nickrandolph authored Oct 9, 2023
2 parents 873057f + 44deb29 commit 50490f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnoCheck/Checkups/AndroidSdkCheckup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ You can use the Android SDK Manager to install / update them.
{
// Provide a default timeout value of 7 minutes if a value is not provided.
httpClient.Timeout = TimeSpan.FromMinutes(120);
await Task.WhenAll(downloads.Select(d => Download(httpClient, d)));
await Task.WhenAll(downloads.Where(d => (d.HostArch == null) || (d.HostArch == (Util.IsArm64 ? "aarch64" : "x64"))).Select(d => Download(httpClient, d)));
}

installer.Install(sdkInstance, installationSet);
Expand Down

0 comments on commit 50490f5

Please sign in to comment.