From b815a7c5f51dd8a9f811c40093df25f95665603c Mon Sep 17 00:00:00 2001 From: "PAVLOSLAPTOP\\Pavlo" Date: Wed, 22 Feb 2023 16:56:02 +0100 Subject: [PATCH] basic MDM implementation for all platforms --- gitignore => .gitignore | 0 XAM-MDM/MauiApp1/App.xaml | 14 + XAM-MDM/MauiApp1/App.xaml.cs | 11 + XAM-MDM/MauiApp1/AppShell.xaml | 14 + XAM-MDM/MauiApp1/AppShell.xaml.cs | 9 + XAM-MDM/MauiApp1/MainPage.xaml | 37 ++ XAM-MDM/MauiApp1/MainPage.xaml.cs | 28 ++ .../MauiApp1/ManagedConfigurationProvider.cs | 7 + XAM-MDM/MauiApp1/MauiProgram.cs | 24 ++ .../Platforms/Android/AndroidManifest.xml | 8 + .../Platforms/Android/MainActivity.cs | 10 + .../Platforms/Android/MainApplication.cs | 15 + .../Android/ManagedConfigurationProvider.cs | 23 + .../Android/Resources/values/colors.xml | 6 + .../Android/Resources/values/strings.xml | 4 + .../Resources/xml/app_restrictions.xml | 8 + XAM-MDM/MauiApp1/Platforms/Windows/App.xaml | 8 + .../MauiApp1/Platforms/Windows/App.xaml.cs | 24 ++ .../Windows/ManagedConfigurationProvider.cs | 22 + .../Platforms/Windows/Package.appxmanifest | 46 ++ .../MauiApp1/Platforms/Windows/app.manifest | 15 + XAM-MDM/MauiApp1/Platforms/iOS/AppDelegate.cs | 9 + XAM-MDM/MauiApp1/Platforms/iOS/Info.plist | 32 ++ .../iOS/ManagedConfigurationProvider.cs | 22 + XAM-MDM/MauiApp1/Platforms/iOS/Program.cs | 15 + .../MauiApp1/Properties/launchSettings.json | 8 + .../MauiApp1/Resources/AppIcon/appicon.svg | 4 + .../MauiApp1/Resources/AppIcon/appiconfg.svg | 8 + .../Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107140 bytes .../Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111068 bytes XAM-MDM/MauiApp1/Resources/Images/intune.png | Bin 0 -> 87715 bytes .../MauiApp1/Resources/Raw/AboutAssets.txt | 15 + XAM-MDM/MauiApp1/Resources/Splash/splash.svg | 8 + XAM-MDM/MauiApp1/Resources/Styles/Colors.xaml | 44 ++ XAM-MDM/MauiApp1/Resources/Styles/Styles.xaml | 405 ++++++++++++++++++ XAM-MDM/MauiApp1/XAM-MDM.csproj | 65 +++ XAM-MDM/XAM-MDM.sln | 27 ++ 37 files changed, 995 insertions(+) rename gitignore => .gitignore (100%) create mode 100644 XAM-MDM/MauiApp1/App.xaml create mode 100644 XAM-MDM/MauiApp1/App.xaml.cs create mode 100644 XAM-MDM/MauiApp1/AppShell.xaml create mode 100644 XAM-MDM/MauiApp1/AppShell.xaml.cs create mode 100644 XAM-MDM/MauiApp1/MainPage.xaml create mode 100644 XAM-MDM/MauiApp1/MainPage.xaml.cs create mode 100644 XAM-MDM/MauiApp1/ManagedConfigurationProvider.cs create mode 100644 XAM-MDM/MauiApp1/MauiProgram.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/Android/AndroidManifest.xml create mode 100644 XAM-MDM/MauiApp1/Platforms/Android/MainActivity.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/Android/MainApplication.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/Android/ManagedConfigurationProvider.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/Android/Resources/values/colors.xml create mode 100644 XAM-MDM/MauiApp1/Platforms/Android/Resources/values/strings.xml create mode 100644 XAM-MDM/MauiApp1/Platforms/Android/Resources/xml/app_restrictions.xml create mode 100644 XAM-MDM/MauiApp1/Platforms/Windows/App.xaml create mode 100644 XAM-MDM/MauiApp1/Platforms/Windows/App.xaml.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/Windows/ManagedConfigurationProvider.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/Windows/Package.appxmanifest create mode 100644 XAM-MDM/MauiApp1/Platforms/Windows/app.manifest create mode 100644 XAM-MDM/MauiApp1/Platforms/iOS/AppDelegate.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/iOS/Info.plist create mode 100644 XAM-MDM/MauiApp1/Platforms/iOS/ManagedConfigurationProvider.cs create mode 100644 XAM-MDM/MauiApp1/Platforms/iOS/Program.cs create mode 100644 XAM-MDM/MauiApp1/Properties/launchSettings.json create mode 100644 XAM-MDM/MauiApp1/Resources/AppIcon/appicon.svg create mode 100644 XAM-MDM/MauiApp1/Resources/AppIcon/appiconfg.svg create mode 100644 XAM-MDM/MauiApp1/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 XAM-MDM/MauiApp1/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 XAM-MDM/MauiApp1/Resources/Images/intune.png create mode 100644 XAM-MDM/MauiApp1/Resources/Raw/AboutAssets.txt create mode 100644 XAM-MDM/MauiApp1/Resources/Splash/splash.svg create mode 100644 XAM-MDM/MauiApp1/Resources/Styles/Colors.xaml create mode 100644 XAM-MDM/MauiApp1/Resources/Styles/Styles.xaml create mode 100644 XAM-MDM/MauiApp1/XAM-MDM.csproj create mode 100644 XAM-MDM/XAM-MDM.sln diff --git a/gitignore b/.gitignore similarity index 100% rename from gitignore rename to .gitignore diff --git a/XAM-MDM/MauiApp1/App.xaml b/XAM-MDM/MauiApp1/App.xaml new file mode 100644 index 0000000..8fb5f38 --- /dev/null +++ b/XAM-MDM/MauiApp1/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/XAM-MDM/MauiApp1/App.xaml.cs b/XAM-MDM/MauiApp1/App.xaml.cs new file mode 100644 index 0000000..dfe7827 --- /dev/null +++ b/XAM-MDM/MauiApp1/App.xaml.cs @@ -0,0 +1,11 @@ +namespace MauiApp1; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} diff --git a/XAM-MDM/MauiApp1/AppShell.xaml b/XAM-MDM/MauiApp1/AppShell.xaml new file mode 100644 index 0000000..b1bb675 --- /dev/null +++ b/XAM-MDM/MauiApp1/AppShell.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/XAM-MDM/MauiApp1/AppShell.xaml.cs b/XAM-MDM/MauiApp1/AppShell.xaml.cs new file mode 100644 index 0000000..831b83b --- /dev/null +++ b/XAM-MDM/MauiApp1/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace MauiApp1; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/XAM-MDM/MauiApp1/MainPage.xaml b/XAM-MDM/MauiApp1/MainPage.xaml new file mode 100644 index 0000000..11fd689 --- /dev/null +++ b/XAM-MDM/MauiApp1/MainPage.xaml @@ -0,0 +1,37 @@ + + + + + + + + +