Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Add suppression for iOS FromBundleIdentifier obsolete #1990

Merged
merged 1 commit into from
Apr 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions Xamarin.Essentials/AppInfo/AppInfo.ios.tvos.watchos.macos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ static void PlatformShowSettingsUI()
{
MainThread.BeginInvokeOnMainThread(() =>
{
// Ignore obsolete for the time being. Will be updated in a future release.
#pragma warning disable CS0618 // Type or member is obsolete
var prefsApp = ScriptingBridge.SBApplication.FromBundleIdentifier("com.apple.systempreferences");
#pragma warning restore CS0618 // Type or member is obsolete
prefsApp.SendMode = ScriptingBridge.AESendMode.NoReply;
prefsApp.Activate();
});
Expand Down