-
Notifications
You must be signed in to change notification settings - Fork 495
Fix: [BUG] StatusBarBehavior is causing Android layouts to go behind status bar and navigation bar buttons on launch #2351 #3189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Pastajello
wants to merge
27
commits into
CommunityToolkit:main
Choose a base branch
from
Pastajello:bugfix/2351-content-behind-statusbar
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
cd77417
change behaviour for API 30+
Pastajello 86e456f
remove not needed flad for <=API29 add sample project?
Pastajello 3ac122b
remove not needed transparency
Pastajello 2f9aa9d
remove sample
Pastajello 7b0d69c
better sample
Pastajello 6d5a5d9
remove remaining files
Pastajello 5d30f95
Merge branch 'main' into bugfix/2351-content-behind-statusbar
Pastajello 8514bec
PR refactorings
Pastajello 4e80d0d
restore previous page formatting
Pastajello 1235318
remove more formatting changes
Pastajello 7c785b2
Apply suggestion from @TheCodeTraveler
Pastajello 3e55567
fix wrong names
Pastajello 6123950
even more formatting fixes
Pastajello 81c74df
Merge branch 'main' into bugfix/2351-content-behind-statusbar
ne0rrmatrix 5033fa4
Merge branch 'main' into bugfix/2351-content-behind-statusbar
TheCodeTraveler 1d2ebb7
Merge branch 'main' into bugfix/2351-content-behind-statusbar
Pastajello 0b95162
Fix namespaces, better naming + add SafeAreaEdges Default
MerSpyro c73ae04
revert refactoring
MerSpyro 09f0158
Apply suggestion from @TheCodeTraveler
TheCodeTraveler 2a62ecd
Update samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/StatusBar…
TheCodeTraveler 5d6047c
Update samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/StatusBar…
TheCodeTraveler 73241d4
add flag clearing -copilot suggestion
MerSpyro 517b8f7
Merge branch 'bugfix/2351-content-behind-statusbar' of https://github…
MerSpyro d81f5f4
Update samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/StatusBar…
Pastajello 9dfebba
remove support android
MerSpyro 4825bac
Merge branch 'bugfix/2351-content-behind-statusbar' of https://github…
MerSpyro c0984d2
Apply suggestion from @TheCodeTraveler
TheCodeTraveler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?xml version = "1.0" encoding = "UTF-8" ?> | ||
| <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
| xmlns:local="clr-namespace:MauiApp1" | ||
| x:Class="MauiApp1.App"> | ||
| <Application.Resources> | ||
| <ResourceDictionary> | ||
| <ResourceDictionary.MergedDictionaries> | ||
| <ResourceDictionary Source="Resources/Styles/Colors.xaml" /> | ||
| <ResourceDictionary Source="Resources/Styles/Styles.xaml" /> | ||
| </ResourceDictionary.MergedDictionaries> | ||
| </ResourceDictionary> | ||
| </Application.Resources> | ||
| </Application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| namespace MauiApp1 | ||
| { | ||
| public partial class App : Application | ||
| { | ||
| public App() | ||
| { | ||
| InitializeComponent(); | ||
|
|
||
| var shell = new AppShell(); | ||
|
|
||
| MainPage = shell; | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="UTF-8" ?> | ||
| <Shell | ||
| x:Class="MauiApp1.AppShell" | ||
| xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
| xmlns:local="clr-namespace:MauiApp1" | ||
| xmlns:xct="clr-namespace:CommunityToolkit.Maui.Behaviors;assembly=CommunityToolkit.Maui" | ||
| Shell.FlyoutBehavior="Disabled" | ||
| Title="MauiApp1"> | ||
|
|
||
| <Shell.Behaviors> | ||
| <xct:StatusBarBehavior StatusBarStyle="LightContent"/> | ||
| </Shell.Behaviors> | ||
|
|
||
| <ShellContent | ||
| Title="Home" | ||
| ContentTemplate="{DataTemplate local:InitialPage}" | ||
| Route="MainPage" /> | ||
|
|
||
| <TabBar Route="Tabbar"> | ||
| <Tab Title="Tab 1"> | ||
| <ShellContent | ||
| Title="Tab 1" | ||
| ContentTemplate="{DataTemplate local:MainPage}"/> | ||
| </Tab> | ||
| <Tab Title="Tab 2"> | ||
| <ShellContent | ||
| Title="Tab 1" | ||
| ContentTemplate="{DataTemplate local:MainPage}"/> | ||
| </Tab> | ||
| </TabBar> | ||
| </Shell> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| namespace MauiApp1 | ||
| { | ||
| public partial class AppShell : Shell | ||
| { | ||
| public AppShell() | ||
| { | ||
| InitializeComponent(); | ||
|
|
||
| GoToAsync("//Tabbar"); | ||
|
Pastajello marked this conversation as resolved.
Outdated
|
||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
| x:Class="MauiApp1.InitialPage" | ||
| Title="InitialPage"> | ||
|
|
||
| <Shell.TitleView > | ||
| <Grid BackgroundColor="Yellow"> | ||
| <Label Text="TITLE VIEW" HorizontalOptions="Center" /> | ||
|
|
||
| </Grid> | ||
| </Shell.TitleView> | ||
|
|
||
|
|
||
| <VerticalStackLayout> | ||
| <Label | ||
| Text="Welcome to .NET MAUI!" | ||
| VerticalOptions="Center" | ||
| HorizontalOptions="Center" /> | ||
| </VerticalStackLayout> | ||
| </ContentPage> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| namespace MauiApp1; | ||
|
|
||
| public partial class InitialPage : ContentPage | ||
| { | ||
| public InitialPage() | ||
| { | ||
| InitializeComponent(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <ContentPage | ||
| x:Class="MauiApp1.MainPage" | ||
| xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> | ||
|
|
||
| <Shell.TitleView> | ||
| <Grid BackgroundColor="Yellow"> | ||
| <Label HorizontalOptions="Center" Text="TITLE VIEW" /> | ||
|
|
||
| </Grid> | ||
| </Shell.TitleView> | ||
|
|
||
| <Grid RowDefinitions="auto, auto, *"> | ||
| <Label Text="Top line" /> | ||
|
|
||
| <VerticalStackLayout | ||
| Grid.Row="1" | ||
| Padding="30,0" | ||
| Spacing="25"> | ||
| <Image | ||
| Aspect="AspectFit" | ||
| HeightRequest="185" | ||
| SemanticProperties.Description="dot net bot in a race car number eight" | ||
| Source="dotnet_bot.png" /> | ||
|
|
||
| <Label | ||
| SemanticProperties.HeadingLevel="Level1" | ||
| Style="{StaticResource Headline}" | ||
| Text="Hello, World!" /> | ||
|
|
||
| <Label | ||
| SemanticProperties.Description="Welcome to dot net Multi platform App U I" | ||
| SemanticProperties.HeadingLevel="Level2" | ||
| Style="{StaticResource SubHeadline}" | ||
| Text="Welcome to .NET Multi-platform App UI" /> | ||
|
|
||
| <Button | ||
| HorizontalOptions="Fill" | ||
| SemanticProperties.Hint="Counts the number of times you click" | ||
| Text="Click me" | ||
| x:Name="CounterBtn" /> | ||
| </VerticalStackLayout> | ||
|
|
||
| <Label | ||
| Grid.Row="2" | ||
| Text="Bottom" | ||
| VerticalOptions="End" /> | ||
|
|
||
| </Grid> | ||
|
|
||
| </ContentPage> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| namespace MauiApp1 | ||
| { | ||
| public partial class MainPage : ContentPage | ||
| { | ||
| int count = 0; | ||
|
|
||
| public MainPage() | ||
| { | ||
| InitializeComponent(); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net10.0-android;</TargetFrameworks> | ||
| <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks> | ||
| <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --> | ||
| <!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> --> | ||
|
|
||
| <!-- Note for MacCatalyst: | ||
| The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64. | ||
| When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>. | ||
| The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated; | ||
| either BOTH runtimes must be indicated or ONLY macatalyst-x64. --> | ||
| <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> --> | ||
|
|
||
| <OutputType>Exe</OutputType> | ||
| <RootNamespace>MauiApp1</RootNamespace> | ||
| <UseMaui>true</UseMaui> | ||
| <SingleProject>true</SingleProject> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| <MauiVersion>10.0.51</MauiVersion> | ||
|
|
||
|
Pastajello marked this conversation as resolved.
Outdated
|
||
| <!-- Display name --> | ||
| <ApplicationTitle>MauiApp1</ApplicationTitle> | ||
|
|
||
| <!-- App Identifier --> | ||
| <ApplicationId>com.companyname.mauiapp1</ApplicationId> | ||
|
|
||
| <!-- Versions --> | ||
| <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> | ||
| <ApplicationVersion>1</ApplicationVersion> | ||
|
|
||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion> | ||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion> | ||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> | ||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> | ||
| <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> | ||
| <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <!-- App Icon --> | ||
| <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> | ||
|
|
||
| <!-- Splash Screen --> | ||
| <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> | ||
|
|
||
| <!-- Images --> | ||
| <MauiImage Include="Resources\Images\*" /> | ||
| <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" /> | ||
|
|
||
| <!-- Custom Fonts --> | ||
| <MauiFont Include="Resources\Fonts\*" /> | ||
|
|
||
| <!-- Raw Assets (also remove the "Resources\Raw" prefix) --> | ||
| <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="CommunityToolkit.Maui" Version="14.1.0" /> | ||
| <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" /> | ||
| <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.MediaElement.SourceGenerators\CommunityToolkit.Maui.MediaElement.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.SourceGenerators\CommunityToolkit.Maui.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.Analyzers\CommunityToolkit.Maui.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.Analyzers.CodeFixes\CommunityToolkit.Maui.Analyzers.CodeFixes.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.MediaElement.Analyzers\CommunityToolkit.Maui.MediaElement.Analyzers.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes\CommunityToolkit.Maui.MediaElement.Analyzers.CodeFixes.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.MediaElement\CommunityToolkit.Maui.MediaElement.csproj" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.Camera\CommunityToolkit.Maui.Camera.csproj" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui\CommunityToolkit.Maui.csproj" /> | ||
| <ProjectReference Include="..\..\src\CommunityToolkit.Maui.Maps\CommunityToolkit.Maui.Maps.csproj" /> | ||
| </ItemGroup> | ||
|
Pastajello marked this conversation as resolved.
Outdated
|
||
|
|
||
| <ItemGroup> | ||
| <MauiXaml Update="InitialPage.xaml"> | ||
| <Generator>MSBuild:Compile</Generator> | ||
| </MauiXaml> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| using CommunityToolkit.Maui; | ||
| using Microsoft.Extensions.Logging; | ||
|
|
||
| namespace MauiApp1 | ||
| { | ||
| public static class MauiProgram | ||
| { | ||
| public static MauiApp CreateMauiApp() | ||
| { | ||
| var builder = MauiApp.CreateBuilder(); | ||
| builder | ||
| .UseMauiApp<App>() | ||
| .UseMauiCommunityToolkit() | ||
| .UseMauiCommunityToolkitMediaElement(false,null) | ||
| .ConfigureFonts(fonts => | ||
| { | ||
|
Pastajello marked this conversation as resolved.
Outdated
|
||
| fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); | ||
| fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); | ||
| }); | ||
|
|
||
|
|
||
| return builder.Build(); | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application> | ||
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
| <uses-permission android:name="android.permission.INTERNET" /> | ||
| </manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| using Android.App; | ||
| using Android.Content.PM; | ||
| using Android.OS; | ||
|
|
||
| namespace MauiApp1 | ||
| { | ||
| [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] | ||
| public class MainActivity : MauiAppCompatActivity | ||
| { | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| using Android.App; | ||
| using Android.Runtime; | ||
|
|
||
| namespace MauiApp1 | ||
| { | ||
| [Application] | ||
| public class MainApplication : MauiApplication | ||
| { | ||
| public MainApplication(IntPtr handle, JniHandleOwnership ownership) | ||
| : base(handle, ownership) | ||
| { | ||
| } | ||
|
|
||
| protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
samples/MauiApp1/Platforms/Android/Resources/values/colors.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <color name="colorPrimary">#512BD4</color> | ||
| <color name="colorPrimaryDark">#2B0B98</color> | ||
| <color name="colorAccent">#2B0B98</color> | ||
| </resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| using Foundation; | ||
|
|
||
| namespace MauiApp1 | ||
| { | ||
| [Register("AppDelegate")] | ||
| public class AppDelegate : MauiUIApplicationDelegate | ||
| { | ||
| protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist version="1.0"> | ||
| <!-- See https://aka.ms/maui-publish-app-store#add-entitlements for more information about adding entitlements.--> | ||
| <dict> | ||
| <!-- App Sandbox must be enabled to distribute a MacCatalyst app through the Mac App Store. --> | ||
| <key>com.apple.security.app-sandbox</key> | ||
| <true/> | ||
| <!-- When App Sandbox is enabled, this value is required to open outgoing network connections. --> | ||
| <key>com.apple.security.network.client</key> | ||
| <true/> | ||
| </dict> | ||
| </plist> | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.