Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 840f257

Browse files
authored
Simplify androidsupport.merged.dll download
1 parent 580adc2 commit 840f257

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

build.cake

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ var REF_DOCS_URL = "https://bosstoragemirror.blob.core.windows.net/android-docs-
3737
var BASE_API_INFO_URL = EnvironmentVariable("MONO_API_INFO_XML_URL") ?? "https://github.com/xamarin/AndroidSupportComponents/releases/download/28.0.0.1/api-info.xml";
3838

3939
// In order to create the type mapping, we need to get the AndroidSupport.Merged.dll
40-
var SUPPORT_MERGED_DLL_BUILD_ID = EnvironmentVariable("SUPPORT_MERGED_DLL_BUILD_ID") ?? "2701136";
41-
var SUPPORT_MERGED_DLL_ZIP_URL = EnvironmentVariable("SUPPORT_MERGED_DLL_ZIP_URL") ?? $"https://devdiv.visualstudio.com/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_apis/build/builds/{SUPPORT_MERGED_DLL_BUILD_ID}/artifacts?artifactName=NuGet&api-version=5.1-preview.5&%24format=zip";
40+
var SUPPORT_MERGED_DLL_URL = EnvironmentVariable("SUPPORT_MERGED_DLL_URL") ?? $"https://github.com/xamarin/AndroidSupportComponents/releases/download/28.0.0.2/AndroidSupport.Merged.dll";
4241

4342
var MONODROID_BASE_PATH = (DirectoryPath)"/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/xbuild-frameworks/MonoAndroid/";
4443
if (IsRunningOnWindows ()) {
@@ -247,12 +246,8 @@ Task ("generate-mapping")
247246
{
248247
// download the AndroidSupport.Merged.dll from a past build
249248
if (!FileExists ("./output/AndroidSupport.Merged.dll")) {
250-
EnsureDirectoryExists ("./output/temp/");
251-
CleanDirectories ("./output/temp");
252-
DownloadFile (SUPPORT_MERGED_DLL_ZIP_URL, "./output/temp/AndroidSupport.NuGet.zip");
253-
Unzip ("./output/temp/AndroidSupport.NuGet.zip", "./output/temp/");
254-
CopyFileToDirectory ("./output/temp/nuget/AndroidSupport.Merged.dll", "./output/");
255-
DeleteDirectory ("./output/temp", true);
249+
EnsureDirectoryExists ("./output/");
250+
DownloadFile (SUPPORT_MERGED_DLL_URL, "./output/AndroidSupport.Merged.dll");
256251
}
257252

258253
var result = StartProcess(ANDROIDX_MAPPER_EXE,

0 commit comments

Comments
 (0)