Skip to content

Commit

Permalink
Hide custom entitlements
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Sep 13, 2024
1 parent 1fa37ac commit 155e5e8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions ProjectTemplates/ShinyApp/ShinyApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,27 +75,27 @@
</PropertyGroup>

<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" />
<CustomEntitlements Include="com.apple.security.network.client" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.app-sandbox" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.get-task-allow" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.network.client" Type="boolean" Value="true" Visible="false" />
</ItemGroup>

<!--#endif-->
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
<BundleResource Include="Platforms\iOS\PrivacyInfo.xcprivacy" LogicalName="PrivacyInfo.xcprivacy" />

<!--#if (usemsal)-->
<CustomEntitlements Include="keychain-access-groups" Type="StringArray" Value="%24(AppIdentifierPrefix)$(ApplicationId);%24(AppIdentifierPrefix)com.microsoft.adalcache" />
<CustomEntitlements Include="keychain-access-groups" Type="StringArray" Value="%24(AppIdentifierPrefix)$(ApplicationId);%24(AppIdentifierPrefix)com.microsoft.adalcache" Visible="false" />
<!--#else-->
<CustomEntitlements Include="keychain-access-groups" Type="StringArray" Value="%24(AppIdentifierPrefix)$(ApplicationId)" />
<CustomEntitlements Include="keychain-access-groups" Type="StringArray" Value="%24(AppIdentifierPrefix)$(ApplicationId)" Visible="false" />
<!--#endif-->
<!--#if (usedeeplinks)-->
<CustomEntitlements Include="com.apple.developer.associated-domains" Type="StringArray" Value="applinks:{DEEPLINK_HOST}?mode=developer" Condition="'$(Configuration)' == 'Debug'" />
<CustomEntitlements Include="com.apple.developer.associated-domains" Type="StringArray" Value="applinks:{DEEPLINK_HOST}" Condition="'$(Configuration)' == 'Release'" />
<CustomEntitlements Include="com.apple.developer.associated-domains" Type="StringArray" Value="applinks:{DEEPLINK_HOST}?mode=developer" Condition="'$(Configuration)' == 'Debug'" Visible="false" />
<CustomEntitlements Include="com.apple.developer.associated-domains" Type="StringArray" Value="applinks:{DEEPLINK_HOST}" Condition="'$(Configuration)' == 'Release'" Visible="false" />
<!--#endif-->
<!--#if (usepush)-->
<CustomEntitlements Include="aps-environment" Type="string" Value="development" Condition="'$(Configuration)' == 'Debug'" />
<CustomEntitlements Include="aps-environment" Type="string" Value="production" Condition="'$(Configuration)' == 'Release'" />
<CustomEntitlements Include="aps-environment" Type="string" Value="development" Condition="'$(Configuration)' == 'Debug'" Visible="false" />
<CustomEntitlements Include="aps-environment" Type="string" Value="production" Condition="'$(Configuration)' == 'Release'" Visible="false" />
<!--#endif-->
<!--#if (notifications)-->
<!--
Expand All @@ -104,19 +104,19 @@
-->
<!--#endif-->
<!--#if (essentialsfilepicker)-->
<CustomEntitlements Include="com.apple.security.assets.movies.read-only" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.assets.music.read-only" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.assets.pictures.read-only" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.files.user-selected.read-only" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.files.downloads.read-only" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.personal-information.photos-library" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.assets.movies.read-only" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.assets.music.read-only" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.assets.pictures.read-only" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.files.user-selected.read-only" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.files.downloads.read-only" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.personal-information.photos-library" Type="boolean" Value="true" Visible="false" />
<!--#endif-->
<!--#if (carplay)-->
<CustomEntitlements Include="com.apple.developer.carplay-driving-task" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.developer.carplay-driving-task" Type="boolean" Value="true" Visible="false" />
<!--#endif-->
<!--#if (calendar)-->
<CustomEntitlements Include="com.apple.security.app-sandbox" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.personal-information.calendar" Type="boolean" Value="true" />
<CustomEntitlements Include="com.apple.security.app-sandbox" Type="boolean" Value="true" Visible="false" />
<CustomEntitlements Include="com.apple.security.personal-information.calendar" Type="boolean" Value="true" Visible="false" />
<!--#endif-->
</ItemGroup>

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>2.61.0</PackageVersion>
<PackageVersion>2.61.1</PackageVersion>
<PackageId>Shiny.Templates</PackageId>
<Title>Shiny Templates</Title>
<Authors>Allan Ritchie</Authors>
Expand Down

0 comments on commit 155e5e8

Please sign in to comment.