From b6e993edbe9874fe0529613f6a644345e6108b59 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 3 Dec 2020 11:43:51 +0100 Subject: [PATCH] [illink] Do not preserve A.R.AndroidEnvironment Part of https://github.com/xamarin/xamarin-android/issues/5167 Removed API from `BuildReleaseArm64False` test: Type Android.Runtime.AndroidEnvironment - Field public static string AndroidLogAppName - Field static Javax.Net.Ssl.IX509TrustManager sslTrustManager - Field static Java.Security.KeyStore certStore - Method static SIGERR SetupTrustManager () - Method static SIGERR SetupCertStore () - Method public static SIGERR add_UnhandledExceptionRaiser (System.EventHandler`1) - Method public static SIGERR remove_UnhandledExceptionRaiser (System.EventHandler`1) - Method static SIGERR TrustEvaluateSsl (System.Collections.Generic.List`1) - Method static SIGERR CertStoreLookup (long, bool) - Method static SIGERR GetX509CertificateFactory () - Method static SIGERR ConvertCertificate (Java.Security.Cert.CertificateFactory, byte[]) - Method static SIGERR NotifyTimeZoneChanged () - Method static SIGERR GetDisplayDPI (float&, float&) - Method static SIGERR GetDefaultTimeZone () - Method static SIGERR _monodroid_timezone_get_default_id () - Method static SIGERR GetDefaultSyncContext () - Method static SIGERR _monodroid_getifaddrs (IntPtr&) - Method static SIGERR GetInterfaceAddresses (IntPtr&) - Method static SIGERR _monodroid_freeifaddrs (IntPtr) - Method static SIGERR FreeInterfaceAddresses (IntPtr) - Method static SIGERR _monodroid_detect_cpu_and_architecture (ushort&, ushort&, byte&) - Method static SIGERR DetectCPUAndArchitecture (ushort&, ushort&, bool&) - Method static SIGERR GetDefaultProxy () - Method static SIGERR GetHttpMessageHandler () - Type _Proxy Some of the removed API is obsolete on .NET5/6. Opened https://github.com/xamarin/xamarin-android/issues/5361 for it. The template tests run OK on device after the removal. --- src/Microsoft.Android.Sdk.ILLink/PreserveLists/Mono.Android.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Microsoft.Android.Sdk.ILLink/PreserveLists/Mono.Android.xml b/src/Microsoft.Android.Sdk.ILLink/PreserveLists/Mono.Android.xml index 4e27871023c..9f3b48c7fac 100644 --- a/src/Microsoft.Android.Sdk.ILLink/PreserveLists/Mono.Android.xml +++ b/src/Microsoft.Android.Sdk.ILLink/PreserveLists/Mono.Android.xml @@ -1,7 +1,6 @@ -