From 8f060b6a98ed5533ecaeed45980275883d4607a7 Mon Sep 17 00:00:00 2001 From: Marcus10110 Date: Wed, 4 Jun 2025 21:18:42 -0700 Subject: [PATCH 01/19] .net maui app first commit. minimal progress. --- DelSolClockAppMaui/.gitignore | 55 + DelSolClockAppMaui/App.xaml | 14 + DelSolClockAppMaui/App.xaml.cs | 15 + DelSolClockAppMaui/AppShell.xaml | 23 + DelSolClockAppMaui/AppShell.xaml.cs | 10 + DelSolClockAppMaui/Components/StatusItem.xaml | 11 + .../Components/StatusItem.xaml.cs | 9 + DelSolClockAppMaui/Components/UpdateItem.xaml | 11 + .../Components/UpdateItem.xaml.cs | 9 + DelSolClockAppMaui/DelSolClockAppMaui.csproj | 69 + DelSolClockAppMaui/DelSolClockAppMaui.sln | 23 + DelSolClockAppMaui/MainPage.xaml | 36 + DelSolClockAppMaui/MainPage.xaml.cs | 25 + DelSolClockAppMaui/MauiProgram.cs | 25 + DelSolClockAppMaui/Pages/StatusPage.xaml | 12 + DelSolClockAppMaui/Pages/StatusPage.xaml.cs | 9 + DelSolClockAppMaui/Pages/UpdatePage.xaml | 12 + DelSolClockAppMaui/Pages/UpdatePage.xaml.cs | 9 + .../Platforms/Android/AndroidManifest.xml | 6 + .../Platforms/Android/MainActivity.cs | 11 + .../Platforms/Android/MainApplication.cs | 16 + .../Android/Resources/values/colors.xml | 6 + .../Platforms/MacCatalyst/AppDelegate.cs | 10 + .../Platforms/MacCatalyst/Entitlements.plist | 14 + .../Platforms/MacCatalyst/Info.plist | 38 + .../Platforms/MacCatalyst/Program.cs | 16 + DelSolClockAppMaui/Platforms/Tizen/Main.cs | 17 + .../Platforms/Tizen/tizen-manifest.xml | 15 + DelSolClockAppMaui/Platforms/Windows/App.xaml | 8 + .../Platforms/Windows/App.xaml.cs | 25 + .../Platforms/Windows/Package.appxmanifest | 46 + .../Platforms/Windows/app.manifest | 15 + .../Platforms/iOS/AppDelegate.cs | 10 + DelSolClockAppMaui/Platforms/iOS/Info.plist | 32 + DelSolClockAppMaui/Platforms/iOS/Program.cs | 16 + .../iOS/Resources/PrivacyInfo.xcprivacy | 51 + .../Properties/launchSettings.json | 8 + .../Resources/AppIcon/appicon.svg | 4 + .../Resources/AppIcon/appiconfg.svg | 8 + .../Resources/Fonts/FluentUI.cs | 7921 +++++++++++++++++ .../Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107280 bytes .../Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111184 bytes .../Resources/Images/dotnet_bot.png | Bin 0 -> 93437 bytes .../Resources/Raw/AboutAssets.txt | 15 + .../Resources/Splash/splash.svg | 8 + .../Resources/Styles/Colors.xaml | 45 + .../Resources/Styles/Styles.xaml | 451 + .../Services/DelSolConnection.cs | 12 + .../Services/FirmwareBrowser.cs | 33 + .../View Models/StatusItemData.cs | 12 + .../View Models/UpdateItemData.cs | 12 + 51 files changed, 9258 insertions(+) create mode 100644 DelSolClockAppMaui/.gitignore create mode 100644 DelSolClockAppMaui/App.xaml create mode 100644 DelSolClockAppMaui/App.xaml.cs create mode 100644 DelSolClockAppMaui/AppShell.xaml create mode 100644 DelSolClockAppMaui/AppShell.xaml.cs create mode 100644 DelSolClockAppMaui/Components/StatusItem.xaml create mode 100644 DelSolClockAppMaui/Components/StatusItem.xaml.cs create mode 100644 DelSolClockAppMaui/Components/UpdateItem.xaml create mode 100644 DelSolClockAppMaui/Components/UpdateItem.xaml.cs create mode 100644 DelSolClockAppMaui/DelSolClockAppMaui.csproj create mode 100644 DelSolClockAppMaui/DelSolClockAppMaui.sln create mode 100644 DelSolClockAppMaui/MainPage.xaml create mode 100644 DelSolClockAppMaui/MainPage.xaml.cs create mode 100644 DelSolClockAppMaui/MauiProgram.cs create mode 100644 DelSolClockAppMaui/Pages/StatusPage.xaml create mode 100644 DelSolClockAppMaui/Pages/StatusPage.xaml.cs create mode 100644 DelSolClockAppMaui/Pages/UpdatePage.xaml create mode 100644 DelSolClockAppMaui/Pages/UpdatePage.xaml.cs create mode 100644 DelSolClockAppMaui/Platforms/Android/AndroidManifest.xml create mode 100644 DelSolClockAppMaui/Platforms/Android/MainActivity.cs create mode 100644 DelSolClockAppMaui/Platforms/Android/MainApplication.cs create mode 100644 DelSolClockAppMaui/Platforms/Android/Resources/values/colors.xml create mode 100644 DelSolClockAppMaui/Platforms/MacCatalyst/AppDelegate.cs create mode 100644 DelSolClockAppMaui/Platforms/MacCatalyst/Entitlements.plist create mode 100644 DelSolClockAppMaui/Platforms/MacCatalyst/Info.plist create mode 100644 DelSolClockAppMaui/Platforms/MacCatalyst/Program.cs create mode 100644 DelSolClockAppMaui/Platforms/Tizen/Main.cs create mode 100644 DelSolClockAppMaui/Platforms/Tizen/tizen-manifest.xml create mode 100644 DelSolClockAppMaui/Platforms/Windows/App.xaml create mode 100644 DelSolClockAppMaui/Platforms/Windows/App.xaml.cs create mode 100644 DelSolClockAppMaui/Platforms/Windows/Package.appxmanifest create mode 100644 DelSolClockAppMaui/Platforms/Windows/app.manifest create mode 100644 DelSolClockAppMaui/Platforms/iOS/AppDelegate.cs create mode 100644 DelSolClockAppMaui/Platforms/iOS/Info.plist create mode 100644 DelSolClockAppMaui/Platforms/iOS/Program.cs create mode 100644 DelSolClockAppMaui/Platforms/iOS/Resources/PrivacyInfo.xcprivacy create mode 100644 DelSolClockAppMaui/Properties/launchSettings.json create mode 100644 DelSolClockAppMaui/Resources/AppIcon/appicon.svg create mode 100644 DelSolClockAppMaui/Resources/AppIcon/appiconfg.svg create mode 100644 DelSolClockAppMaui/Resources/Fonts/FluentUI.cs create mode 100644 DelSolClockAppMaui/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 DelSolClockAppMaui/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 DelSolClockAppMaui/Resources/Images/dotnet_bot.png create mode 100644 DelSolClockAppMaui/Resources/Raw/AboutAssets.txt create mode 100644 DelSolClockAppMaui/Resources/Splash/splash.svg create mode 100644 DelSolClockAppMaui/Resources/Styles/Colors.xaml create mode 100644 DelSolClockAppMaui/Resources/Styles/Styles.xaml create mode 100644 DelSolClockAppMaui/Services/DelSolConnection.cs create mode 100644 DelSolClockAppMaui/Services/FirmwareBrowser.cs create mode 100644 DelSolClockAppMaui/View Models/StatusItemData.cs create mode 100644 DelSolClockAppMaui/View Models/UpdateItemData.cs diff --git a/DelSolClockAppMaui/.gitignore b/DelSolClockAppMaui/.gitignore new file mode 100644 index 0000000..7f7c0e8 --- /dev/null +++ b/DelSolClockAppMaui/.gitignore @@ -0,0 +1,55 @@ +## Build results +bin/ +obj/ +[Bb]uild/ +[Ll]og/ + +# User-specific files +*.user +*.userosscache +*.suo +*.sdf +*.cache +*.csproj.user + +# Visual Studio Code +.vscode/ +.history/ + +# Xamarin/MAUI specific +*.apk +*.ap_ +*.aab +*.ipa +*.app +*.xcuserstate +*.xcodeproj/* +*.xcworkspace/* +*.DS_Store + +# macOS artifacts +*.DS_Store + +# Rider +.idea/ + +# Dotnet artifacts +project.lock.json +project.fragment.lock.json +artifacts/ + +# NuGet +*.nupkg +*.snupkg +.nuget/ +packages/ +*.nuspec +*.psmdcp + +# Logs +*.log + +# Other +*.tlog +*.vs/ +.vsconfig diff --git a/DelSolClockAppMaui/App.xaml b/DelSolClockAppMaui/App.xaml new file mode 100644 index 0000000..39de553 --- /dev/null +++ b/DelSolClockAppMaui/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/DelSolClockAppMaui/App.xaml.cs b/DelSolClockAppMaui/App.xaml.cs new file mode 100644 index 0000000..675cd42 --- /dev/null +++ b/DelSolClockAppMaui/App.xaml.cs @@ -0,0 +1,15 @@ +namespace DelSolClockAppMaui +{ + 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/DelSolClockAppMaui/AppShell.xaml b/DelSolClockAppMaui/AppShell.xaml new file mode 100644 index 0000000..1ceb9be --- /dev/null +++ b/DelSolClockAppMaui/AppShell.xaml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/DelSolClockAppMaui/AppShell.xaml.cs b/DelSolClockAppMaui/AppShell.xaml.cs new file mode 100644 index 0000000..c95e1e3 --- /dev/null +++ b/DelSolClockAppMaui/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace DelSolClockAppMaui +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/DelSolClockAppMaui/Components/StatusItem.xaml b/DelSolClockAppMaui/Components/StatusItem.xaml new file mode 100644 index 0000000..ea3a2b0 --- /dev/null +++ b/DelSolClockAppMaui/Components/StatusItem.xaml @@ -0,0 +1,11 @@ + + + + + diff --git a/DelSolClockAppMaui/Components/StatusItem.xaml.cs b/DelSolClockAppMaui/Components/StatusItem.xaml.cs new file mode 100644 index 0000000..4183a55 --- /dev/null +++ b/DelSolClockAppMaui/Components/StatusItem.xaml.cs @@ -0,0 +1,9 @@ +namespace DelSolClockAppMaui.Components; + +public partial class StatusItem : ContentView +{ + public StatusItem() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/DelSolClockAppMaui/Components/UpdateItem.xaml b/DelSolClockAppMaui/Components/UpdateItem.xaml new file mode 100644 index 0000000..d532198 --- /dev/null +++ b/DelSolClockAppMaui/Components/UpdateItem.xaml @@ -0,0 +1,11 @@ + + + + + diff --git a/DelSolClockAppMaui/Components/UpdateItem.xaml.cs b/DelSolClockAppMaui/Components/UpdateItem.xaml.cs new file mode 100644 index 0000000..76b149e --- /dev/null +++ b/DelSolClockAppMaui/Components/UpdateItem.xaml.cs @@ -0,0 +1,9 @@ +namespace DelSolClockAppMaui.Components; + +public partial class UpdateItem : ContentView +{ + public UpdateItem() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/DelSolClockAppMaui/DelSolClockAppMaui.csproj b/DelSolClockAppMaui/DelSolClockAppMaui.csproj new file mode 100644 index 0000000..8f84f6c --- /dev/null +++ b/DelSolClockAppMaui/DelSolClockAppMaui.csproj @@ -0,0 +1,69 @@ + + + + net9.0-android;net9.0-ios;net9.0-maccatalyst + $(TargetFrameworks);net9.0-windows10.0.19041.0 + + + + + + + Exe + DelSolClockAppMaui + true + true + enable + enable + + + DelSolClockAppMaui + + + com.companyname.delsolclockappmaui + + + 1.0 + 1 + + + None + + 15.0 + 15.0 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + False + android-arm;android-arm64;android-x86;android-x64 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DelSolClockAppMaui/DelSolClockAppMaui.sln b/DelSolClockAppMaui/DelSolClockAppMaui.sln new file mode 100644 index 0000000..c2bc40e --- /dev/null +++ b/DelSolClockAppMaui/DelSolClockAppMaui.sln @@ -0,0 +1,23 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35527.113 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DelSolClockAppMaui", "DelSolClockAppMaui.csproj", "{2374AA40-700E-48AB-B564-E975A4E2C0BC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2374AA40-700E-48AB-B564-E975A4E2C0BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2374AA40-700E-48AB-B564-E975A4E2C0BC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2374AA40-700E-48AB-B564-E975A4E2C0BC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {2374AA40-700E-48AB-B564-E975A4E2C0BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2374AA40-700E-48AB-B564-E975A4E2C0BC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/DelSolClockAppMaui/MainPage.xaml b/DelSolClockAppMaui/MainPage.xaml new file mode 100644 index 0000000..f5511ae --- /dev/null +++ b/DelSolClockAppMaui/MainPage.xaml @@ -0,0 +1,36 @@ + + + + + + + +