PC.GoogleClient
1.0.3
dotnet add package PC.GoogleClient --version 1.0.3
NuGet\Install-Package PC.GoogleClient -Version 1.0.3
<PackageReference Include="PC.GoogleClient" Version="1.0.3" />
paket add PC.GoogleClient --version 1.0.3
#r "nuget: PC.GoogleClient, 1.0.3"
// Install PC.GoogleClient as a Cake Addin #addin nuget:?package=PC.GoogleClient&version=1.0.3 // Install PC.GoogleClient as a Cake Tool #tool nuget:?package=PC.GoogleClient&version=1.0.3
A library for asking user login through Oauth2. It's working on .NET 8 MAUI.
To setup the library, we only call a method at MAUI Builder as below:
var builder = MauiApp.CreateBuilder();
builder.UseMauiApp<App>().UseGoogleClient()
We also update Google service files at specific platforms respectively.
For iOS:
<MauiAsset Include="Platforms\iOS\GoogleService-Info.plist" LogicalName="GoogleService-Info.plist" />
For Android
<MauiAsset Include="Platforms\Android\google-services.json" LogicalName="google-services.json" />
To Login:
await CrossGoogleClient.Current.LoginAsync();
To LogOut
await CrossGoogleClient.Current.LogOut();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-android34.0 is compatible. net8.0-ios17.2 is compatible. |
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.14)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.14)
- Xamarin.GooglePlayServices.Auth (>= 120.7.0.3)
- Xamarin.GooglePlayServices.Basement (>= 118.2.0.6)
- Xamarin.GooglePlayServices.Tasks (>= 118.0.2.7)
-
net8.0-ios17.2
- Microsoft.Maui.Controls (>= 8.0.14)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.14)
- Xamarin.Firebase.iOS.Core (>= 8.10.0.3)
- Xamarin.Google.iOS.SignIn (>= 5.0.2.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.3 | 122 | 4/10/2024 |