From e047347f0199459a66d300f355c8aeb60fa7ab13 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" <42748379+dotnet-maestro[bot]@users.noreply.github.com> Date: Fri, 28 May 2021 13:44:22 +0000 Subject: [PATCH] [main] Update dependencies from xamarin/xamarin-android (#1101) [main] Update dependencies from xamarin/xamarin-android - Coherency Updates: - Microsoft.Dotnet.Sdk.Internal: from 6.0.100-preview.5.21260.2 to 6.0.100-preview.5.21275.1 (parent: Microsoft.Android.Sdk.Windows) - Merge branch 'main' into darc-main-e5d2e046-584d-497f-91b1-14b49fe0e7c1 - [essentials] remove usage of obsolete type Context: https://github.com/dotnet/runtime/blob/5dcc340a17e32d81dc12f644449c8b58396b2fd7/src/libraries/System.Security.Cryptography.Csp/src/System/Security/Cryptography/MD5CryptoServiceProvider.cs#L9 Build was failing with: SecureStorage.android.cs(134,26): error SYSLIB0021: 'MD5CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.' This API appears to have changed with the latest dotnet/installer. We can just use `MD5.Create()` instead. - [Core.UnitTests] set $(LangVersion) to preview Build currently fails for a .NET 6.0 project: LifecycleEventsTests.cs(26,77): error CS8652: The feature 'inferred delegate type' is currently in Preview and *unsupported*. To use Preview features, use the 'preview' language version. I think we can just set `$(LangVersion)` to `preview` for now. --- eng/Version.Details.xml | 8 ++++---- eng/Versions.props | 4 ++-- src/Core/tests/UnitTests/Core.UnitTests.csproj | 2 ++ src/Essentials/src/SecureStorage/SecureStorage.android.cs | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index ed03b6ef7a00..e9cf1281ec25 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,12 +1,12 @@ - + https://github.com/dotnet/installer - c1feef4a98dfc1bd2913b876e620d2ed2a01b90b + 74b69d2926768f9f8c9d3e70381a754dc3ea4c7e - + https://github.com/xamarin/xamarin-android - 92efdccb686454be32d742b8ca9f6a166a7c1808 + 198eefffbb663bf1a5b9bbae9873b40bd9713c4a https://github.com/xamarin/xamarin-macios diff --git a/eng/Versions.props b/eng/Versions.props index 6512a55ac741..fa24a908034d 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -1,8 +1,8 @@ - 6.0.100-preview.5.21260.2 - 30.0.100-ci.main.2 + 6.0.100-preview.5.21275.1 + 30.0.100-preview.5.18 14.5.100-preview.5.879 14.5.100-preview.5.879 14.5.100-preview.5.879 diff --git a/src/Core/tests/UnitTests/Core.UnitTests.csproj b/src/Core/tests/UnitTests/Core.UnitTests.csproj index e0ea601cc5bf..f54cf66c0e79 100644 --- a/src/Core/tests/UnitTests/Core.UnitTests.csproj +++ b/src/Core/tests/UnitTests/Core.UnitTests.csproj @@ -5,6 +5,8 @@ net6.0 Microsoft.Maui.UnitTests false + + preview diff --git a/src/Essentials/src/SecureStorage/SecureStorage.android.cs b/src/Essentials/src/SecureStorage/SecureStorage.android.cs index 8671ca7606f5..1b468108d4c0 100644 --- a/src/Essentials/src/SecureStorage/SecureStorage.android.cs +++ b/src/Essentials/src/SecureStorage/SecureStorage.android.cs @@ -131,7 +131,7 @@ static void PlatformRemoveAll() => internal static string Md5Hash(string input) { var hash = new StringBuilder(); - var md5provider = new System.Security.Cryptography.MD5CryptoServiceProvider(); + var md5provider = System.Security.Cryptography.MD5.Create(); var bytes = md5provider.ComputeHash(Encoding.UTF8.GetBytes(input)); for (var i = 0; i < bytes.Length; i++)