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

Commit 772e8cf

Browse files
committed
Fix static to dynamic url in template.targets
1 parent f739b52 commit 772e8cf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.cake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,13 @@ Task ("nuget-setup").IsDependentOn ("buildtasks").IsDependentOn ("externals")
443443

444444
// Support annotations needs merging tool
445445
var annotationsPart = downloadParts.FirstOrDefault (p => p.LocalPath.EndsWith ("/support-annotations-" + AAR_VERSION + ".jar"));
446+
446447
var annotationsTemplateText = FileReadText ("./support-annotations/nuget/template.targets");
447448
annotationsTemplateText = annotationsTemplateText.Replace ("$AarVersion$", AAR_VERSION)
448449
.Replace ("$XbdRangeStart$", annotationsPart.RangeStart.ToString())
449450
.Replace ("$XbdRangeEnd$", annotationsPart.RangeEnd.ToString())
450-
.Replace ("$XbdMd5$", annotationsPart.Md5);
451+
.Replace ("$XbdMd5$", annotationsPart.Md5)
452+
.Replace ("$XbdUrl$", M2_REPOSITORY_URL);
451453

452454
FileWriteText ("./support-annotations/nuget/Xamarin.Android.Support.Annotations.targets", annotationsTemplateText);
453455
mergeTargetsFiles ("./support-annotations/nuget/Xamarin.Android.Support.Annotations.targets", "./generated.targets");

support-annotations/nuget/template.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<ItemGroup>
2828
<XamarinBuildDownloadPartialZip Include="$(_XbdKey_supportannotations)" Condition="!Exists('$(_XbdJarFileFullPath_supportannotations)')">
29-
<Url>https://dl-ssl.google.com/android/repository/android_m2repository_r42.zip</Url>
29+
<Url>$XbdUrl$</Url>
3030
<ToFile>support-annotations-$AarVersion$.jar</ToFile>
3131
<RangeStart>$XbdRangeStart$</RangeStart>
3232
<RangeEnd>$XbdRangeEnd$</RangeEnd>

0 commit comments

Comments
 (0)