This repository was archived by the owner on Jun 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +22
-13
lines changed Expand file tree Collapse file tree 6 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 14
14
<iconUrl >https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-core-common_128x128.png</iconUrl >
15
15
<dependencies >
16
16
<group targetFramework =" MonoAndroid80" >
17
- <dependency id =" Xamarin.Android.Support.Annotations" version =" 26.1.0 " />
17
+ <dependency id =" Xamarin.Android.Support.Annotations" version =" $com.android.support.support-annotations$ " />
18
18
</group >
19
19
</dependencies >
20
20
</metadata >
Original file line number Diff line number Diff line change 14
14
<iconUrl >https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-core-runtime_128x128.png</iconUrl >
15
15
<dependencies >
16
16
<group targetFramework =" MonoAndroid80" >
17
- <dependency id =" Xamarin.Android.Support.Annotations" version =" 26.1.0 " />
18
- <dependency id =" Xamarin.Android.Arch.Core.Common" version =" 1.0.0 " />
17
+ <dependency id =" Xamarin.Android.Support.Annotations" version =" $com.android.support.support-annotations$ " />
18
+ <dependency id =" Xamarin.Android.Arch.Core.Common" version =" $android.arch.core.common$ " />
19
19
</group >
20
20
</dependencies >
21
21
</metadata >
Original file line number Diff line number Diff line change 14
14
<iconUrl >https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-lifecycle-common_128x128.png</iconUrl >
15
15
<dependencies >
16
16
<group targetFramework =" MonoAndroid80" >
17
- <dependency id =" Xamarin.Android.Support.Annotations" version =" 26.1.0 " />
17
+ <dependency id =" Xamarin.Android.Support.Annotations" version =" $com.android.support.support-annotations$ " />
18
18
</group >
19
19
</dependencies >
20
20
</metadata >
Original file line number Diff line number Diff line change 14
14
<iconUrl >https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-lifecycle-extensions_128x128.png</iconUrl >
15
15
<dependencies >
16
16
<group targetFramework =" MonoAndroid80" >
17
- <dependency id =" Xamarin.Android.Support.Annotations" version =" 26.1.0 " />
18
- <dependency id =" Xamarin.Android.Support.Fragment" version =" 26.1.0 " />
19
- <dependency id =" Xamarin.Android.Arch.Lifecycle.Runtime" version =" 1.0.3 " />
20
- <dependency id =" Xamarin.Android.Arch.Lifecycle.Common" version =" 1.0.3 " />
21
- <dependency id =" Xamarin.Android.Arch.Core.Common" version =" 1.0.0 " />
22
- <dependency id =" Xamarin.Android.Arch.Core.Runtime" version =" 1.0.0 " />
17
+ <dependency id =" Xamarin.Android.Support.Annotations" version =" $com.android.support.support-annotations$ " />
18
+ <dependency id =" Xamarin.Android.Support.Fragment" version =" $com.android.support.support-fragment$ " />
19
+ <dependency id =" Xamarin.Android.Arch.Lifecycle.Runtime" version =" $android.arch.lifecycle.runtime$ " />
20
+ <dependency id =" Xamarin.Android.Arch.Lifecycle.Common" version =" $android.arch.lifecycle.common$ " />
21
+ <dependency id =" Xamarin.Android.Arch.Core.Common" version =" $android.arch.core.common$ " />
22
+ <dependency id =" Xamarin.Android.Arch.Core.Runtime" version =" $android.arch.core.runtime$ " />
23
23
</group >
24
24
</dependencies >
25
25
</metadata >
Original file line number Diff line number Diff line change 14
14
<iconUrl >https://raw.githubusercontent.com/xamarin/AndroidSupportComponents/master/icons/arch-lifecycle-runtime_128x128.png</iconUrl >
15
15
<dependencies >
16
16
<group targetFramework =" MonoAndroid80" >
17
- <dependency id =" Xamarin.Android.Support.Annotations" version =" 26.1.0 " />
18
- <dependency id =" Xamarin.Android.Arch.Lifecycle.Common" version =" 1.0.1 " />
19
- <dependency id =" Xamarin.Android.Arch.Core.Common" version =" 1.0.0 " />
17
+ <dependency id =" Xamarin.Android.Support.Annotations" version =" $com.android.support.support-annotations$ " />
18
+ <dependency id =" Xamarin.Android.Arch.Lifecycle.Common" version =" $android.arch.lifecycle.common$ " />
19
+ <dependency id =" Xamarin.Android.Arch.Core.Common" version =" $android.arch.core.common$ " />
20
20
</group >
21
21
</dependencies >
22
22
</metadata >
Original file line number Diff line number Diff line change @@ -392,6 +392,15 @@ Task ("nuget-setup")
392
392
393
393
// Transform all template.nuspec files
394
394
var nuspecText = FileReadText ( art . PathPrefix + art . ArtifactId + "/nuget/template.nuspec" ) ;
395
+
396
+ // We use a pattern of $package.id.artifact.id$ as a placeholder in nuspec templates
397
+ // which we want to substitute the actual nuget version into
398
+ // So for example $com.android.support.support-compat$ would get replaced with the nuget version for Xamarin.Android.Support.Compat
399
+ foreach ( var artifactInfo in ARTIFACTS ) {
400
+ var placeholder = "$" + artifactInfo . Package + "." + artifactInfo . ArtifactId + "$" ;
401
+ nuspecText = nuspecText . Replace ( placeholder , artifactInfo . NuGetVersion ) ;
402
+ }
403
+
395
404
//nuspecText = nuspecText.Replace ("$xbdversion$", XBD_VERSION);
396
405
var nuspecFile = new FilePath ( art . PathPrefix + art . ArtifactId + "/nuget/" + art . NugetId + ".nuspec" ) ;
397
406
FileWriteText ( nuspecFile , nuspecText ) ;
You can’t perform that action at this time.
0 commit comments