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

Commit

Permalink
Merge pull request #1990 from xamarin/supress-obsolete
Browse files Browse the repository at this point in the history
Add suppression for iOS FromBundleIdentifier obsolete
  • Loading branch information
jfversluis authored Apr 8, 2022
2 parents dedd7ea + 362eb54 commit bc74dce
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit bc74dce

Please sign in to comment.