Skip to content

Commit

Permalink
Update Plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed May 8, 2024
1 parent b994d55 commit 057db2f
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion ProjectTemplates/ShinyApp/.template.config/ide.host.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
},{
"id": "fingerprint",
"name":{
"text": "Add Fingerprint/Facial Recognition (Plugin.Fingerprint)"
"text": "Add Fingerprint/Facial Recognition (Maui.Biometric)"
},
"isVisible": true
},{
Expand Down
4 changes: 2 additions & 2 deletions ProjectTemplates/ShinyApp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@
"type": "parameter",
"datatype": "bool",
"defaultValue": "false",
"description": "Fingerprint Plugin by Sven-Michael Stübe - Documentation https://github.com/smstuebe/xamarin-fingerprint",
"displayName": "Add Fingerprint/Facial Recognition (Plugin.Fingerprint)"
"description": "Fingerprint Plugin by Konstantin S & Sven-Michael Stübe - Documentation https://github.com/oscoreio/Maui.Biometric",
"displayName": "Add Biometric Recognition (Maui.Biometric)"
},
"flipper":{
"type": "parameter",
Expand Down
6 changes: 3 additions & 3 deletions ProjectTemplates/ShinyApp/Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ _Provides the ability to record the screen from within your .NET MAUI app - Writ

<!--#endif-->
<!--#if (fingerprint)-->
## Fingerprint Plugin
## MAUI Biometric Plugin

_A plugin for accessing the fingerprint, Face ID or other biometric sensors. - Written by Sven-Michael Stübe_
_Provides a cross-platform implementation of biometric authentication. Continuation of the abandoned Plugin.Fingerprint in the MAUI ecosystem.. - Written by Konstantin S & Sven-Michael Stübe_

* [Fingerprint Plugin](https://github.com/smstuebe/xamarin-fingerprint)
* [GitHub](https://github.com/oscoreio/Maui.Biometric)

<!--#endif-->
<!--#if (usehttp)-->
Expand Down
14 changes: 3 additions & 11 deletions ProjectTemplates/ShinyApp/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ public static MauiApp CreateMauiApp() => MauiApp
.OnAppAction(y => Shiny.Hosting.Host.GetService<ShinyApp.Delegates.AppActionDelegate>()!.Handle(y))
)
#endif
#if fingerprint
.UseBiometricAuthentication()
#endif
#if debugrainbows
//-:cnd:noEmit
#if DEBUG
Expand Down Expand Up @@ -303,17 +306,6 @@ static MauiAppBuilder RegisterInfrastructure(this MauiAppBuilder builder)
#if storereview
s.AddSingleton(Plugin.StoreReview.CrossStoreReview.Current);
#endif
#if fingerprint
s.AddSingleton(sp =>
{
//-:cnd:noEmit
#if ANDROID
Plugin.Fingerprint.CrossFingerprint.SetCurrentActivityResolver(() => sp.GetRequiredService<AndroidPlatform>().CurrentActivity);
#endif
//+:cnd:noEmit
return Plugin.Fingerprint.CrossFingerprint.Current;
});
#endif
#if userdialogs
s.AddSingleton(sp =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,18 @@
<uses-permission android:name="com.android.vending.BILLING" />
<!--#endif-->
<!--#if (fingerprint)-->
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" android:maxSdkVersion="27" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" android:minSdkVersion="28" />
<!--#endif-->
<!--#if (calendar)-->
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<!--#endif-->
<!--#if (essentialsmedia || essentialsfilepicker)-->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="32" />

<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<!--#endif-->
<!--#if (essentialsfilepicker)-->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<!--#endif-->
Expand Down
2 changes: 1 addition & 1 deletion ProjectTemplates/ShinyApp/ShinyApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
<PackageReference Include="Plugin.Maui.Audio" Version="2.1.0" />
<!--#endif-->
<!--#if (fingerprint)-->
<PackageReference Include="Plugin.Fingerprint" Version="3.0.0-beta.1" />
<PackageReference Include="Oscore.Maui.Biometric" Version="1.0.0" />
<!--#endif-->
<!--#if usehttp-->
<PackageReference Include="Refit" Version="7.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
* [MAUI Screen Recording Plugin](https://github.com/jfversluis/Plugin.Maui.ScreenRecording) by Gerald Versluis
* [MAUI Audio Plugin](https://github.com/jfversluis/Plugin.Maui.Audio) by Gerald Versluis
* [MAUI Calendar Store Plugin](https://github.com/jfversluis/Plugin.Maui.CalendarStore) by Gerald Versluis
* [Fingerprint Plugin](https://github.com/smstuebe/xamarin-fingerprint) by Sven-Michael Stübe
* [MAUI Biometric Plugin](https://github.com/oscoreio/Maui.Biometric) by Konstantin S & Sven-Michael Stübe
* [Drastic Flipper](https://github.com/drasticactions/Drastic.Flipper) by Tim Miller
* [Embed.IO](https://unosquare.github.io/embedio/) by Unosquare
* [SkiaSharp](https://github.com/mono/SkiaSharp) by Matthew Leibowitz
Expand Down

0 comments on commit 057db2f

Please sign in to comment.