diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ef0f91c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,16 @@ +kind: pipeline +type: docker +name: myFirstPipeline + +trigger: + event: + - push + +steps: + - name: build + image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dotnet7-maui:latest + commands: + - cd Sources/ + - dotnet restore MauiApp1.sln + - dotnet build MauiApp1.sln -c Release --no-restore /p:AndroidSdkDirectory=$ANDROID_SDK_ROOT -property:Aapt2ToolPath=$ANDROID_SDK_ROOT/build-tools/33.0.0 + - dotnet publish MauiApp1/MauiApp1.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/release -f:net7.0-android /p:AndroidSdkDirectory=/usr/lib/android-sdk \ No newline at end of file diff --git a/Sources/MauiApp1/MauiApp1.csproj b/Sources/MauiApp1/MauiApp1.csproj index 9f2b5e1..cd5cfc5 100644 --- a/Sources/MauiApp1/MauiApp1.csproj +++ b/Sources/MauiApp1/MauiApp1.csproj @@ -1,8 +1,8 @@  - net7.0-android;net7.0-ios;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041.0 + net7.0-android + $(TargetFrameworks);net7.0-windows10.0.19041.0 Exe @@ -29,7 +29,6 @@ 10.0.17763.0 6.5 - diff --git a/Sources/Model/Carte.cs b/Sources/Model/Carte.cs new file mode 100644 index 0000000..5e2fcfe --- /dev/null +++ b/Sources/Model/Carte.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Carte + { + private string prix; + private string description; + private string pouvoir; + private string strategies; + private int note; + private string lienImage; + public Carte(string nom, string description, string pouvoir, string strategies, int note, string lienimage) + { + this.prix = nom; + this.description = description; + this.pouvoir = pouvoir; + this.strategies = strategies; + this.note = note; + this.lienImage = lienimage; + } + } +} diff --git a/Sources/Model/Class1.cs b/Sources/Model/Class1.cs index c9dd8cb..d5428ff 100644 --- a/Sources/Model/Class1.cs +++ b/Sources/Model/Class1.cs @@ -1,14 +1,12 @@ - - -using System Text; -using System Threading Tasks; - - -namespace Model -{ - public interface IDataManager - { - IEnumerable RecupererGroupe(); - IEnumerable RecupererEtudiant(); - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + internal class Class1 + { + } +}