Skip to content

Commit

Permalink
Merge pull request #23 from jbe2277/MigrateToMaui
Browse files Browse the repository at this point in the history
Migrate to maui
  • Loading branch information
jbe2277 authored Dec 26, 2022
2 parents 4dee11f + 735c453 commit 7cba552
Show file tree
Hide file tree
Showing 168 changed files with 1,086 additions and 1,818 deletions.
57 changes: 45 additions & 12 deletions .github/workflows/NewsReader.CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,55 @@ on:
- '.github/workflows/**'

jobs:
Android-UWP:
Android:
runs-on: windows-2022
steps:
- uses: actions/checkout@v1
- name: Build Android
- uses: actions/checkout@v3
- name: Install .NET MAUI
run: |
$Env:MSBUILD_PATH="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\msbuild.exe"
& $Env:MSBUILD_PATH ./src/NewsReader/NewsReader.sln -p:Configuration=Release -p:Platform="Any CPU" -m /restore
- name: Build UWP
dotnet nuget locals all --clear
dotnet workload install maui android
- name: Build
run: |
$Env:MSBUILD_PATH="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\msbuild.exe"
& $Env:MSBUILD_PATH ./src/NewsReader/NewsReader.UWP/NewsReader.UWP.csproj -p:Configuration=Debug -p:Platform="x86" -m /restore
cd src/NewsReader/NewsReader.Presentation
dotnet publish -f:net7.0-android -c:Debug # Workaround for https://github.com/dotnet/linker/issues/3126
Windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Install .NET MAUI
run: |
dotnet nuget locals all --clear
dotnet workload install maui
- name: Build
run: |
cd src/NewsReader/NewsReader.Presentation
dotnet publish -f:net7.0-windows10.0.19041.0 -c:Release
iOS:
runs-on: macos-latest
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Set Xcode version
run: |
XCODE_ROOT=/Applications/Xcode_14.2.app
echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV # set environment variable to specify Xcode for Mono and Xamarin
sudo xcode-select -s $XCODE_ROOT
- name: Install .NET MAUI
run: |
dotnet nuget locals all --clear
dotnet workload install maui ios
- name: Build
run: |
cd src/NewsReader/NewsReader.Presentation
dotnet build -f net7.0-ios -c Debug /p:packageApp=false /p:buildForSimulator=true /p:ArchiveOnBuild=false
Test:
runs-on: windows-2022
steps:
- uses: actions/checkout@v1
- name: iOS
run: msbuild ./src/NewsReader/NewsReader.iOS/NewsReader.iOS.csproj -p:Configuration=Debug -p:Platform="iPhoneSimulator" /restore
- uses: actions/checkout@v3
- name: Domain.Test
run: |
cd src/NewsReader/NewsReader.Domain.Test
dotnet test -c:Release
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
# Unit test results
[Tt]est[Rr]esults

# Launch settings
launchSettings.json
!src/NewsReader/NewsReader.Presentation/Properties/launchSettings.json

# NuGet Packages Directory
nuget.exe
packages/
Expand Down
15 changes: 0 additions & 15 deletions src/NewsReader/Directory.Build.props

This file was deleted.

21 changes: 0 additions & 21 deletions src/NewsReader/Directory.Build.targets

This file was deleted.

14 changes: 0 additions & 14 deletions src/NewsReader/NewsReader.Android/AndroidModule.cs

This file was deleted.

19 changes: 0 additions & 19 deletions src/NewsReader/NewsReader.Android/Assets/AboutAssets.txt

This file was deleted.

6 changes: 0 additions & 6 deletions src/NewsReader/NewsReader.Android/GlobalSuppressions.cs

This file was deleted.

9 changes: 0 additions & 9 deletions src/NewsReader/NewsReader.Android/Log.cs

This file was deleted.

63 changes: 0 additions & 63 deletions src/NewsReader/NewsReader.Android/MainActivity.cs

This file was deleted.

118 changes: 0 additions & 118 deletions src/NewsReader/NewsReader.Android/NewsReader.Android.csproj

This file was deleted.

14 changes: 0 additions & 14 deletions src/NewsReader/NewsReader.Android/Properties/AndroidManifest.xml

This file was deleted.

9 changes: 0 additions & 9 deletions src/NewsReader/NewsReader.Android/Properties/AssemblyInfo.cs

This file was deleted.

Loading

0 comments on commit 7cba552

Please sign in to comment.