Skip to content

Commit

Permalink
🎨 BD_AppCenter.Start
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed Nov 25, 2024
1 parent 815e426 commit 1648d65
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/VisualStudioAppCenterSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,18 @@ internal static void Init()
AppCenter.Start(appSecret, typeof(Analytics), typeof(Crashes));

#if !USE_MS_APPCENTER_ANALYTICS && !APP_REVERSE_PROXY && (WINDOWS || LINUX || MACCATALYST || MACOS)
BD_AppCenter.SetDeviceInformationHelper(utils);
BD_AppCenter.SetPlatformHelper(utils);
if (Startup.Instance.IsMainProcess)
{
BD_AppCenter.SetDeviceInformationHelper(utils);
BD_AppCenter.SetPlatformHelper(utils);
#pragma warning disable CS0612 // 类型或成员已过时
BD_AppCenter.SetApplicationSettingsFactory(utils);
BD_AppCenter.SetApplicationSettingsFactory(utils);
#pragma warning restore CS0612 // 类型或成员已过时

BD_AppCenter.SetLogUrl(Constants.Urls.ApiBaseUrl);
BD_AppCenter.SetLogUrl(Constants.Urls.ApiBaseUrl);

BD_AppCenter.Start(appSecret, typeof(BD.AppCenter.Analytics.Analytics));
BD_AppCenter.Start(appSecret, typeof(BD.AppCenter.Analytics.Analytics));
}
#endif
}

Expand Down

0 comments on commit 1648d65

Please sign in to comment.