Skip to content

Commit c1aa504

Browse files
committed
Merge branch 'mu-20220710-new-packages' of https://github.com/xamarin/AndroidX into mu-20220710-new-packages
2 parents 2ebdb6a + 7d5c756 commit c1aa504

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

build/scripts/update-config.csx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ foreach (var art in config[0].Artifacts.Where (a => !a.DependencyOnly)) {
7777
}
7878
}
7979

80+
if (art.Frozen)
81+
package_name = "# " + package_name;
82+
8083
// Bump the revision version of all NuGet versions
8184
// If there isn't currently a revision version, make it ".1"
8285
if (should_minor_bump)
@@ -131,6 +134,10 @@ static Artifact FindMavenArtifact (List<MyArray> config, ArtifactModel artifact)
131134

132135
static bool NeedsUpdate (ArtifactModel model, Artifact artifact)
133136
{
137+
// Don't update package if it's "Frozen"
138+
if (model.Frozen)
139+
return false;
140+
134141
// Get latest stable version
135142
var latest = GetLatestVersion (artifact);
136143

@@ -306,6 +313,9 @@ public class ArtifactModel
306313
[JsonProperty ("dependencyOnly")]
307314
public bool DependencyOnly { get; set; }
308315

316+
[JsonProperty ("frozen")]
317+
public bool Frozen { get; set; }
318+
309319
[JsonProperty ("excludedRuntimeDependencies")]
310320
public string ExcludedRuntimeDependencies { get; set; }
311321

config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,7 @@
18281828
"nugetVersion": "1.0.0",
18291829
"nugetId": "Xamarin.Google.Android.InstallReferrer",
18301830
"dependencyOnly": false,
1831+
"frozen": true,
18311832
"templateSet": "installreferrer"
18321833
},
18331834
{

0 commit comments

Comments
 (0)