diff --git a/.drone.yml b/.drone.yml index 818451c..2837315 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,8 +12,7 @@ steps: commands: - cd Sources/ - dotnet restore Ohara.sln - - dotnet build Ohara.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 - - dotnet publish Ohara/Ohara.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk + - dotnet build Ohara.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT - name: tests image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest diff --git a/Sources/Ohara/PageBateau.xaml.cs b/Sources/Ohara/PageBateau.xaml.cs index 95aabaf..54533fd 100644 --- a/Sources/Ohara/PageBateau.xaml.cs +++ b/Sources/Ohara/PageBateau.xaml.cs @@ -17,7 +17,10 @@ public partial class PageBateau : ContentPage listeBateau.ItemsSource = manager.GetBateaux(); } - + private async void Hyperlink_Accueil(object sender, EventArgs e) + { + await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager())); + } private async void Hyperlink_FDD(object sender, EventArgs e) { var player = audioManager.CreatePlayer(await FileSystem.OpenAppPackageFileAsync(chemin)); diff --git a/Sources/Ohara/PageEquipage.xaml.cs b/Sources/Ohara/PageEquipage.xaml.cs index 831ed93..96d87d1 100644 --- a/Sources/Ohara/PageEquipage.xaml.cs +++ b/Sources/Ohara/PageEquipage.xaml.cs @@ -12,7 +12,7 @@ public partial class PageEquipage : ContentPage } private async void Hyperlink_Accueil(object sender, EventArgs e) { - await Navigation.PushAsync(new MainPage()); + await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager())); } private async void Hyperlink_FDD(object sender, EventArgs e) @@ -31,7 +31,7 @@ public partial class PageEquipage : ContentPage } private async void Hyperlink_Bateau(object sender, EventArgs e) { - await Navigation.PushAsync(new PageBateau()); + await Navigation.PushAsync(new PageBateau(new Plugin.Maui.Audio.AudioManager())); } private async void Hyperlink_Bestiaire(object sender, EventArgs e) diff --git a/Sources/Ohara/PageFDD.xaml.cs b/Sources/Ohara/PageFDD.xaml.cs index 27677c6..c1514c3 100644 --- a/Sources/Ohara/PageFDD.xaml.cs +++ b/Sources/Ohara/PageFDD.xaml.cs @@ -1,16 +1,16 @@ namespace Ohara; - -using Model; -using Model.Stub; + +using Model; +using Model.Stub; using System.Windows.Input; -public partial class PageFDD : ContentPage -{ - public ICommand FiltrerType { get; private set; } - public PageFDD() - { - +public partial class PageFDD : ContentPage +{ + public ICommand FiltrerType { get; private set; } + public PageFDD() + { + InitializeComponent(); var manager = new Manager(); @@ -20,41 +20,41 @@ public partial class PageFDD : ContentPage FiltrerType = new Command(() => listeFDD.ItemsSource = manager.FiltrerFDD("Logia")); Logia.Command = FiltrerType; - } - - private void listeFDD_ScrollToRequested(object sender, ScrollToRequestEventArgs e) - { - - } - - private async void Hyperlink_Accueil(object sender, EventArgs e) - { - await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager())); - } - - private async void Hyperlink_Equip(object sender, EventArgs e) - { - await Navigation.PushAsync(new PageEquipage()); - } - - private async void Hyperlink_Perso(object sender, EventArgs e) - { - await Navigation.PushAsync(new PagePersonnage()); - } - private async void Hyperlink_Carte(object sender, EventArgs e) - { - await Navigation.PushAsync(new PageCarte()); - } - private async void Hyperlink_Bateau(object sender, EventArgs e) - { - await Navigation.PushAsync(new PageBateau(new Plugin.Maui.Audio.AudioManager())); - } - private async void Hyperlink_Bestiaire(object sender, EventArgs e) - { - await Navigation.PushAsync(new PageBestiaire()); - } - private async void Hyperlink_Ile(object sender, EventArgs e) - { - await Navigation.PushAsync(new PageIle()); - } + } + + private void listeFDD_ScrollToRequested(object sender, ScrollToRequestEventArgs e) + { + + } + + private async void Hyperlink_Accueil(object sender, EventArgs e) + { + await Navigation.PushAsync(new MainPage(new Plugin.Maui.Audio.AudioManager())); + } + + private async void Hyperlink_Equip(object sender, EventArgs e) + { + await Navigation.PushAsync(new PageEquipage()); + } + + private async void Hyperlink_Perso(object sender, EventArgs e) + { + await Navigation.PushAsync(new PagePersonnage()); + } + private async void Hyperlink_Carte(object sender, EventArgs e) + { + await Navigation.PushAsync(new PageCarte()); + } + private async void Hyperlink_Bateau(object sender, EventArgs e) + { + await Navigation.PushAsync(new PageBateau(new Plugin.Maui.Audio.AudioManager())); + } + private async void Hyperlink_Bestiaire(object sender, EventArgs e) + { + await Navigation.PushAsync(new PageBestiaire()); + } + private async void Hyperlink_Ile(object sender, EventArgs e) + { + await Navigation.PushAsync(new PageIle()); + } } \ No newline at end of file diff --git a/Sources/Ohara/PageInfoBateau.xaml.cs b/Sources/Ohara/PageInfoBateau.xaml.cs index 4c51dae..f1da1c1 100644 --- a/Sources/Ohara/PageInfoBateau.xaml.cs +++ b/Sources/Ohara/PageInfoBateau.xaml.cs @@ -8,9 +8,9 @@ public partial class PageInfoBateau : ContentPage public PageInfoBateau() { InitializeComponent(); - List bateau = StubBateau.RecupererBateau().ToList(); + Manager manager = new Manager(); - listeBateau.ItemsSource = bateau; + listeBateau.ItemsSource = manager.GetBateaux(); } diff --git a/Sources/Ohara/PageInfoIle.xaml.cs b/Sources/Ohara/PageInfoIle.xaml.cs index 1e47fb9..0e667bc 100644 --- a/Sources/Ohara/PageInfoIle.xaml.cs +++ b/Sources/Ohara/PageInfoIle.xaml.cs @@ -8,10 +8,10 @@ public partial class PageInfoIle : ContentPage public PageInfoIle() { InitializeComponent(); - List ile = StubIle.RecupererIle().ToList(); + Manager manager = new Manager(); - listeIle.ItemsSource = ile; + listeIle.ItemsSource = manager.GetIles(); } private async void Hyperlink_Accueil(object sender, EventArgs e) diff --git a/Sources/Ohara/PageInfoPersonnage.xaml.cs b/Sources/Ohara/PageInfoPersonnage.xaml.cs index 9472526..e10c442 100644 --- a/Sources/Ohara/PageInfoPersonnage.xaml.cs +++ b/Sources/Ohara/PageInfoPersonnage.xaml.cs @@ -9,10 +9,10 @@ public partial class PageInfoPersonnage : ContentPage public PageInfoPersonnage() { InitializeComponent(); - List perso = StubPersonnage.RecupererPersonnage().ToList(); + Manager manager = new Manager(); - listePerso.ItemsSource = perso; + listePerso.ItemsSource = manager.GetPersonnages(); } private async void Hyperlink_Accueil(object sender, EventArgs e) {