Correctif et racourcissement du chemin d'accès de l'App (trop long donc empechant le build)

pull/13/head
Rémi LAVERGNE 2 years ago
parent 2c6ee01f11
commit 5077059a9b

Binary file not shown.

@ -4,38 +4,39 @@
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:GameAtlas.Views" xmlns:views="clr-namespace:GameAtlas.Views"
Shell.FlyoutBehavior="Disabled"> Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False">
<Shell.Resources> <Shell.Resources>
<ResourceDictionary> <ResourceDictionary>
<Style x:Key="BaseStyle" TargetType="Element"> <Style x:Key="BaseStyle" TargetType="Element">
<Setter Property="Shell.ForegroundColor" Value="{StaticResource Gray1000}" /> <Setter Property="Shell.ForegroundColor" Value="{StaticResource Gray1000}" />
<Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray300}" /> <Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray300}" />
<Setter Property="Shell.TabBarBackgroundColor" Value="{StaticResource Gray1000}" /> <Setter Property="Shell.TabBarBackgroundColor" Value="{StaticResource Gray1000}" />
<Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource White}"/> <Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource White}"/>
<Setter Property="Shell.TabBarUnselectedColor" Value="{StaticResource Gray300}"/> <Setter Property="Shell.TabBarUnselectedColor" Value="{StaticResource Gray300}"/>
</Style> </Style>
<Style TargetType="TabBar" BasedOn="{StaticResource BaseStyle}" /> <Style TargetType="TabBar" BasedOn="{StaticResource BaseStyle}" />
<Style TargetType="FlyoutItem" BasedOn="{StaticResource BaseStyle}" /> <Style TargetType="FlyoutItem" BasedOn="{StaticResource BaseStyle}" />
</ResourceDictionary> </ResourceDictionary>
</Shell.Resources> </Shell.Resources>
<TabBar> <TabBar>
<ShellContent <ShellContent
Title="Accueil" Title="Accueil"
Icon="home" Icon="home"
ContentTemplate="{DataTemplate views:PageAcceuil}" ContentTemplate="{DataTemplate views:PageAcceuil}"
Route="PageAccueil" /> Route="PageAccueil" />
<ShellContent <ShellContent
Title="Parcourir" Title="Parcourir"
Icon="console" Icon="console"
ContentTemplate="{DataTemplate views:PageParcourir}" ContentTemplate="{DataTemplate views:PageParcourir}"
Route="PageParcourir" /> Route="PageParcourir" />
<ShellContent <ShellContent
Title="Profil" Title="Profil"
Icon="account" Icon="account"
ContentTemplate="{DataTemplate views:PageProfil}" ContentTemplate="{DataTemplate views:PageProfil}"
Route="PageProfil" /> Route="PageProfil" />
</TabBar> </TabBar>

@ -1,9 +1,13 @@
namespace GameAtlas; using GameAtlas.Views;
namespace GameAtlas;
public partial class AppShell : Shell public partial class AppShell : Shell
{ {
public AppShell() public AppShell()
{ {
InitializeComponent(); InitializeComponent();
}
Routing.RegisterRoute(nameof(PageJeu), typeof(PageJeu));
}
} }

@ -1,6 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<UseShortFileNames>True</UseShortFileNames>
<IntermediateOutputPath>C:\Apps\GameAtlas</IntermediateOutputPath>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks> <TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks> <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.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 --> <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
@ -15,7 +20,7 @@
<ApplicationTitle>GameAtlas</ApplicationTitle> <ApplicationTitle>GameAtlas</ApplicationTitle>
<!-- App Identifier --> <!-- App Identifier -->
<ApplicationId>com.companyname.gameatlas</ApplicationId> <ApplicationId>com.iut-clermont-auvergne.gameatlas</ApplicationId>
<ApplicationIdGuid>a4373575-ecb5-4bcd-9c57-7366fb6946a7</ApplicationIdGuid> <ApplicationIdGuid>a4373575-ecb5-4bcd-9c57-7366fb6946a7</ApplicationIdGuid>
<!-- Versions --> <!-- Versions -->

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen> <IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net7.0-android</ActiveDebugFramework> <ActiveDebugFramework>net7.0-android</ActiveDebugFramework>
<ActiveDebugProfile>Pixel 5 - API 33 (1) (Android 13.0 - API 33)</ActiveDebugProfile> <ActiveDebugProfile>Xiaomi 2201117SY (Android 12.0 - API 31)</ActiveDebugProfile>
<SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup> <SelectedPlatformGroup>PhysicalDevice</SelectedPlatformGroup>
<DefaultDevice>pixel_5_-_api_33_1</DefaultDevice> <DefaultDevice>pixel_5_-_api_33_1</DefaultDevice>
</PropertyGroup> </PropertyGroup>

@ -9,6 +9,6 @@ public partial class PageProfil : ContentPage
async void OnGame_Tapped(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e) async void OnGame_Tapped(System.Object sender, Microsoft.Maui.Controls.TappedEventArgs e)
{ {
await Shell.Current.GoToAsync(nameof(DetailPage)); await Shell.Current.GoToAsync(nameof(PageJeu));
} }
} }
Loading…
Cancel
Save