From c67a20d8f639a4c268beeba142b248ed68e1e077 Mon Sep 17 00:00:00 2001 From: Dominik Titl <78549750+morning4coffe-dev@users.noreply.github.com> Date: Fri, 2 Aug 2024 17:58:39 +0300 Subject: [PATCH 1/4] chore: Move `BluetoothExplorer` to SingleProject Uno.Sdk 5.3 --- .../BluetoothExplorer/.editorconfig | 167 ++++++ .../BluetoothExplorer/.gitignore | 403 +++++++++++++ .../BluetoothExplorer/.vsconfig | 25 + .../BluetoothExplorer/BluetoothExplorer.sln | 36 ++ .../BluetoothExplorer/App.xaml | 16 + .../BluetoothExplorer/App.xaml.cs | 129 +++++ .../BluetoothExplorer/Assets/Icons/icon.svg | 42 ++ .../Assets/Icons/icon_foreground.svg | 137 +++++ .../BluetoothExplorer/Assets/SharedAssets.md | 32 ++ .../Assets/Splash/splash_screen.svg | 137 +++++ .../BluetoothExplorer.csproj | 42 ++ .../BluetoothExplorer/GlobalUsings.cs | 4 + .../BluetoothExplorer/MainPage.xaml | 71 +++ .../BluetoothExplorer/MainPage.xaml.cs | 106 ++++ .../BluetoothExplorer/Package.appxmanifest | 22 + .../Platforms/Android/AndroidManifest.xml | 4 + .../Platforms}/Android/Assets/AboutAssets.txt | 0 .../Platforms/Android/Main.Android.cs | 47 ++ .../Platforms/Android/MainActivity.Android.cs | 15 + .../Android/Resources/AboutResources.txt | 0 .../Android/Resources/values/Strings.xml | 5 + .../Android/Resources/values/Styles.xml | 9 +- .../Platforms}/Android/environment.conf | 0 .../PublishProfiles/win-arm64.pubxml | 22 + .../Properties/PublishProfiles/win-x64.pubxml | 22 + .../Properties/PublishProfiles/win-x86.pubxml | 22 + .../Platforms/iOS}/Entitlements.plist | 0 .../Platforms/iOS/Info.plist | 43 ++ .../Platforms/iOS/Main.iOS.cs | 15 + .../LaunchImages.launchimage/Contents.json | 0 .../Platforms/iOS/PrivacyInfo.xcprivacy | 41 ++ .../Properties/launchSettings.json | 21 + .../BluetoothExplorer/ReadMe.md | 7 + .../Strings/en/Resources.resw | 58 +- .../BluetoothExplorer}/app.manifest | 12 +- .../BluetoothExplorer/Directory.Build.props | 15 + .../BluetoothExplorer/Directory.Build.targets | 2 + .../Directory.Packages.props | 13 + .../BluetoothExplorer/global.json | 9 + .../UnoBluetoothExplorer.Base/AppHead.xaml | 21 - .../UnoBluetoothExplorer.Base/AppHead.xaml.cs | 97 ---- .../UnoBluetoothExplorer.Base/base.props | 17 - .../Android/AndroidManifest.xml | 9 - .../Android/Main.Android.cs | 43 -- .../Android/MainActivity.Android.cs | 49 -- .../Android/Resources/mipmap-hdpi/icon.png | Bin 2609 -> 0 bytes .../Android/Resources/mipmap-ldpi/icon.png | Bin 1249 -> 0 bytes .../Android/Resources/mipmap-mdpi/icon.png | Bin 1773 -> 0 bytes .../Android/Resources/mipmap-tvdpi/icon.png | Bin 2429 -> 0 bytes .../Android/Resources/mipmap-xhdpi/icon.png | Bin 3585 -> 0 bytes .../Android/Resources/mipmap-xxhdpi/icon.png | Bin 5140 -> 0 bytes .../Android/Resources/mipmap-xxxhdpi/icon.png | Bin 7485 -> 0 bytes .../Android/Resources/values/Strings.xml | 5 - .../MacCatalyst/Info.plist | 33 -- .../MacCatalyst/LaunchScreen.storyboard | 52 -- .../MacCatalyst/Main.maccatalyst.cs | 15 - .../AppIcons.appiconset/Contents.json | 117 ---- .../AppIcons.appiconset/Icon1024.png | Bin 36187 -> 0 bytes .../AppIcons.appiconset/Icon120.png | Bin 3895 -> 0 bytes .../AppIcons.appiconset/Icon152.png | Bin 4961 -> 0 bytes .../AppIcons.appiconset/Icon167.png | Bin 5578 -> 0 bytes .../AppIcons.appiconset/Icon180.png | Bin 5830 -> 0 bytes .../AppIcons.appiconset/Icon20.png | Bin 590 -> 0 bytes .../AppIcons.appiconset/Icon29.png | Bin 900 -> 0 bytes .../AppIcons.appiconset/Icon40.png | Bin 1313 -> 0 bytes .../AppIcons.appiconset/Icon58.png | Bin 2170 -> 0 bytes .../AppIcons.appiconset/Icon60.png | Bin 2253 -> 0 bytes .../AppIcons.appiconset/Icon76.png | Bin 2569 -> 0 bytes .../AppIcons.appiconset/Icon80.png | Bin 2710 -> 0 bytes .../AppIcons.appiconset/Icon87.png | Bin 3086 -> 0 bytes .../MacCatalyst/Resources/Default-568h@2x.png | Bin 2215 -> 0 bytes .../Resources/Fonts/uno-fluentui-assets.ttf | Bin 441200 -> 0 bytes .../MacCatalyst/Resources/SplashScreen@2x.png | Bin 36520 -> 0 bytes .../MacCatalyst/Resources/SplashScreen@3x.png | Bin 59332 -> 0 bytes .../AppIcon.appiconset/AppIcon-128.png | Bin 23243 -> 0 bytes .../AppIcon.appiconset/AppIcon-128@2x.png | Bin 36887 -> 0 bytes .../AppIcon.appiconset/AppIcon-16.png | Bin 15188 -> 0 bytes .../AppIcon.appiconset/AppIcon-16@2x.png | Bin 16188 -> 0 bytes .../AppIcon.appiconset/AppIcon-256.png | Bin 37404 -> 0 bytes .../AppIcon.appiconset/AppIcon-256@2x.png | Bin 79023 -> 0 bytes .../AppIcon.appiconset/AppIcon-32.png | Bin 16183 -> 0 bytes .../AppIcon.appiconset/AppIcon-32@2x.png | Bin 18284 -> 0 bytes .../AppIcon.appiconset/AppIcon-512.png | Bin 78932 -> 0 bytes .../AppIcon.appiconset/AppIcon-512@2x.png | Bin 182243 -> 0 bytes .../AppIcon.appiconset/Contents.json | 68 --- .../MacOS/Assets.xcassets/Contents.json | 6 - .../unologo.imageset/Contents.json | 528 ------------------ .../unologo.imageset/unoplatform.jpg | Bin 18136 -> 0 bytes .../MacOS/Entitlements.plist | 7 - .../MacOS/Info.plist | 30 - .../MacOS/Main.macOS.cs | 16 - .../Resources/Fonts/uno-fluentui-assets.ttf | Bin 441200 -> 0 bytes .../UnoBluetoothExplorer.Mobile.csproj | 92 --- .../iOS/Entitlements.plist | 6 - .../iOS/Info.plist | 60 -- .../iOS/LaunchScreen.storyboard | 52 -- .../iOS/Main.iOS.cs | 21 - .../AppIcons.appiconset/Contents.json | 117 ---- .../AppIcons.appiconset/Icon1024.png | Bin 36187 -> 0 bytes .../AppIcons.appiconset/Icon120.png | Bin 3895 -> 0 bytes .../AppIcons.appiconset/Icon152.png | Bin 4961 -> 0 bytes .../AppIcons.appiconset/Icon167.png | Bin 5578 -> 0 bytes .../AppIcons.appiconset/Icon180.png | Bin 5830 -> 0 bytes .../AppIcons.appiconset/Icon20.png | Bin 590 -> 0 bytes .../AppIcons.appiconset/Icon29.png | Bin 900 -> 0 bytes .../AppIcons.appiconset/Icon40.png | Bin 1313 -> 0 bytes .../AppIcons.appiconset/Icon58.png | Bin 2170 -> 0 bytes .../AppIcons.appiconset/Icon60.png | Bin 2253 -> 0 bytes .../AppIcons.appiconset/Icon76.png | Bin 2569 -> 0 bytes .../AppIcons.appiconset/Icon80.png | Bin 2710 -> 0 bytes .../AppIcons.appiconset/Icon87.png | Bin 3086 -> 0 bytes .../iOS/Resources/Default-568h@2x.png | Bin 2215 -> 0 bytes .../Resources/Fonts/uno-fluentui-assets.ttf | Bin 441200 -> 0 bytes .../iOS/Resources/SplashScreen@2x.png | Bin 36520 -> 0 bytes .../iOS/Resources/SplashScreen@3x.png | Bin 59332 -> 0 bytes .../Images/LockScreenLogo.scale-200.png | Bin 1430 -> 0 bytes .../Images/SplashScreen.scale-200.png | Bin 7700 -> 0 bytes .../Images/Square150x150Logo.scale-200.png | Bin 2937 -> 0 bytes .../Images/Square44x44Logo.scale-200.png | Bin 1647 -> 0 bytes ...x44Logo.targetsize-24_altform-unplated.png | Bin 1255 -> 0 bytes .../Images/StoreLogo.png | Bin 1451 -> 0 bytes .../Images/Wide310x150Logo.scale-200.png | Bin 3204 -> 0 bytes .../Package.appxmanifest | 48 -- .../Properties/launchSettings.json | 7 - .../UnoBluetoothExplorer.Windows.csproj | 32 -- UI/BluetoothExplorer/UnoBluetoothExplorer.sln | 101 ---- .../UnoBluetoothExplorer/App.cs | 112 ---- .../UnoBluetoothExplorer/AppResources.xaml | 15 - .../UnoBluetoothExplorer/MainPage.xaml | 55 -- .../UnoBluetoothExplorer/MainPage.xaml.cs | 114 ---- .../UnoBluetoothExplorer.csproj | 48 -- .../Old/CameraCaptureUISample.sln | 207 +++++++ 132 files changed, 1926 insertions(+), 2025 deletions(-) create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/.editorconfig create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/.gitignore create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/.vsconfig create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.sln create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml.cs create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon.svg create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon_foreground.svg create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/SharedAssets.md create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Splash/splash_screen.svg create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.csproj create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/GlobalUsings.cs create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/MainPage.xaml create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/MainPage.xaml.cs create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Package.appxmanifest create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/Android/AndroidManifest.xml rename UI/BluetoothExplorer/{UnoBluetoothExplorer.Mobile => BluetoothExplorer/BluetoothExplorer/Platforms}/Android/Assets/AboutAssets.txt (100%) create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/Android/Main.Android.cs create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/Android/MainActivity.Android.cs rename UI/BluetoothExplorer/{UnoBluetoothExplorer.Mobile => BluetoothExplorer/BluetoothExplorer/Platforms}/Android/Resources/AboutResources.txt (100%) create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/Android/Resources/values/Strings.xml rename UI/BluetoothExplorer/{UnoBluetoothExplorer.Mobile => BluetoothExplorer/BluetoothExplorer/Platforms}/Android/Resources/values/Styles.xml (50%) rename UI/BluetoothExplorer/{UnoBluetoothExplorer.Mobile => BluetoothExplorer/BluetoothExplorer/Platforms}/Android/environment.conf (100%) create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/Windows/Properties/PublishProfiles/win-arm64.pubxml create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/Windows/Properties/PublishProfiles/win-x64.pubxml create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/Windows/Properties/PublishProfiles/win-x86.pubxml rename UI/BluetoothExplorer/{UnoBluetoothExplorer.Mobile/MacCatalyst => BluetoothExplorer/BluetoothExplorer/Platforms/iOS}/Entitlements.plist (100%) create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/iOS/Info.plist create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/iOS/Main.iOS.cs rename UI/BluetoothExplorer/{UnoBluetoothExplorer.Mobile => BluetoothExplorer/BluetoothExplorer/Platforms}/iOS/Media.xcassets/LaunchImages.launchimage/Contents.json (100%) create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Platforms/iOS/PrivacyInfo.xcprivacy create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Properties/launchSettings.json create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/ReadMe.md rename UI/BluetoothExplorer/{UnoBluetoothExplorer => BluetoothExplorer/BluetoothExplorer}/Strings/en/Resources.resw (92%) rename UI/BluetoothExplorer/{UnoBluetoothExplorer.Windows => BluetoothExplorer/BluetoothExplorer}/app.manifest (50%) create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/Directory.Build.props create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/Directory.Build.targets create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/Directory.Packages.props create mode 100644 UI/BluetoothExplorer/BluetoothExplorer/global.json delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Base/AppHead.xaml delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Base/AppHead.xaml.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Base/base.props delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/AndroidManifest.xml delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Main.Android.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/MainActivity.Android.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/mipmap-hdpi/icon.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/mipmap-ldpi/icon.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/mipmap-mdpi/icon.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/mipmap-tvdpi/icon.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/mipmap-xhdpi/icon.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/mipmap-xxhdpi/icon.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/mipmap-xxxhdpi/icon.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/Android/Resources/values/Strings.xml delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Info.plist delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/LaunchScreen.storyboard delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Main.maccatalyst.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Contents.json delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon1024.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon120.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon152.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon167.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon180.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon20.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon29.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon40.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon58.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon60.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon76.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon80.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Media.xcassets/AppIcons.appiconset/Icon87.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Resources/Default-568h@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Resources/Fonts/uno-fluentui-assets.ttf delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Resources/SplashScreen@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacCatalyst/Resources/SplashScreen@3x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-128.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-128@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-16.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-16@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-256.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-256@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-32.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-32@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-512.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/Contents.json delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/unologo.imageset/Contents.json delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Assets.xcassets/unologo.imageset/unoplatform.jpg delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Entitlements.plist delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Info.plist delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Main.macOS.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/MacOS/Resources/Fonts/uno-fluentui-assets.ttf delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/UnoBluetoothExplorer.Mobile.csproj delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Entitlements.plist delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Info.plist delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/LaunchScreen.storyboard delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Main.iOS.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Contents.json delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon1024.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon120.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon152.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon167.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon180.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon20.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon29.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon40.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon58.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon60.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon76.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon80.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Icon87.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Resources/Default-568h@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Resources/Fonts/uno-fluentui-assets.ttf delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Resources/SplashScreen@2x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Mobile/iOS/Resources/SplashScreen@3x.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Images/LockScreenLogo.scale-200.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Images/SplashScreen.scale-200.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Images/Square150x150Logo.scale-200.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Images/Square44x44Logo.scale-200.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Images/Square44x44Logo.targetsize-24_altform-unplated.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Images/StoreLogo.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Images/Wide310x150Logo.scale-200.png delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Package.appxmanifest delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/Properties/launchSettings.json delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.Windows/UnoBluetoothExplorer.Windows.csproj delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer.sln delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer/App.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer/AppResources.xaml delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer/MainPage.xaml delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer/MainPage.xaml.cs delete mode 100644 UI/BluetoothExplorer/UnoBluetoothExplorer/UnoBluetoothExplorer.csproj create mode 100644 UI/CameraCaptureUI/Old/CameraCaptureUISample.sln diff --git a/UI/BluetoothExplorer/BluetoothExplorer/.editorconfig b/UI/BluetoothExplorer/BluetoothExplorer/.editorconfig new file mode 100644 index 000000000..b947be645 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/.editorconfig @@ -0,0 +1,167 @@ +; This file is for unifying the coding style for different editors and IDEs. +; More information at http://editorconfig.org + +# This file is the top-most EditorConfig file +root = true + +########################################## +# Common Settings +########################################## + +[*] +indent_style = space +end_of_line = crlf +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 + +########################################## +# File Extension Settings +########################################## + +[*.{yml,yaml}] +indent_size = 2 + +[.vsconfig] +indent_size = 2 +end_of_line = lf + +[*.sln] +indent_style = tab +indent_size = 2 + +[*.{csproj,proj,projitems,shproj}] +indent_size = 2 + +[*.{json,slnf}] +indent_size = 2 +end_of_line = lf + +[*.{props,targets}] +indent_size = 2 + +[*.xaml] +indent_size = 2 +charset = utf-8-bom + +[*.xml] +indent_size = 2 +end_of_line = lf + +[*.plist] +indent_size = 2 +indent_style = tab +end_of_line = lf + +[*.manifest] +indent_size = 2 + +[*.appxmanifest] +indent_size = 2 + +[*.{json,css,webmanifest}] +indent_size = 2 +end_of_line = lf + +[web.config] +indent_size = 2 +end_of_line = lf + +[*.sh] +indent_size = 2 +end_of_line = lf + +[*.cs] +# EOL should be normalized by Git. See https://github.com/dotnet/format/issues/1099 +end_of_line = unset + +# See https://github.com/dotnet/roslyn/issues/20356#issuecomment-310143926 +trim_trailing_whitespace = false + +tab_width = 4 +indent_size = 4 + +# Sort using and Import directives with System.* appearing first +dotnet_sort_system_directives_first = true + +# Avoid "this." and "Me." if not necessary +dotnet_style_qualification_for_field = false:suggestion +dotnet_style_qualification_for_property = false:suggestion +dotnet_style_qualification_for_method = false:suggestion +dotnet_style_qualification_for_event = false:suggestion + +#### Naming styles #### + +# Naming rules + +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i + +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.types_should_be_pascal_case.symbols = types +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case + +# Symbol specifications + +dotnet_naming_symbols.interface.applicable_kinds = interface +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.interface.required_modifiers = + +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.types.required_modifiers = + +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.non_field_members.required_modifiers = + +# Naming styles + +dotnet_naming_style.begins_with_i.required_prefix = I +dotnet_naming_style.begins_with_i.required_suffix = +dotnet_naming_style.begins_with_i.word_separator = +dotnet_naming_style.begins_with_i.capitalization = pascal_case + +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.capitalization = pascal_case + +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.capitalization = pascal_case +dotnet_style_operator_placement_when_wrapping = beginning_of_line +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_null_propagation = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion +dotnet_style_prefer_auto_properties = true:silent +dotnet_style_object_initializer = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion +dotnet_style_prefer_conditional_expression_over_assignment = true:silent +dotnet_style_prefer_conditional_expression_over_return = true:silent +dotnet_style_explicit_tuple_names = true:suggestion +dotnet_style_prefer_inferred_tuple_names = true:suggestion + +csharp_indent_labels = one_less_than_current +csharp_using_directive_placement = outside_namespace:silent +csharp_prefer_simple_using_statement = true:suggestion +csharp_prefer_braces = true:silent +csharp_style_namespace_declarations = file_scoped:warning +csharp_style_prefer_method_group_conversion = true:silent +csharp_style_prefer_top_level_statements = true:silent +csharp_style_prefer_primary_constructors = true:suggestion +csharp_style_expression_bodied_methods = false:silent +csharp_style_expression_bodied_constructors = false:silent +csharp_style_expression_bodied_operators = false:silent +csharp_style_expression_bodied_properties = true:silent +csharp_style_expression_bodied_indexers = true:silent +csharp_style_expression_bodied_accessors = true:silent +csharp_style_expression_bodied_lambdas = true:silent +csharp_style_expression_bodied_local_functions = false:silent diff --git a/UI/BluetoothExplorer/BluetoothExplorer/.gitignore b/UI/BluetoothExplorer/BluetoothExplorer/.gitignore new file mode 100644 index 000000000..ef88c2053 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/.gitignore @@ -0,0 +1,403 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +# Single Target Config +solution-config.props +# Publish Profiles +!**/Properties/PublishProfiles/*.pubxml \ No newline at end of file diff --git a/UI/BluetoothExplorer/BluetoothExplorer/.vsconfig b/UI/BluetoothExplorer/BluetoothExplorer/.vsconfig new file mode 100644 index 000000000..fc21f3026 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/.vsconfig @@ -0,0 +1,25 @@ +{ + "version": "1.0", + "components": [ + "Microsoft.VisualStudio.Component.CoreEditor", + "Microsoft.VisualStudio.Workload.CoreEditor", + "Microsoft.NetCore.Component.SDK", + "Microsoft.NetCore.Component.DevelopmentTools", + "Microsoft.Net.ComponentGroup.DevelopmentPrerequisites", + "Microsoft.VisualStudio.Component.TextTemplating", + "Microsoft.VisualStudio.ComponentGroup.MSIX.Packaging", + "Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites", + "Microsoft.VisualStudio.Component.Debugger.JustInTime", + "Microsoft.VisualStudio.Workload.ManagedDesktop", + "Component.Xamarin.RemotedSimulator", + "Microsoft.VisualStudio.Component.MonoDebugger", + "Microsoft.VisualStudio.ComponentGroup.Maui.All", + "Component.Android.SDK34", + "Component.OpenJDK", + "Microsoft.VisualStudio.Workload.NetCrossPlat", + "Microsoft.VisualStudio.Workload.NetCoreTools" + ], + "extensions": [ + "https://marketplace.visualstudio.com/items?itemName=unoplatform.uno-platform-addin-2022" + ] +} diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.sln b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.sln new file mode 100644 index 000000000..b66a69dd7 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.sln @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.35122.118 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BluetoothExplorer", "BluetoothExplorer\BluetoothExplorer.csproj", "{D58AA08A-B9A2-47FB-8ABF-44F025D33EFA}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{716AAC39-61D2-436E-9D04-936366BE5964}" + ProjectSection(SolutionItems) = preProject + .gitignore = .gitignore + Directory.Build.props = Directory.Build.props + Directory.Build.targets = Directory.Build.targets + Directory.Packages.props = Directory.Packages.props + global.json = global.json + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D58AA08A-B9A2-47FB-8ABF-44F025D33EFA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D58AA08A-B9A2-47FB-8ABF-44F025D33EFA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D58AA08A-B9A2-47FB-8ABF-44F025D33EFA}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {D58AA08A-B9A2-47FB-8ABF-44F025D33EFA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D58AA08A-B9A2-47FB-8ABF-44F025D33EFA}.Release|Any CPU.Build.0 = Release|Any CPU + {D58AA08A-B9A2-47FB-8ABF-44F025D33EFA}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4B498A42-7EDA-4C84-9347-E41E0FC8F7FC} + EndGlobalSection +EndGlobal diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml new file mode 100644 index 000000000..74363e311 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml.cs b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml.cs new file mode 100644 index 000000000..776c85b55 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/App.xaml.cs @@ -0,0 +1,129 @@ +using System; +using Microsoft.Extensions.Logging; +using Uno.Resizetizer; + +namespace BluetoothExplorer; +public partial class App : Application +{ + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + } + + protected Window? MainWindow { get; private set; } + + protected override void OnLaunched(LaunchActivatedEventArgs args) + { + MainWindow = new Window(); +#if DEBUG + MainWindow.EnableHotReload(); +#endif + + + // Do not repeat app initialization when the Window already has content, + // just ensure that the window is active + if (MainWindow.Content is not Frame rootFrame) + { + // Create a Frame to act as the navigation context and navigate to the first page + rootFrame = new Frame(); + + // Place the frame in the current Window + MainWindow.Content = rootFrame; + + rootFrame.NavigationFailed += OnNavigationFailed; + } + + if (rootFrame.Content == null) + { + // When the navigation stack isn't restored navigate to the first page, + // configuring the new page by passing required information as a navigation + // parameter + rootFrame.Navigate(typeof(MainPage), args.Arguments); + } + + MainWindow.SetWindowIcon(); + // Ensure the current window is active + MainWindow.Activate(); + } + + /// + /// Invoked when Navigation to a certain page fails + /// + /// The Frame which failed navigation + /// Details about the navigation failure + void OnNavigationFailed(object sender, NavigationFailedEventArgs e) + { + throw new InvalidOperationException($"Failed to load {e.SourcePageType.FullName}: {e.Exception}"); + } + + /// + /// Configures global Uno Platform logging + /// + public static void InitializeLogging() + { +#if DEBUG + // Logging is disabled by default for release builds, as it incurs a significant + // initialization cost from Microsoft.Extensions.Logging setup. If startup performance + // is a concern for your application, keep this disabled. If you're running on the web or + // desktop targets, you can use URL or command line parameters to enable it. + // + // For more performance documentation: https://platform.uno/docs/articles/Uno-UI-Performance.html + + var factory = LoggerFactory.Create(builder => + { +#if __WASM__ + builder.AddProvider(new global::Uno.Extensions.Logging.WebAssembly.WebAssemblyConsoleLoggerProvider()); +#elif __IOS__ || __MACCATALYST__ + builder.AddProvider(new global::Uno.Extensions.Logging.OSLogLoggerProvider()); +#else + builder.AddConsole(); +#endif + + // Exclude logs below this level + builder.SetMinimumLevel(LogLevel.Information); + + // Default filters for Uno Platform namespaces + builder.AddFilter("Uno", LogLevel.Warning); + builder.AddFilter("Windows", LogLevel.Warning); + builder.AddFilter("Microsoft", LogLevel.Warning); + + // Generic Xaml events + // builder.AddFilter("Microsoft.UI.Xaml", LogLevel.Debug ); + // builder.AddFilter("Microsoft.UI.Xaml.VisualStateGroup", LogLevel.Debug ); + // builder.AddFilter("Microsoft.UI.Xaml.StateTriggerBase", LogLevel.Debug ); + // builder.AddFilter("Microsoft.UI.Xaml.UIElement", LogLevel.Debug ); + // builder.AddFilter("Microsoft.UI.Xaml.FrameworkElement", LogLevel.Trace ); + + // Layouter specific messages + // builder.AddFilter("Microsoft.UI.Xaml.Controls", LogLevel.Debug ); + // builder.AddFilter("Microsoft.UI.Xaml.Controls.Layouter", LogLevel.Debug ); + // builder.AddFilter("Microsoft.UI.Xaml.Controls.Panel", LogLevel.Debug ); + + // builder.AddFilter("Windows.Storage", LogLevel.Debug ); + + // Binding related messages + // builder.AddFilter("Microsoft.UI.Xaml.Data", LogLevel.Debug ); + // builder.AddFilter("Microsoft.UI.Xaml.Data", LogLevel.Debug ); + + // Binder memory references tracking + // builder.AddFilter("Uno.UI.DataBinding.BinderReferenceHolder", LogLevel.Debug ); + + // DevServer and HotReload related + // builder.AddFilter("Uno.UI.RemoteControl", LogLevel.Information); + + // Debug JS interop + // builder.AddFilter("Uno.Foundation.WebAssemblyRuntime", LogLevel.Debug ); + }); + + global::Uno.Extensions.LogExtensionPoint.AmbientLoggerFactory = factory; + +#if HAS_UNO + global::Uno.UI.Adapter.Microsoft.Extensions.Logging.LoggingAdapter.Initialize(); +#endif +#endif + } +} diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon.svg b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon.svg new file mode 100644 index 000000000..a15af53aa --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon.svg @@ -0,0 +1,42 @@ + + + + + + diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon_foreground.svg b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon_foreground.svg new file mode 100644 index 000000000..8ffc41ae3 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Icons/icon_foreground.svg @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/SharedAssets.md b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/SharedAssets.md new file mode 100644 index 000000000..1b84a74ab --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/SharedAssets.md @@ -0,0 +1,32 @@ +# Shared Assets + +See documentation about assets here: https://github.com/unoplatform/uno/blob/master/doc/articles/features/working-with-assets.md + +## Here is a cheat sheet + +1. Add the image file to the `Assets` directory of a shared project. +2. Set the build action to `Content`. +3. (Recommended) Provide an asset for various scales/dpi + +### Examples + +```text +\Assets\Images\logo.scale-100.png +\Assets\Images\logo.scale-200.png +\Assets\Images\logo.scale-400.png + +\Assets\Images\scale-100\logo.png +\Assets\Images\scale-200\logo.png +\Assets\Images\scale-400\logo.png +``` + +### Table of scales + +| Scale | WinUI | iOS/MacCatalyst | Android | +|-------|:-----------:|:---------------:|:-------:| +| `100` | scale-100 | @1x | mdpi | +| `125` | scale-125 | N/A | N/A | +| `150` | scale-150 | N/A | hdpi | +| `200` | scale-200 | @2x | xhdpi | +| `300` | scale-300 | @3x | xxhdpi | +| `400` | scale-400 | N/A | xxxhdpi | diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Splash/splash_screen.svg b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Splash/splash_screen.svg new file mode 100644 index 000000000..8ffc41ae3 --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/Assets/Splash/splash_screen.svg @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.csproj b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.csproj new file mode 100644 index 000000000..2e403c25c --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer.csproj @@ -0,0 +1,42 @@ + + + net8.0-android;net8.0-ios;net8.0-windows10.0.19041 + + Exe + true + + + BluetoothExplorer + + com.companyname.BluetoothExplorer + + 1.0 + 1 + + domin + + BluetoothExplorer powered by Uno Platform. + + + + + + + + + + + + diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/GlobalUsings.cs b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/GlobalUsings.cs new file mode 100644 index 000000000..eeafbe36f --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/GlobalUsings.cs @@ -0,0 +1,4 @@ +global using System.Collections.Immutable; +global using Microsoft.Extensions.DependencyInjection; +global using Microsoft.Extensions.Logging; +global using ApplicationExecutionState = Windows.ApplicationModel.Activation.ApplicationExecutionState; diff --git a/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/MainPage.xaml b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/MainPage.xaml new file mode 100644 index 000000000..77e03464b --- /dev/null +++ b/UI/BluetoothExplorer/BluetoothExplorer/BluetoothExplorer/MainPage.xaml @@ -0,0 +1,71 @@ + + + + + + + + + + + + +