Skip to content

Commit a73a639

Browse files
committed
Fix build
1 parent 3dd3a4c commit a73a639

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Plugin.Maui.FormsMigration/SecureStorage/KeyChain.ios.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Foundation;
12
using Security;
23

34
namespace Plugin.Maui.FormsMigration;

src/Plugin.Maui.FormsMigration/VersionTracking/LegacyPreferences.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static T PlatformGet<T>(string key, T defaultValue, string sharedName)
8585

8686
static ISharedPreferences GetSharedPreferences(string sharedName)
8787
{
88-
var context = Application.Context;
88+
var context = Platform.AppContext;
8989

9090
return string.IsNullOrWhiteSpace(sharedName) ?
9191
#pragma warning disable CS0618 // Type or member is obsolete

src/Plugin.Maui.FormsMigration/VersionTracking/LegacyPreferences.ios.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Globalization;
2+
using Foundation;
23

34
namespace Plugin.Maui.FormsMigration;
45

0 commit comments

Comments
 (0)