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 @@ + + + + + + + +