Skip to content

Commit

Permalink
Mediator 1 & android auto start
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Jun 15, 2024
1 parent 515408c commit dd7bbe6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
12 changes: 8 additions & 4 deletions ProjectTemplates/ShinyApp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -752,27 +752,31 @@
{
"condition": "(androidauto == false)",
"exclude": "Platforms/Android/Resources/xml/automotive_app_desc.xml"
},
},
{
"condition": "(androidauto == false)",
"exclude": "RunAndroidAuto.cmd"
},
{
"condition": "(carplay == false)",
"exclude": "Platforms/iOS/CarPlayImplementation/**"
},
{
"condition": "(authservice == false || usemsal == false)",
"exclude": "Services/Impl/MsalAuthenticationService.cs"
},
},
{
"condition": "(authservice == false || usewebauthenticator == false)",
"exclude": "Services/Impl/WebAuthenticatorAuthenticationService.cs"
},
},
{
"condition": "(authservice == false || refit == false)",
"exclude": "Services/Impl/IApiClient.cs"
},
{
"condition": "(usecsharpmarkup == false)",
"exclude": "CSharpMarkupPage.cs"
},
},
{
"condition": "(storereview == false)",
"exclude": "Platforms/Android/proguard.cfg"
Expand Down
5 changes: 5 additions & 0 deletions ProjectTemplates/ShinyApp/RunAndroidAuto.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
: https://cvstrydom.co.za
: This script forwards your ADB port and launches the Android Auto Desktop Head Unit if it's installed in the default location
: Be sure to start the head unit server on your Android phone first
adb forward tcp:5277 tcp:5277
start "" "%USERPROFILE%\AppData\Local\Android\Sdk\extras\google\auto\desktop-head-unit.exe"
12 changes: 5 additions & 7 deletions ProjectTemplates/ShinyApp/ShinyApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@
<UseHardenedRuntime Condition="'$(Configuration)' == 'Release'">true</UseHardenedRuntime>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)' == 'Release'">
<TrimmerRootDescriptor Include="Linker.xml" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
<CustomEntitlements Include="com.apple.security.app-sandbox" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.get-task-allow" Type="boolean" Value="true" />
Expand Down Expand Up @@ -109,6 +105,8 @@
</ItemGroup>

<ItemGroup>
<TrimmerRootDescriptor Include="Linker.xml" Condition="'$(Configuration)' == 'Release'" />

<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />

Expand Down Expand Up @@ -155,10 +153,10 @@
<PackageReference Include="Shiny.Hosting.Maui" Version="$(ShinyVersion)" />
<!--#endif-->
<!--#if (shinymediator)-->
<PackageReference Include="Shiny.Mediator" Version="1.0.0-alpha-0053" />
<PackageReference Include="Shiny.Mediator.Maui" Version="1.0.0-alpha-0053" />
<PackageReference Include="Shiny.Mediator" Version="1.0.0" />
<PackageReference Include="Shiny.Mediator.Maui" Version="1.0.0" />
<!--#if (useblazor)-->
<PackageReference Include="Shiny.Mediator.Blazor" Version="1.0.0-alpha-0053" />
<PackageReference Include="Shiny.Mediator.Blazor" Version="1.0.0" />
<!--#endif-->
<!--#endif-->
<!--#if (localization)-->
Expand Down

0 comments on commit dd7bbe6

Please sign in to comment.