From f5a8ff039ddf02855e268e6d5746d5d30e4dbfcd Mon Sep 17 00:00:00 2001 From: Aaron LaBeau Date: Thu, 30 Jan 2025 14:06:34 -0600 Subject: [PATCH 1/3] feat: initial check-in for .net maui --- .gitignore | 9 +- Dotnet/App.xaml | 14 + Dotnet/App.xaml.cs | 14 + Dotnet/AppShell.xaml | 14 + Dotnet/AppShell.xaml.cs | 9 + Dotnet/Guides.csproj | 78 + Dotnet/Guides.sln | 16 + Dotnet/MainPage.xaml | 36 + Dotnet/MainPage.xaml.cs | 23 + Dotnet/MauiProgram.cs | 24 + Dotnet/Platforms/Android/AndroidManifest.xml | 26 + Dotnet/Platforms/Android/MainActivity.cs | 12 + Dotnet/Platforms/Android/MainApplication.cs | 15 + .../Android/Resources/values/colors.xml | 6 + Dotnet/Platforms/MacCatalyst/AppDelegate.cs | 9 + .../Platforms/MacCatalyst/Entitlements.plist | 14 + Dotnet/Platforms/MacCatalyst/Info.plist | 51 + Dotnet/Platforms/MacCatalyst/Program.cs | 15 + Dotnet/Platforms/Tizen/Main.cs | 16 + Dotnet/Platforms/Tizen/tizen-manifest.xml | 15 + Dotnet/Platforms/Windows/App.xaml | 8 + Dotnet/Platforms/Windows/App.xaml.cs | 23 + Dotnet/Platforms/Windows/Package.appxmanifest | 46 + Dotnet/Platforms/Windows/app.manifest | 15 + Dotnet/Platforms/iOS/AppDelegate.cs | 9 + Dotnet/Platforms/iOS/Info.plist | 45 + Dotnet/Platforms/iOS/Program.cs | 15 + .../iOS/Resources/PrivacyInfo.xcprivacy | 51 + Dotnet/Properties/launchSettings.json | 8 + Dotnet/Resources/AppIcon/appicon.svg | 4 + Dotnet/Resources/AppIcon/appiconfg.svg | 8 + Dotnet/Resources/Fonts/FluentUI.cs | 7920 +++++++++++++++++ Dotnet/Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107280 bytes Dotnet/Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111164 bytes Dotnet/Resources/Images/dotnet_bot.png | Bin 0 -> 93437 bytes Dotnet/Resources/Raw/AboutAssets.txt | 15 + Dotnet/Resources/Splash/splash.svg | 8 + Dotnet/Resources/Styles/Colors.xaml | 45 + Dotnet/Resources/Styles/Styles.xaml | 451 + 39 files changed, 9086 insertions(+), 1 deletion(-) create mode 100644 Dotnet/App.xaml create mode 100644 Dotnet/App.xaml.cs create mode 100644 Dotnet/AppShell.xaml create mode 100644 Dotnet/AppShell.xaml.cs create mode 100644 Dotnet/Guides.csproj create mode 100644 Dotnet/Guides.sln create mode 100644 Dotnet/MainPage.xaml create mode 100644 Dotnet/MainPage.xaml.cs create mode 100644 Dotnet/MauiProgram.cs create mode 100644 Dotnet/Platforms/Android/AndroidManifest.xml create mode 100644 Dotnet/Platforms/Android/MainActivity.cs create mode 100644 Dotnet/Platforms/Android/MainApplication.cs create mode 100644 Dotnet/Platforms/Android/Resources/values/colors.xml create mode 100644 Dotnet/Platforms/MacCatalyst/AppDelegate.cs create mode 100644 Dotnet/Platforms/MacCatalyst/Entitlements.plist create mode 100644 Dotnet/Platforms/MacCatalyst/Info.plist create mode 100644 Dotnet/Platforms/MacCatalyst/Program.cs create mode 100644 Dotnet/Platforms/Tizen/Main.cs create mode 100644 Dotnet/Platforms/Tizen/tizen-manifest.xml create mode 100644 Dotnet/Platforms/Windows/App.xaml create mode 100644 Dotnet/Platforms/Windows/App.xaml.cs create mode 100644 Dotnet/Platforms/Windows/Package.appxmanifest create mode 100644 Dotnet/Platforms/Windows/app.manifest create mode 100644 Dotnet/Platforms/iOS/AppDelegate.cs create mode 100644 Dotnet/Platforms/iOS/Info.plist create mode 100644 Dotnet/Platforms/iOS/Program.cs create mode 100644 Dotnet/Platforms/iOS/Resources/PrivacyInfo.xcprivacy create mode 100644 Dotnet/Properties/launchSettings.json create mode 100644 Dotnet/Resources/AppIcon/appicon.svg create mode 100644 Dotnet/Resources/AppIcon/appiconfg.svg create mode 100644 Dotnet/Resources/Fonts/FluentUI.cs create mode 100644 Dotnet/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 Dotnet/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 Dotnet/Resources/Images/dotnet_bot.png create mode 100644 Dotnet/Resources/Raw/AboutAssets.txt create mode 100644 Dotnet/Resources/Splash/splash.svg create mode 100644 Dotnet/Resources/Styles/Colors.xaml create mode 100644 Dotnet/Resources/Styles/Styles.xaml diff --git a/.gitignore b/.gitignore index 5801cb8..1bb6dff 100644 --- a/.gitignore +++ b/.gitignore @@ -81,4 +81,11 @@ Android/app/*.aab Android/app/*.apk Android/*.jks Android/*.keystore -Android/app/google-services.json \ No newline at end of file +Android/app/google-services.json + +# Dotnet + +Dotnet/.idea +Dotnet/.vscode +Dotnet/bin +Dotnet/obj diff --git a/Dotnet/App.xaml b/Dotnet/App.xaml new file mode 100644 index 0000000..0d55761 --- /dev/null +++ b/Dotnet/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/Dotnet/App.xaml.cs b/Dotnet/App.xaml.cs new file mode 100644 index 0000000..ec0df5a --- /dev/null +++ b/Dotnet/App.xaml.cs @@ -0,0 +1,14 @@ +namespace Guides; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + } + + protected override Window CreateWindow(IActivationState? activationState) + { + return new Window(new AppShell()); + } +} \ No newline at end of file diff --git a/Dotnet/AppShell.xaml b/Dotnet/AppShell.xaml new file mode 100644 index 0000000..db85176 --- /dev/null +++ b/Dotnet/AppShell.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/Dotnet/AppShell.xaml.cs b/Dotnet/AppShell.xaml.cs new file mode 100644 index 0000000..43b3549 --- /dev/null +++ b/Dotnet/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace Guides; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Dotnet/Guides.csproj b/Dotnet/Guides.csproj new file mode 100644 index 0000000..5743281 --- /dev/null +++ b/Dotnet/Guides.csproj @@ -0,0 +1,78 @@ + + + + + + net9.0-android;net9.0-ios; + $(TargetFrameworks);net9.0-windows10.0.19041.0 + + + + + + + Exe + Guides + true + true + enable + enable + + + Guides + + + com.companyname.guides + + + 1.0 + 1 + + + None + + 15.0 + 15.0 + 26.0 + 10.0.17763.0 + 10.0.17763.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Dotnet/Guides.sln b/Dotnet/Guides.sln new file mode 100644 index 0000000..b51b651 --- /dev/null +++ b/Dotnet/Guides.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Guides", "Guides.csproj", "{897A2B3F-166A-46B9-884D-BDAAC7A6A2EE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {897A2B3F-166A-46B9-884D-BDAAC7A6A2EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {897A2B3F-166A-46B9-884D-BDAAC7A6A2EE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {897A2B3F-166A-46B9-884D-BDAAC7A6A2EE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {897A2B3F-166A-46B9-884D-BDAAC7A6A2EE}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Dotnet/MainPage.xaml b/Dotnet/MainPage.xaml new file mode 100644 index 0000000..73afe1b --- /dev/null +++ b/Dotnet/MainPage.xaml @@ -0,0 +1,36 @@ + + + + + + + +