1- using Microsoft . AppCenter ;
2- using Microsoft . AppCenter . Analytics ;
3- using Microsoft . AppCenter . Crashes ;
41#if ! APP_REVERSE_PROXY && ( WINDOWS || LINUX || MACCATALYST || MACOS )
52using BD_AppCenter = BD . AppCenter . AppCenter ;
63#endif
@@ -18,25 +15,12 @@ static partial class VisualStudioAppCenterSDK
1815{
1916 internal static void Init ( )
2017 {
21- if ( DateTime . UtcNow >= new DateTime ( 2025 , 3 , 31 , default , default , default , DateTimeKind . Utc ) )
22- {
23- // Visual Studio App Center is scheduled for retirement on March 31, 2025.
24- // https://learn.microsoft.com/en-us/appcenter/retirement
25- return ;
26- }
27-
2818 var appSecret = AppSecret ;
2919 if ( string . IsNullOrWhiteSpace ( appSecret ) )
3020 return ;
3121#if WINDOWS || LINUX || MACCATALYST || MACOS || APP_REVERSE_PROXY
3222 var utils = UtilsImpl . Instance ;
33- AppCenter . SetDeviceInformationHelper ( utils ) ;
34- AppCenter . SetPlatformHelper ( utils ) ;
35- #pragma warning disable CS0612 // 类型或成员已过时
36- AppCenter . SetApplicationSettingsFactory ( utils ) ;
37- #pragma warning restore CS0612 // 类型或成员已过时
3823#endif
39- AppCenter . Start ( appSecret , typeof ( Analytics ) , typeof ( Crashes ) ) ;
4024
4125#if ! USE_MS_APPCENTER_ANALYTICS && ! APP_REVERSE_PROXY && ( WINDOWS || LINUX || MACCATALYST || MACOS )
4226 if ( Startup . Instance . IsMainProcess )
@@ -55,11 +39,7 @@ internal static void Init()
5539 }
5640
5741#if WINDOWS || LINUX || MACCATALYST || MACOS || APP_REVERSE_PROXY
58- internal sealed partial class UtilsImpl :
59- Microsoft . AppCenter . Utils . IAbstractDeviceInformationHelper ,
60- Microsoft . AppCenter . Utils . IPlatformHelper ,
61- Microsoft . AppCenter . Utils . IApplicationSettingsFactory ,
62- Microsoft . AppCenter . Utils . IApplicationSettings
42+ internal sealed partial class UtilsImpl
6343 {
6444 private UtilsImpl ( ) { }
6545
@@ -168,12 +148,6 @@ internal void OnExit(object? sender, EventArgs e)
168148
169149 #endregion
170150
171- #region IApplicationSettingsFactory
172-
173- public Microsoft . AppCenter . Utils . IApplicationSettings CreateApplicationSettings ( ) => this ;
174-
175- #endregion
176-
177151 #region IApplicationSettings
178152
179153 static readonly object configLock = new ( ) ;
0 commit comments