Skip to content

Commit

Permalink
[Xamarin.Android.Tools.AndroidSdk] Remove hardcoded Path (#248)
Browse files Browse the repository at this point in the history
Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/2341994
Context: xamarin/androidtools@94e46bc

Remove the hardcoded path `C:\android-sdk-windows` from the list of
backup paths to check when scanning for the Android SDK.

This path was first added in xamarin/androidtools@94e46bcc, with no
explanation for *why* that was the backup path.  Perhaps that was the
convention at the time?
  • Loading branch information
dellis1972 authored Jan 14, 2025
1 parent f62cd09 commit 36e574c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ protected override IEnumerable<string> GetAllAvailableAndroidSdks ()
: Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.ProgramFiles), "Android", "android-sdk"),
Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.LocalApplicationData), "Android", "android-sdk"),
Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.CommonApplicationData), "Android", "android-sdk"),
@"C:\android-sdk-windows"
};
foreach (var basePath in paths)
if (Directory.Exists (basePath))
Expand Down

0 comments on commit 36e574c

Please sign in to comment.