From 1632c3329d335bb7f13f88406852abff42bcd1ed Mon Sep 17 00:00:00 2001 From: NuanRMxi <2308425927@qq.com> Date: Mon, 14 Jul 2025 00:42:12 +0800 Subject: [PATCH] first commit --- .gitignore | 6 + AndroidManifest.xml | 1 + App.xaml | 14 + App.xaml.cs | 14 + AppShell.xaml | 14 + AppShell.xaml.cs | 9 + HeartRateMonitorAndroid.csproj | 73 ++ HeartRateMonitorAndroid.sln | 16 + MainPage.xaml | 111 +++ MainPage.xaml.cs | 923 ++++++++++++++++++ MauiProgram.cs | 24 + Platforms/Android/AndroidManifest.xml | 18 + .../Android/AndroidNotificationHelper.cs | 102 ++ Platforms/Android/MainActivity.cs | 12 + Platforms/Android/MainApplication.cs | 15 + Platforms/Android/Resources/values/colors.xml | 6 + Platforms/MacCatalyst/AppDelegate.cs | 9 + Platforms/MacCatalyst/Entitlements.plist | 14 + Platforms/MacCatalyst/Info.plist | 38 + Platforms/MacCatalyst/Program.cs | 15 + Platforms/Tizen/Main.cs | 16 + Platforms/Tizen/tizen-manifest.xml | 15 + Platforms/Windows/App.xaml | 8 + Platforms/Windows/App.xaml.cs | 23 + Platforms/Windows/Package.appxmanifest | 46 + .../Windows/WindowsNotificationHelper.cs | 24 + Platforms/Windows/app.manifest | 15 + Platforms/iOS/AppDelegate.cs | 9 + Platforms/iOS/Info.plist | 32 + Platforms/iOS/IosNotificationHelper.cs | 63 ++ Platforms/iOS/Program.cs | 15 + Platforms/iOS/Resources/PrivacyInfo.xcprivacy | 51 + Properties/launchSettings.json | 8 + README.md | 10 + Resources/AppIcon/appicon.svg | 4 + Resources/AppIcon/appiconfg.svg | 8 + Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107280 bytes Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111188 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/NotificationService.cs | 120 +++ Services/WebSocketService.cs | 294 ++++++ 45 files changed, 2714 insertions(+) create mode 100644 .gitignore create mode 100644 AndroidManifest.xml create mode 100644 App.xaml create mode 100644 App.xaml.cs create mode 100644 AppShell.xaml create mode 100644 AppShell.xaml.cs create mode 100644 HeartRateMonitorAndroid.csproj create mode 100644 HeartRateMonitorAndroid.sln create mode 100644 MainPage.xaml create mode 100644 MainPage.xaml.cs create mode 100644 MauiProgram.cs create mode 100644 Platforms/Android/AndroidManifest.xml create mode 100644 Platforms/Android/AndroidNotificationHelper.cs create mode 100644 Platforms/Android/MainActivity.cs create mode 100644 Platforms/Android/MainApplication.cs create mode 100644 Platforms/Android/Resources/values/colors.xml create mode 100644 Platforms/MacCatalyst/AppDelegate.cs create mode 100644 Platforms/MacCatalyst/Entitlements.plist create mode 100644 Platforms/MacCatalyst/Info.plist create mode 100644 Platforms/MacCatalyst/Program.cs create mode 100644 Platforms/Tizen/Main.cs create mode 100644 Platforms/Tizen/tizen-manifest.xml create mode 100644 Platforms/Windows/App.xaml create mode 100644 Platforms/Windows/App.xaml.cs create mode 100644 Platforms/Windows/Package.appxmanifest create mode 100644 Platforms/Windows/WindowsNotificationHelper.cs create mode 100644 Platforms/Windows/app.manifest create mode 100644 Platforms/iOS/AppDelegate.cs create mode 100644 Platforms/iOS/Info.plist create mode 100644 Platforms/iOS/IosNotificationHelper.cs create mode 100644 Platforms/iOS/Program.cs create mode 100644 Platforms/iOS/Resources/PrivacyInfo.xcprivacy create mode 100644 Properties/launchSettings.json create mode 100644 README.md create mode 100644 Resources/AppIcon/appicon.svg create mode 100644 Resources/AppIcon/appiconfg.svg create mode 100644 Resources/Fonts/OpenSans-Regular.ttf create mode 100644 Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 Resources/Images/dotnet_bot.png create mode 100644 Resources/Raw/AboutAssets.txt create mode 100644 Resources/Splash/splash.svg create mode 100644 Resources/Styles/Colors.xaml create mode 100644 Resources/Styles/Styles.xaml create mode 100644 Services/NotificationService.cs create mode 100644 Services/WebSocketService.cs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5930028 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +bin/ +obj/ +/packages/ +riderModule.iml +/_ReSharper.Caches/ +token.txt \ No newline at end of file diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..dd58ff5 --- /dev/null +++ b/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..7091be9 --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,14 @@ +namespace HeartRateMonitorAndroid; + +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/AppShell.xaml b/AppShell.xaml new file mode 100644 index 0000000..6df46e2 --- /dev/null +++ b/AppShell.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/AppShell.xaml.cs b/AppShell.xaml.cs new file mode 100644 index 0000000..5fb8711 --- /dev/null +++ b/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace HeartRateMonitorAndroid; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/HeartRateMonitorAndroid.csproj b/HeartRateMonitorAndroid.csproj new file mode 100644 index 0000000..55e2f4d --- /dev/null +++ b/HeartRateMonitorAndroid.csproj @@ -0,0 +1,73 @@ + + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + + + + + Exe + HeartRateMonitorAndroid + true + true + enable + enable + + + HeartRateMonitorAndroid + + + com.companyname.heartratemonitorandroid + + + 1.0 + 1 + + + None + + 15.0 + 15.0 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HeartRateMonitorAndroid.sln b/HeartRateMonitorAndroid.sln new file mode 100644 index 0000000..6219115 --- /dev/null +++ b/HeartRateMonitorAndroid.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeartRateMonitorAndroid", "HeartRateMonitorAndroid.csproj", "{D7F7A858-2624-403B-A2AE-34C0F127AE63}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D7F7A858-2624-403B-A2AE-34C0F127AE63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D7F7A858-2624-403B-A2AE-34C0F127AE63}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D7F7A858-2624-403B-A2AE-34C0F127AE63}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D7F7A858-2624-403B-A2AE-34C0F127AE63}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/MainPage.xaml b/MainPage.xaml new file mode 100644 index 0000000..d7bc002 --- /dev/null +++ b/MainPage.xaml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +