Skip to content

Commit

Permalink
Merge pull request #34 from Gilford92/update-tomlyn-dll
Browse files Browse the repository at this point in the history
Updated Tomlyn dll with latest version (0.16.2)
  • Loading branch information
jespersmith authored Aug 29, 2023
2 parents f30f1cc + a354a8e commit c53ed7b
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 75 deletions.
4 changes: 2 additions & 2 deletions Editor/Halodi.PackageRegistryManager.Editor.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"860BB79D.Tomlyn.dll",
"Newtonsoft.Json.dll",
"Unity.SharpZipLib.dll"
"Unity.SharpZipLib.dll",
"Tomlyn.dll"
],
"autoReferenced": false,
"defineConstraints": [],
Expand Down
15 changes: 11 additions & 4 deletions Editor/Halodi/PackageRegistry/Core/UpgradePackagesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,29 @@ public PackageUpgradeState(UnityEditor.PackageManager.PackageInfo info)
}
}

hasVerified = !String.IsNullOrWhiteSpace(info.versions.verified);
#if UNITY_2022_2_OR_NEWER
string verified = info.versions.recommended;
#else
string verified = info.versions.verified;
#endif

hasVerified = !String.IsNullOrWhiteSpace(verified);

if(hasVerified)
{
try
{
verifiedVersion = SemVer.Parse(info.versions.verified);
verifiedVersion = SemVer.Parse(verified);
if(verifiedVersion > current)
{
verifiedAvailable = verifiedVersion > current;
verified = info.name + "@" + info.versions.verified;
verified = info.name + "@" + verified;
}

}
catch
{
Debug.LogError("Cannot parse version for package " + info.displayName + ": " + info.versions.verified);
Debug.LogError("Cannot parse version for package " + info.displayName + ": " + verified);
}
}
}
Expand Down
Binary file removed Editor/ThirdParty/860BB79D.Tomlyn.dll
Binary file not shown.
69 changes: 0 additions & 69 deletions Editor/ThirdParty/860BB79D.Tomlyn.dll.meta

This file was deleted.

Binary file added Editor/ThirdParty/Tomlyn.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions Editor/ThirdParty/Tomlyn.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c53ed7b

Please sign in to comment.