From 476a93f55481e202f18084f8f59ac073ef6ee3a8 Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Mon, 27 May 2024 07:58:41 +0100 Subject: [PATCH] Housekeeping Retire Xamarin (#788) * Housekeeping Retire Xamarin * Update Samples * Update UPI * Use DotNet Build * Add Runtime Identifier * Update Sample RuntimeIdentifier * Update SextantSample.Maui.csproj * Update SextantSample.Maui.csproj * Update solution * Update build-samples.yml * Revert to Sln as Slnx is not enabled in cloud build * Update build-samples.yml --- .editorconfig | 88 +++- .github/workflows/build-samples.yml | 1 + .github/workflows/ci-build.yml | 1 + .github/workflows/release.yml | 1 + Archive/SextantSample.Android.zip | 3 + Archive/SextantSample.UWP.zip | 3 + Archive/SextantSample.WPF.zip | 3 + Archive/SextantSample.iOS.zip | 3 + Archive/SextantSample.zip | 3 + Samples/SextantSample.Maui/App.xaml | 14 + Samples/SextantSample.Maui/App.xaml.cs | 19 + Samples/SextantSample.Maui/AppShell.xaml | 15 + Samples/SextantSample.Maui/AppShell.xaml.cs | 10 + .../SextantSample.Maui/GlobalUsings.cs | 0 Samples/SextantSample.Maui/MainPage.xaml | 36 ++ Samples/SextantSample.Maui/MainPage.xaml.cs | 25 ++ Samples/SextantSample.Maui/MauiProgram.cs | 38 ++ .../Platforms/Android/AndroidManifest.xml | 4 +- .../Platforms/Android/MainActivity.cs | 11 + .../Platforms/Android/MainApplication.cs | 16 + .../Android/Resources/values/colors.xml | 0 .../Platforms/MacCatalyst/AppDelegate.cs | 10 + .../Platforms/MacCatalyst/Entitlements.plist | 14 + .../Platforms/MacCatalyst}/Info.plist | 14 +- .../Platforms/MacCatalyst/Program.cs | 10 + .../Platforms/Tizen/Main.cs | 17 + .../Platforms/Tizen/tizen-manifest.xml | 15 + .../Platforms/Windows/App.xaml | 0 .../Platforms/Windows/App.xaml.cs | 25 ++ .../Platforms/Windows/Package.appxmanifest | 24 +- .../Platforms/Windows/app.manifest | 0 .../Platforms/iOS/AppDelegate.cs | 10 + .../Platforms/iOS}/Info.plist | 2 + .../Platforms/iOS/Program.cs | 10 + .../Properties/launchSettings.json | 0 .../Resources/AppIcon/appicon.svg | 0 .../Resources/AppIcon/appiconfg.svg | 0 .../Resources/Fonts/OpenSans-Regular.ttf | 3 + .../Resources/Fonts/OpenSans-Semibold.ttf | 3 + .../Resources/Images/dotnet_bot.png | 3 + .../Resources/Raw/AboutAssets.txt | 2 +- .../Resources/Splash/splash.svg | 0 .../Resources/Styles/Colors.xaml | 23 +- .../Resources/Styles/Styles.xaml | 45 +- .../SextantSample.Maui.csproj | 64 +++ .../Views/BlueNavigationView.cs | 0 .../Views/FirstModalView.xaml | 0 .../Views/FirstModalView.xaml.cs | 0 .../SextantSample.Maui/Views/GreenView.xaml | 0 .../Views/GreenView.xaml.cs | 0 .../SextantSample.Maui/Views/HomeView.xaml | 0 .../SextantSample.Maui/Views/HomeView.xaml.cs | 0 .../SextantSample.Maui/Views/RedView.xaml | 0 .../SextantSample.Maui/Views/RedView.xaml.cs | 0 .../Views/SecondModalView.xaml | 0 .../Views/SecondModalView.xaml.cs | 0 src/Directory.Packages.props | 21 +- src/Directory.build.props | 9 +- src/Directory.build.targets | 59 +-- .../Assets/AboutAssets.txt | 19 - .../SextantSample.Android/MainActivity.cs | 22 - .../Properties/AndroidManifest.xml | 5 - .../Properties/AssemblyInfo.cs | 34 -- .../Resources/AboutResources.txt | 50 --- .../Resources/drawable/xamarin_logo.png | 3 - .../Resources/layout/Tabbar.axml | 12 - .../Resources/layout/Toolbar.axml | 9 - .../Resources/mipmap-anydpi-v26/icon.xml | 5 - .../mipmap-anydpi-v26/icon_round.xml | 5 - .../Resources/mipmap-hdpi/Icon.png | 3 - .../mipmap-hdpi/launcher_foreground.png | 3 - .../Resources/mipmap-mdpi/icon.png | 3 - .../mipmap-mdpi/launcher_foreground.png | 3 - .../Resources/mipmap-xhdpi/Icon.png | 3 - .../mipmap-xhdpi/launcher_foreground.png | 3 - .../Resources/mipmap-xxhdpi/Icon.png | 3 - .../mipmap-xxhdpi/launcher_foreground.png | 3 - .../Resources/mipmap-xxxhdpi/Icon.png | 3 - .../mipmap-xxxhdpi/launcher_foreground.png | 3 - .../Resources/values/colors.xml | 7 - .../Resources/values/styles.xml | 26 -- .../Resources/xml/file_paths.xml | 5 - .../SextantSample.Android.csproj | 148 ------- src/Sample/SextantSample.Avalonia.sln | 64 --- src/Sample/SextantSample.Avalonia/App.xaml.cs | 23 +- .../FirstModalNavigationViewModel.cs | 2 +- .../SextantSample.Core/FirstModalViewModel.cs | 8 +- .../SextantSample.Core/GreenViewModel.cs | 8 +- .../HomeNavigationViewModel.cs | 2 +- .../SextantSample.Core/HomeViewModel.cs | 8 +- src/Sample/SextantSample.Core/RedViewModel.cs | 10 +- .../SecondModalNavigationViewModel.cs | 2 +- .../SecondModalViewModel.cs | 6 +- .../SextantSample.ViewModels.csproj | 7 +- .../SextantSample.Core/ViewModelBase.cs | 10 +- src/Sample/SextantSample.Maui/App.xaml | 11 - src/Sample/SextantSample.Maui/App.xaml.cs | 19 - src/Sample/SextantSample.Maui/MauiProgram.cs | 39 -- .../Platforms/Android/MainActivity.cs | 36 -- .../Platforms/Android/MainApplication.cs | 15 - .../Platforms/MacCatalyst/AppDelegate.cs | 9 - .../Platforms/MacCatalyst/Program.cs | 14 - .../Platforms/Windows/App.xaml.cs | 21 - .../Platforms/iOS/AppDelegate.cs | 9 - .../Platforms/iOS/Program.cs | 14 - .../Platforms/iOS/Resources/LaunchScreen.xib | 43 -- .../Resources/Fonts/OpenSans-Regular.ttf | 3 - .../Resources/Fonts/OpenSans-Semibold.ttf | 3 - .../Resources/Images/dotnet_bot.svg | 93 ---- .../SextantSample.Maui.csproj | 88 ---- src/Sample/SextantSample.UWP/App.xaml | 7 - src/Sample/SextantSample.UWP/App.xaml.cs | 128 ------ .../Assets/LockScreenLogo.scale-200.png | 3 - .../Assets/SplashScreen.scale-200.png | 3 - .../Assets/Square150x150Logo.scale-200.png | 3 - .../Assets/Square44x44Logo.scale-200.png | 3 - ...x44Logo.targetsize-24_altform-unplated.png | 3 - .../SextantSample.UWP/Assets/StoreLogo.png | 3 - .../Assets/Wide310x150Logo.scale-200.png | 3 - .../SextantSample.UWP/Package.appxmanifest | 49 --- .../Properties/AssemblyInfo.cs | 29 -- .../Properties/Default.rd.xml | 31 -- .../SextantDefaultExceptionHandler.cs | 35 -- .../SextantSample.UWP.csproj | 213 --------- .../Views/BlueNavigationView.cs | 23 - .../Views/FirstModalView.xaml | 19 - .../Views/FirstModalView.xaml.cs | 42 -- .../SextantSample.UWP/Views/GreenView.xaml | 21 - .../SextantSample.UWP/Views/GreenView.xaml.cs | 28 -- .../SextantSample.UWP/Views/HomeView.xaml | 21 - .../SextantSample.UWP/Views/HomeView.xaml.cs | 29 -- .../SextantSample.UWP/Views/RedView.xaml | 25 -- .../SextantSample.UWP/Views/RedView.xaml.cs | 42 -- .../Views/SecondModalView.xaml | 19 - .../Views/SecondModalView.xaml.cs | 42 -- src/Sample/SextantSample.WPF/App.xaml | 5 - src/Sample/SextantSample.WPF/App.xaml.cs | 12 - src/Sample/SextantSample.WPF/AssemblyInfo.cs | 8 - src/Sample/SextantSample.WPF/MainWindow.xaml | 11 - .../SextantSample.WPF/MainWindow.xaml.cs | 27 -- .../SextantSample.WPF.csproj | 19 - src/Sample/SextantSample.iOS/AppDelegate.cs | 29 -- .../AppIcon.appiconset/Contents.json | 117 ----- .../AppIcon.appiconset/Icon1024.png | 3 - .../AppIcon.appiconset/Icon120.png | 3 - .../AppIcon.appiconset/Icon152.png | 3 - .../AppIcon.appiconset/Icon167.png | 3 - .../AppIcon.appiconset/Icon180.png | 3 - .../AppIcon.appiconset/Icon20.png | 3 - .../AppIcon.appiconset/Icon29.png | 3 - .../AppIcon.appiconset/Icon40.png | 3 - .../AppIcon.appiconset/Icon58.png | 3 - .../AppIcon.appiconset/Icon60.png | 3 - .../AppIcon.appiconset/Icon76.png | 3 - .../AppIcon.appiconset/Icon80.png | 3 - .../AppIcon.appiconset/Icon87.png | 3 - .../SextantSample.iOS/Entitlements.plist | 7 - src/Sample/SextantSample.iOS/Info.plist | 38 -- src/Sample/SextantSample.iOS/Main.cs | 15 - .../Properties/AssemblyInfo.cs | 35 -- .../Resources/Default-568h@2x.png | 3 - .../Resources/Default-Portrait.png | 3 - .../Resources/Default-Portrait@2x.png | 3 - .../SextantSample.iOS/Resources/Default.png | 3 - .../Resources/Default@2x.png | 3 - .../Resources/LaunchScreen.storyboard | 39 -- .../SextantSample.iOS.csproj | 219 ---------- src/Sample/SextantSample.sln | 317 ++------------ src/Sample/SextantSample/App.xaml | 5 - src/Sample/SextantSample/App.xaml.cs | 86 ---- src/Sample/SextantSample/SextantSample.csproj | 20 - .../SextantSample/Views/BlueNavigationView.cs | 38 -- .../SextantSample/Views/FirstModalView.xaml | 15 - .../Views/FirstModalView.xaml.cs | 34 -- src/Sample/SextantSample/Views/GreenView.xaml | 15 - .../SextantSample/Views/GreenView.xaml.cs | 29 -- src/Sample/SextantSample/Views/HomeView.xaml | 16 - .../SextantSample/Views/HomeView.xaml.cs | 41 -- src/Sample/SextantSample/Views/RedView.xaml | 17 - .../SextantSample/Views/RedView.xaml.cs | 36 -- .../SextantSample/Views/SecondModalView.xaml | 15 - .../Views/SecondModalView.xaml.cs | 33 -- .../DependencyResolverMixins.cs | 5 + src/Sextant.Avalonia/NavigationView.cs | 10 + src/Sextant.Avalonia/Sextant.Avalonia.csproj | 8 +- src/Sextant.Maui/NavigationView.cs | 2 +- src/Sextant.Maui/Sextant.Maui.csproj | 18 +- src/Sextant.Mocks/Sextant.Mocks.csproj | 6 +- .../IPopupViewStackService.cs | 162 +++---- .../PopupNavigationEvent.cs | 56 ++- .../PopupViewStackService.cs | 33 +- .../PopupViewStackServiceBase.cs | 405 +++++++++--------- .../Sextant.Plugins.Popup.csproj | 14 +- src/Sextant.Plugins.Popup/SextantPopupPage.cs | 144 ++----- .../SextantPopupPage{TViewModel}.cs | 57 +++ ...provalTests.Sextant.DotNet6_0.verified.txt | 7 +- ...provalTests.Sextant.DotNet8_0.verified.txt | 7 +- .../DependencyResolverMixinTests.cs | 5 +- .../Navigation/NavigationParameterTests.cs | 2 +- .../ParameterViewStackServiceTests.cs | 36 +- .../Navigation/ViewStackServiceTests.cs | 24 +- src/Sextant.Tests/Sextant.Tests.csproj | 4 +- src/Sextant.XamForms.Tests.zip | 3 + ...lTests.SextantXamForms.net5.0.approved.txt | 51 --- ...lTests.SextantXamForms.net6.0.approved.txt | 53 --- ...SextantXamForms.netcoreapp3.1.approved.txt | 51 --- .../API/ApiApprovalTests.cs | 87 ---- .../NavigationPageSystemPopBehaviorTests.cs | 123 ------ .../DependencyResolverMixinTests.cs | 214 --------- .../Sextant.XamForms.Tests.csproj | 24 -- .../SextantExtensionTests.cs | 71 --- .../Behaviors/BehaviorBase.cs | 67 --- .../NavigationPageSystemPopBehavior.cs | 66 --- .../Mixins/DependencyResolverMixins.cs | 107 ----- .../Mixins/SextantExtensions.cs | 33 -- src/Sextant.XamForms/NavigationSource.cs | 22 - src/Sextant.XamForms/NavigationView.cs | 246 ----------- src/Sextant.XamForms/Sextant.XamForms.csproj | 25 -- .../Sextant.XamForms.csproj.DotSettings | 3 - src/Sextant.sln | 15 +- src/Sextant/Abstractions/INavigable.cs | 4 +- .../Abstractions/INavigationParameter.cs | 1 + src/Sextant/Abstractions/IPageViewModel.cs | 16 - src/Sextant/Abstractions/IViewModel.cs | 2 +- src/Sextant/DependencyResolverMixins.cs | 37 +- .../ParameterViewStackServiceBase.cs | 21 +- .../Navigation/ViewStackServiceBase.cs | 6 +- .../uikit-common/NavigationViewController.cs | 30 +- .../uikit-common/SextantExtensions.cs | 6 +- src/Sextant/Sextant.csproj | 48 +-- version.json | 2 +- 231 files changed, 1195 insertions(+), 5044 deletions(-) create mode 100644 Archive/SextantSample.Android.zip create mode 100644 Archive/SextantSample.UWP.zip create mode 100644 Archive/SextantSample.WPF.zip create mode 100644 Archive/SextantSample.iOS.zip create mode 100644 Archive/SextantSample.zip create mode 100644 Samples/SextantSample.Maui/App.xaml create mode 100644 Samples/SextantSample.Maui/App.xaml.cs create mode 100644 Samples/SextantSample.Maui/AppShell.xaml create mode 100644 Samples/SextantSample.Maui/AppShell.xaml.cs rename {src/Sample => Samples}/SextantSample.Maui/GlobalUsings.cs (100%) create mode 100644 Samples/SextantSample.Maui/MainPage.xaml create mode 100644 Samples/SextantSample.Maui/MainPage.xaml.cs create mode 100644 Samples/SextantSample.Maui/MauiProgram.cs rename {src/Sample => Samples}/SextantSample.Maui/Platforms/Android/AndroidManifest.xml (76%) create mode 100644 Samples/SextantSample.Maui/Platforms/Android/MainActivity.cs create mode 100644 Samples/SextantSample.Maui/Platforms/Android/MainApplication.cs rename {src/Sample => Samples}/SextantSample.Maui/Platforms/Android/Resources/values/colors.xml (100%) create mode 100644 Samples/SextantSample.Maui/Platforms/MacCatalyst/AppDelegate.cs create mode 100644 Samples/SextantSample.Maui/Platforms/MacCatalyst/Entitlements.plist rename {src/Sample/SextantSample.Maui/Platforms/iOS => Samples/SextantSample.Maui/Platforms/MacCatalyst}/Info.plist (59%) create mode 100644 Samples/SextantSample.Maui/Platforms/MacCatalyst/Program.cs create mode 100644 Samples/SextantSample.Maui/Platforms/Tizen/Main.cs create mode 100644 Samples/SextantSample.Maui/Platforms/Tizen/tizen-manifest.xml rename {src/Sample => Samples}/SextantSample.Maui/Platforms/Windows/App.xaml (100%) create mode 100644 Samples/SextantSample.Maui/Platforms/Windows/App.xaml.cs rename {src/Sample => Samples}/SextantSample.Maui/Platforms/Windows/Package.appxmanifest (65%) rename {src/Sample => Samples}/SextantSample.Maui/Platforms/Windows/app.manifest (100%) create mode 100644 Samples/SextantSample.Maui/Platforms/iOS/AppDelegate.cs rename {src/Sample/SextantSample.Maui/Platforms/MacCatalyst => Samples/SextantSample.Maui/Platforms/iOS}/Info.plist (96%) create mode 100644 Samples/SextantSample.Maui/Platforms/iOS/Program.cs rename {src/Sample => Samples}/SextantSample.Maui/Properties/launchSettings.json (100%) rename {src/Sample => Samples}/SextantSample.Maui/Resources/AppIcon/appicon.svg (100%) rename {src/Sample => Samples}/SextantSample.Maui/Resources/AppIcon/appiconfg.svg (100%) create mode 100644 Samples/SextantSample.Maui/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 Samples/SextantSample.Maui/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 Samples/SextantSample.Maui/Resources/Images/dotnet_bot.png rename {src/Sample => Samples}/SextantSample.Maui/Resources/Raw/AboutAssets.txt (86%) rename {src/Sample => Samples}/SextantSample.Maui/Resources/Splash/splash.svg (100%) rename {src/Sample => Samples}/SextantSample.Maui/Resources/Styles/Colors.xaml (80%) rename {src/Sample => Samples}/SextantSample.Maui/Resources/Styles/Styles.xaml (91%) create mode 100644 Samples/SextantSample.Maui/SextantSample.Maui.csproj rename {src/Sample => Samples}/SextantSample.Maui/Views/BlueNavigationView.cs (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/FirstModalView.xaml (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/FirstModalView.xaml.cs (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/GreenView.xaml (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/GreenView.xaml.cs (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/HomeView.xaml (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/HomeView.xaml.cs (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/RedView.xaml (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/RedView.xaml.cs (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/SecondModalView.xaml (100%) rename {src/Sample => Samples}/SextantSample.Maui/Views/SecondModalView.xaml.cs (100%) delete mode 100644 src/Sample/SextantSample.Android/Assets/AboutAssets.txt delete mode 100644 src/Sample/SextantSample.Android/MainActivity.cs delete mode 100644 src/Sample/SextantSample.Android/Properties/AndroidManifest.xml delete mode 100644 src/Sample/SextantSample.Android/Properties/AssemblyInfo.cs delete mode 100644 src/Sample/SextantSample.Android/Resources/AboutResources.txt delete mode 100644 src/Sample/SextantSample.Android/Resources/drawable/xamarin_logo.png delete mode 100644 src/Sample/SextantSample.Android/Resources/layout/Tabbar.axml delete mode 100644 src/Sample/SextantSample.Android/Resources/layout/Toolbar.axml delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-anydpi-v26/icon.xml delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-anydpi-v26/icon_round.xml delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-hdpi/Icon.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-hdpi/launcher_foreground.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-mdpi/icon.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-mdpi/launcher_foreground.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-xhdpi/Icon.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-xxhdpi/Icon.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-xxxhdpi/Icon.png delete mode 100644 src/Sample/SextantSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png delete mode 100644 src/Sample/SextantSample.Android/Resources/values/colors.xml delete mode 100644 src/Sample/SextantSample.Android/Resources/values/styles.xml delete mode 100644 src/Sample/SextantSample.Android/Resources/xml/file_paths.xml delete mode 100644 src/Sample/SextantSample.Android/SextantSample.Android.csproj delete mode 100644 src/Sample/SextantSample.Maui/App.xaml delete mode 100644 src/Sample/SextantSample.Maui/App.xaml.cs delete mode 100644 src/Sample/SextantSample.Maui/MauiProgram.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/Android/MainActivity.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/Android/MainApplication.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/MacCatalyst/AppDelegate.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/MacCatalyst/Program.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/Windows/App.xaml.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/iOS/AppDelegate.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/iOS/Program.cs delete mode 100644 src/Sample/SextantSample.Maui/Platforms/iOS/Resources/LaunchScreen.xib delete mode 100644 src/Sample/SextantSample.Maui/Resources/Fonts/OpenSans-Regular.ttf delete mode 100644 src/Sample/SextantSample.Maui/Resources/Fonts/OpenSans-Semibold.ttf delete mode 100644 src/Sample/SextantSample.Maui/Resources/Images/dotnet_bot.svg delete mode 100644 src/Sample/SextantSample.Maui/SextantSample.Maui.csproj delete mode 100644 src/Sample/SextantSample.UWP/App.xaml delete mode 100644 src/Sample/SextantSample.UWP/App.xaml.cs delete mode 100644 src/Sample/SextantSample.UWP/Assets/LockScreenLogo.scale-200.png delete mode 100644 src/Sample/SextantSample.UWP/Assets/SplashScreen.scale-200.png delete mode 100644 src/Sample/SextantSample.UWP/Assets/Square150x150Logo.scale-200.png delete mode 100644 src/Sample/SextantSample.UWP/Assets/Square44x44Logo.scale-200.png delete mode 100644 src/Sample/SextantSample.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png delete mode 100644 src/Sample/SextantSample.UWP/Assets/StoreLogo.png delete mode 100644 src/Sample/SextantSample.UWP/Assets/Wide310x150Logo.scale-200.png delete mode 100644 src/Sample/SextantSample.UWP/Package.appxmanifest delete mode 100644 src/Sample/SextantSample.UWP/Properties/AssemblyInfo.cs delete mode 100644 src/Sample/SextantSample.UWP/Properties/Default.rd.xml delete mode 100644 src/Sample/SextantSample.UWP/SextantDefaultExceptionHandler.cs delete mode 100644 src/Sample/SextantSample.UWP/SextantSample.UWP.csproj delete mode 100644 src/Sample/SextantSample.UWP/Views/BlueNavigationView.cs delete mode 100644 src/Sample/SextantSample.UWP/Views/FirstModalView.xaml delete mode 100644 src/Sample/SextantSample.UWP/Views/FirstModalView.xaml.cs delete mode 100644 src/Sample/SextantSample.UWP/Views/GreenView.xaml delete mode 100644 src/Sample/SextantSample.UWP/Views/GreenView.xaml.cs delete mode 100644 src/Sample/SextantSample.UWP/Views/HomeView.xaml delete mode 100644 src/Sample/SextantSample.UWP/Views/HomeView.xaml.cs delete mode 100644 src/Sample/SextantSample.UWP/Views/RedView.xaml delete mode 100644 src/Sample/SextantSample.UWP/Views/RedView.xaml.cs delete mode 100644 src/Sample/SextantSample.UWP/Views/SecondModalView.xaml delete mode 100644 src/Sample/SextantSample.UWP/Views/SecondModalView.xaml.cs delete mode 100644 src/Sample/SextantSample.WPF/App.xaml delete mode 100644 src/Sample/SextantSample.WPF/App.xaml.cs delete mode 100644 src/Sample/SextantSample.WPF/AssemblyInfo.cs delete mode 100644 src/Sample/SextantSample.WPF/MainWindow.xaml delete mode 100644 src/Sample/SextantSample.WPF/MainWindow.xaml.cs delete mode 100644 src/Sample/SextantSample.WPF/SextantSample.WPF.csproj delete mode 100644 src/Sample/SextantSample.iOS/AppDelegate.cs delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png delete mode 100644 src/Sample/SextantSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png delete mode 100644 src/Sample/SextantSample.iOS/Entitlements.plist delete mode 100644 src/Sample/SextantSample.iOS/Info.plist delete mode 100644 src/Sample/SextantSample.iOS/Main.cs delete mode 100644 src/Sample/SextantSample.iOS/Properties/AssemblyInfo.cs delete mode 100644 src/Sample/SextantSample.iOS/Resources/Default-568h@2x.png delete mode 100644 src/Sample/SextantSample.iOS/Resources/Default-Portrait.png delete mode 100644 src/Sample/SextantSample.iOS/Resources/Default-Portrait@2x.png delete mode 100644 src/Sample/SextantSample.iOS/Resources/Default.png delete mode 100644 src/Sample/SextantSample.iOS/Resources/Default@2x.png delete mode 100644 src/Sample/SextantSample.iOS/Resources/LaunchScreen.storyboard delete mode 100644 src/Sample/SextantSample.iOS/SextantSample.iOS.csproj delete mode 100644 src/Sample/SextantSample/App.xaml delete mode 100644 src/Sample/SextantSample/App.xaml.cs delete mode 100644 src/Sample/SextantSample/SextantSample.csproj delete mode 100644 src/Sample/SextantSample/Views/BlueNavigationView.cs delete mode 100644 src/Sample/SextantSample/Views/FirstModalView.xaml delete mode 100644 src/Sample/SextantSample/Views/FirstModalView.xaml.cs delete mode 100644 src/Sample/SextantSample/Views/GreenView.xaml delete mode 100644 src/Sample/SextantSample/Views/GreenView.xaml.cs delete mode 100644 src/Sample/SextantSample/Views/HomeView.xaml delete mode 100644 src/Sample/SextantSample/Views/HomeView.xaml.cs delete mode 100644 src/Sample/SextantSample/Views/RedView.xaml delete mode 100644 src/Sample/SextantSample/Views/RedView.xaml.cs delete mode 100644 src/Sample/SextantSample/Views/SecondModalView.xaml delete mode 100644 src/Sample/SextantSample/Views/SecondModalView.xaml.cs create mode 100644 src/Sextant.Plugins.Popup/SextantPopupPage{TViewModel}.cs create mode 100644 src/Sextant.XamForms.Tests.zip delete mode 100644 src/Sextant.XamForms.Tests/API/ApiApprovalTests.SextantXamForms.net5.0.approved.txt delete mode 100644 src/Sextant.XamForms.Tests/API/ApiApprovalTests.SextantXamForms.net6.0.approved.txt delete mode 100644 src/Sextant.XamForms.Tests/API/ApiApprovalTests.SextantXamForms.netcoreapp3.1.approved.txt delete mode 100644 src/Sextant.XamForms.Tests/API/ApiApprovalTests.cs delete mode 100644 src/Sextant.XamForms.Tests/Behaviors/NavigationPageSystemPopBehaviorTests.cs delete mode 100644 src/Sextant.XamForms.Tests/DependencyResolverMixinTests.cs delete mode 100644 src/Sextant.XamForms.Tests/Sextant.XamForms.Tests.csproj delete mode 100644 src/Sextant.XamForms.Tests/SextantExtensionTests.cs delete mode 100644 src/Sextant.XamForms/Behaviors/BehaviorBase.cs delete mode 100644 src/Sextant.XamForms/Behaviors/NavigationPageSystemPopBehavior.cs delete mode 100644 src/Sextant.XamForms/Mixins/DependencyResolverMixins.cs delete mode 100644 src/Sextant.XamForms/Mixins/SextantExtensions.cs delete mode 100644 src/Sextant.XamForms/NavigationSource.cs delete mode 100644 src/Sextant.XamForms/NavigationView.cs delete mode 100644 src/Sextant.XamForms/Sextant.XamForms.csproj delete mode 100644 src/Sextant.XamForms/Sextant.XamForms.csproj.DotSettings delete mode 100644 src/Sextant/Abstractions/IPageViewModel.cs diff --git a/.editorconfig b/.editorconfig index 20db31bc..be457ccc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,6 +10,39 @@ root = true insert_final_newline = true indent_style = space indent_size = 4 +dotnet_diagnostic.CA1027.severity=error +dotnet_diagnostic.CA1062.severity=error +dotnet_diagnostic.CA1064.severity=error +dotnet_diagnostic.CA1066.severity=error +dotnet_diagnostic.CA1067.severity=error +dotnet_diagnostic.CA1068.severity=error +dotnet_diagnostic.CA1069.severity=warning +dotnet_diagnostic.CA2013.severity=error +dotnet_diagnostic.CA1802.severity=error +dotnet_diagnostic.CA1813.severity=error +dotnet_diagnostic.CA1814.severity=error +dotnet_diagnostic.CA1815.severity=error +dotnet_diagnostic.CA1822.severity=error +dotnet_diagnostic.CA1827.severity=error +dotnet_diagnostic.CA1828.severity=error +dotnet_diagnostic.CA1826.severity=error +dotnet_diagnostic.CA1829.severity=error +dotnet_diagnostic.CA1830.severity=error +dotnet_diagnostic.CA1831.severity=error +dotnet_diagnostic.CA1832.severity=error +dotnet_diagnostic.CA1833.severity=error +dotnet_diagnostic.CA1834.severity=error +dotnet_diagnostic.CA1835.severity=error +dotnet_diagnostic.CA1836.severity=error +dotnet_diagnostic.CA1837.severity=error +dotnet_diagnostic.CA1838.severity=error +dotnet_diagnostic.CA2015.severity=error +dotnet_diagnostic.CA2012.severity=error +dotnet_diagnostic.CA2011.severity=error +dotnet_diagnostic.CA2009.severity=error +dotnet_diagnostic.CA2008.severity=error +dotnet_diagnostic.CA2007.severity=warning +dotnet_diagnostic.CA2000.severity=suggestion [project.json] indent_size = 2 @@ -43,14 +76,11 @@ dotnet_style_qualification_for_method = false:suggestion dotnet_style_qualification_for_event = false:suggestion # only use var when it's obvious what the variable type is -csharp_style_var_for_built_in_types = false:none +csharp_style_var_for_built_in_types = true:suggestion csharp_style_var_when_type_is_apparent = true:suggestion csharp_style_var_elsewhere = true:suggestion -# Types: use keywords instead of BCL types, and permit var only when the type is clear -csharp_style_var_for_built_in_types = false:suggestion -csharp_style_var_when_type_is_apparent = false:none -csharp_style_var_elsewhere = false:suggestion +# prefer C# premade types. dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion dotnet_style_predefined_type_for_member_access = true:suggestion @@ -370,7 +400,7 @@ dotnet_diagnostic.SA1501.severity = error dotnet_diagnostic.SA1502.severity = error dotnet_diagnostic.SA1503.severity = error dotnet_diagnostic.SA1504.severity = error -dotnet_diagnostic.SA1505.severity = error +dotnet_diagnostic.SA1505.severity = none dotnet_diagnostic.SA1506.severity = error dotnet_diagnostic.SA1507.severity = error dotnet_diagnostic.SA1508.severity = error @@ -379,7 +409,7 @@ dotnet_diagnostic.SA1510.severity = error dotnet_diagnostic.SA1511.severity = error dotnet_diagnostic.SA1512.severity = error dotnet_diagnostic.SA1513.severity = error -dotnet_diagnostic.SA1514.severity = error +dotnet_diagnostic.SA1514.severity = none dotnet_diagnostic.SA1515.severity = error dotnet_diagnostic.SA1516.severity = error dotnet_diagnostic.SA1517.severity = error @@ -429,6 +459,48 @@ dotnet_diagnostic.SA1651.severity = error dotnet_diagnostic.SX1101.severity = error dotnet_diagnostic.SX1309.severity = error dotnet_diagnostic.SX1623.severity = none +dotnet_diagnostic.RCS1102.severity=error +dotnet_diagnostic.RCS1166.severity=error +dotnet_diagnostic.RCS1078i.severity=error +dotnet_diagnostic.RCS1248.severity=error +dotnet_diagnostic.RCS1080.severity=error +dotnet_diagnostic.RCS1077.severity=error +dotnet_diagnostic.CA1825.severity=error +dotnet_diagnostic.CA1812.severity=error +dotnet_diagnostic.CA1805.severity=error +dotnet_diagnostic.RCS1197.severity=error +dotnet_diagnostic.RCS1198.severity=none +dotnet_diagnostic.RCS1231.severity=suggestion +dotnet_diagnostic.RCS1235.severity=error +dotnet_diagnostic.RCS1242.severity=error +dotnet_diagnostic.RCS1256.severity=none +dotnet_diagnostic.CA2016.severity=warning +dotnet_diagnostic.CA2014.severity=error +dotnet_diagnostic.RCS1010.severity=error +dotnet_diagnostic.RCS1006.severity=error +dotnet_diagnostic.RCS1005.severity=error +dotnet_diagnostic.RCS1020.severity=error +dotnet_diagnostic.RCS1049.severity=warning +dotnet_diagnostic.RCS1058.severity=warning +dotnet_diagnostic.RCS1068.severity=warning +dotnet_diagnostic.RCS1073.severity=warning +dotnet_diagnostic.RCS1084.severity=error +dotnet_diagnostic.RCS1085.severity=error +dotnet_diagnostic.RCS1105.severity=error +dotnet_diagnostic.RCS1112.severity=error +dotnet_diagnostic.RCS1128.severity=error +dotnet_diagnostic.RCS1143.severity=error +dotnet_diagnostic.RCS1158.severity=none +dotnet_diagnostic.RCS1163.severity=none +dotnet_diagnostic.RCS1171.severity=error +dotnet_diagnostic.RCS1173.severity=error +dotnet_diagnostic.RCS1176.severity=error +dotnet_diagnostic.RCS1177.severity=error +dotnet_diagnostic.RCS1179.severity=error +dotnet_diagnostic.RCS1180.severity=warning +dotnet_diagnostic.RCS1190.severity=error +dotnet_diagnostic.RCS1195.severity=error +dotnet_diagnostic.RCS1214.severity=error # C++ Files [*.{cpp,h,in}] @@ -456,3 +528,5 @@ indent_size = 2 end_of_line = lf [*.{cmd, bat}] end_of_line = crlf + +vsspell_dictionary_languages = en-US \ No newline at end of file diff --git a/.github/workflows/build-samples.yml b/.github/workflows/build-samples.yml index 5f889761..fe522353 100644 --- a/.github/workflows/build-samples.yml +++ b/.github/workflows/build-samples.yml @@ -15,5 +15,6 @@ jobs: uses: reactiveui/actions-common/.github/workflows/workflow-common-setup-and-build.yml@main with: productNamespacePrefix: "Sextant" + dotNetBuild: true srcFolder: "src/Sample" solutionFile: "SextantSample.sln" diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 5f0c7180..a25e217d 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -15,4 +15,5 @@ jobs: uses: reactiveui/actions-common/.github/workflows/workflow-common-setup-and-build.yml@main with: productNamespacePrefix: "Sextant" + dotNetBuild: true solutionFile: "Sextant.sln" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93ad408d..3d7878de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,7 @@ jobs: uses: reactiveui/actions-common/.github/workflows/workflow-common-release.yml@main with: productNamespacePrefix: "Sextant" + dotNetBuild: true solutionFile: "Sextant.sln" secrets: SIGN_CLIENT_USER_ID: ${{ secrets.SIGN_CLIENT_USER_ID }} diff --git a/Archive/SextantSample.Android.zip b/Archive/SextantSample.Android.zip new file mode 100644 index 00000000..a90e0701 --- /dev/null +++ b/Archive/SextantSample.Android.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bfbbbd1808a7c4beb72e66910afd1d0877021a4a2358b1983bed4c6ac0a01b2 +size 380876 diff --git a/Archive/SextantSample.UWP.zip b/Archive/SextantSample.UWP.zip new file mode 100644 index 00000000..771c180e --- /dev/null +++ b/Archive/SextantSample.UWP.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc65d5ae757fb279025f816fcc3879d4add41d4d1be9c84141c1d951bc603948 +size 28396 diff --git a/Archive/SextantSample.WPF.zip b/Archive/SextantSample.WPF.zip new file mode 100644 index 00000000..109f6d82 --- /dev/null +++ b/Archive/SextantSample.WPF.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d73db28596c60bb4b5f2886c87f099722c68867f415a2358e28cd52c7e418888 +size 2604 diff --git a/Archive/SextantSample.iOS.zip b/Archive/SextantSample.iOS.zip new file mode 100644 index 00000000..9d48ffef --- /dev/null +++ b/Archive/SextantSample.iOS.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:726c12eac6708a834f38afa060e325ff9abaa09f1973d49cf639d232cd720cc8 +size 149107 diff --git a/Archive/SextantSample.zip b/Archive/SextantSample.zip new file mode 100644 index 00000000..da6f49d0 --- /dev/null +++ b/Archive/SextantSample.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7450bf017b6e4bbca37982d9efe2b6cc11a1cdcedd31d3eb023e83adb3d6a00 +size 8320 diff --git a/Samples/SextantSample.Maui/App.xaml b/Samples/SextantSample.Maui/App.xaml new file mode 100644 index 00000000..e6062012 --- /dev/null +++ b/Samples/SextantSample.Maui/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/Samples/SextantSample.Maui/App.xaml.cs b/Samples/SextantSample.Maui/App.xaml.cs new file mode 100644 index 00000000..d213f853 --- /dev/null +++ b/Samples/SextantSample.Maui/App.xaml.cs @@ -0,0 +1,19 @@ +namespace SextantSample.Maui +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + ////MainPage = new AppShell(); + Locator + .Current + .GetService() + .PushPage(new HomeViewModel(), null, true, false) + .Subscribe(); + + MainPage = Locator.Current.GetNavigationView(); + } + } +} diff --git a/Samples/SextantSample.Maui/AppShell.xaml b/Samples/SextantSample.Maui/AppShell.xaml new file mode 100644 index 00000000..ea99f4e0 --- /dev/null +++ b/Samples/SextantSample.Maui/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/Samples/SextantSample.Maui/AppShell.xaml.cs b/Samples/SextantSample.Maui/AppShell.xaml.cs new file mode 100644 index 00000000..945c9fd5 --- /dev/null +++ b/Samples/SextantSample.Maui/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace SextantSample.Maui +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/src/Sample/SextantSample.Maui/GlobalUsings.cs b/Samples/SextantSample.Maui/GlobalUsings.cs similarity index 100% rename from src/Sample/SextantSample.Maui/GlobalUsings.cs rename to Samples/SextantSample.Maui/GlobalUsings.cs diff --git a/Samples/SextantSample.Maui/MainPage.xaml b/Samples/SextantSample.Maui/MainPage.xaml new file mode 100644 index 00000000..5223e055 --- /dev/null +++ b/Samples/SextantSample.Maui/MainPage.xaml @@ -0,0 +1,36 @@ + + + + + + + +