Skip to content

Commit

Permalink
Fix health integration
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Aug 28, 2023
1 parent c73c8f3 commit 19630e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 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 @@ -146,7 +146,7 @@
"defaultValue": "None"
},
{
"id": "speechrecognition",
"id": "health",
"name": {
"text": "Add Health (Shiny.Health - Apple Health & Google Fit)"
},
Expand Down
2 changes: 1 addition & 1 deletion ProjectTemplates/ShinyApp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
"type": "parameter",
"datatype": "bool",
"defaultValue": "false",
"description": "Add Speech Recognition (Shiny.Health - Apple Health and Google Fit - https://github.com/shinyorg/health)",
"description": "Add Health (Shiny.Health - Apple Health and Google Fit - https://github.com/shinyorg/health)",
"displayName": "Add Health (Shiny.Health)"
},
"startup":{
Expand Down
4 changes: 4 additions & 0 deletions ProjectTemplates/ShinyApp/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,12 @@ static MauiAppBuilder RegisterInfrastructure(this MauiAppBuilder builder)
s.AddPushFirebaseMessaging<ShinyApp.Delegates.MyPushDelegate>();
#endif
#if health
//-:cnd:noEmit
#if !MACCATALYST
s.AddHealthIntegration();
#endif
//+:cnd:noEmit
#endif
#if shinyframework
s.AddDataAnnotationValidation();
s.AddGlobalCommandExceptionHandler(new(
Expand Down
2 changes: 1 addition & 1 deletion Template.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>Shiny.NET Templates - One stop shop to setup almost everything you can imagine within your .NET MAUI application</Description>
<PackageType>Template</PackageType>
<PackageVersion>1.0-beta-0011</PackageVersion>
<PackageVersion>1.0-beta-0012</PackageVersion>
<PackageId>Shiny.Templates</PackageId>
<Title>Shiny Templates</Title>
<Authors>Allan Ritchie</Authors>
Expand Down

0 comments on commit 19630e7

Please sign in to comment.