From f7656da56d8dfeb14716e543168266a36df3e774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Thu, 11 Jul 2024 16:10:54 +0200 Subject: [PATCH] Get rid of Xamarin dependency in core project. --- Wino.Core/Authenticators/GmailAuthenticator.cs | 3 +-- Wino.Core/Wino.Core.csproj | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Wino.Core/Authenticators/GmailAuthenticator.cs b/Wino.Core/Authenticators/GmailAuthenticator.cs index 3c77136e..2e623871 100644 --- a/Wino.Core/Authenticators/GmailAuthenticator.cs +++ b/Wino.Core/Authenticators/GmailAuthenticator.cs @@ -13,7 +13,6 @@ using Wino.Core.Domain.Interfaces; using Wino.Core.Domain.Models.Authentication; using Wino.Core.Domain.Models.Authorization; using Wino.Core.Services; -using Xamarin.Essentials; namespace Wino.Core.Authenticators { @@ -132,7 +131,7 @@ namespace Wino.Core.Authenticators var authorizationUri = authRequest.BuildRequest(ClientId); - await Browser.OpenAsync(authorizationUri, BrowserLaunchMode.SystemPreferred); + await _nativeAppService.LaunchUriAsync(new Uri(authorizationUri)); Uri responseRedirectUri = null; diff --git a/Wino.Core/Wino.Core.csproj b/Wino.Core/Wino.Core.csproj index 07ec28a4..f733ab26 100644 --- a/Wino.Core/Wino.Core.csproj +++ b/Wino.Core/Wino.Core.csproj @@ -32,7 +32,6 @@ -