Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions src/SampleCRM.Maui.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleCRM.Maui", "SampleCRM.Maui\SampleCRM.Maui.csproj", "{4941902B-3C0D-48E7-B451-472D328ED5BE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleCRM", "SampleCRM\SampleCRM.csproj", "{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SampleCRM.Browser", "SampleCRM.Browser\SampleCRM.Browser.csproj", "{642A8824-C584-48A6-93EF-BC858C5C16BB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleCRM.Web", "SampleCRM.Web\SampleCRM.Web.csproj", "{A8AA986C-4AEF-489F-86EC-19029369765E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Debug|x64.ActiveCfg = Debug|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Debug|x64.Build.0 = Debug|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Debug|x64.Deploy.0 = Debug|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Release|Any CPU.Build.0 = Release|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Release|Any CPU.Deploy.0 = Release|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Release|x64.ActiveCfg = Release|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Release|x64.Build.0 = Release|Any CPU
{4941902B-3C0D-48E7-B451-472D328ED5BE}.Release|x64.Deploy.0 = Release|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Debug|x64.ActiveCfg = Debug|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Debug|x64.Build.0 = Debug|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Release|Any CPU.Build.0 = Release|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Release|x64.ActiveCfg = Release|Any CPU
{F1D5A0D6-57B6-4157-BCFC-4F35199CCB7B}.Release|x64.Build.0 = Release|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Debug|x64.ActiveCfg = Debug|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Debug|x64.Build.0 = Debug|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Release|Any CPU.Build.0 = Release|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Release|x64.ActiveCfg = Release|Any CPU
{642A8824-C584-48A6-93EF-BC858C5C16BB}.Release|x64.Build.0 = Release|Any CPU
{A8AA986C-4AEF-489F-86EC-19029369765E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A8AA986C-4AEF-489F-86EC-19029369765E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A8AA986C-4AEF-489F-86EC-19029369765E}.Debug|x64.ActiveCfg = Debug|x64
{A8AA986C-4AEF-489F-86EC-19029369765E}.Debug|x64.Build.0 = Debug|x64
{A8AA986C-4AEF-489F-86EC-19029369765E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A8AA986C-4AEF-489F-86EC-19029369765E}.Release|Any CPU.Build.0 = Release|Any CPU
{A8AA986C-4AEF-489F-86EC-19029369765E}.Release|x64.ActiveCfg = Release|x64
{A8AA986C-4AEF-489F-86EC-19029369765E}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7D841C45-9605-439B-BC0A-7E50859A3F37}
EndGlobalSection
EndGlobal
26 changes: 26 additions & 0 deletions src/SampleCRM.Maui/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:SampleCRM.Maui"
x:Class="SampleCRM.Maui.App">
<Application.Resources>
<ResourceDictionary>

<Color x:Key="PageBackgroundColor">#512bdf</Color>
<Color x:Key="PrimaryTextColor">White</Color>

<Style TargetType="Label">
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
<Setter Property="FontFamily" Value="OpenSansRegular" />
</Style>

<Style TargetType="Button">
<Setter Property="TextColor" Value="{DynamicResource PrimaryTextColor}" />
<Setter Property="FontFamily" Value="OpenSansRegular" />
<Setter Property="BackgroundColor" Value="#2b0b98" />
<Setter Property="Padding" Value="14,10" />
</Style>

</ResourceDictionary>
</Application.Resources>
</Application>
12 changes: 12 additions & 0 deletions src/SampleCRM.Maui/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace SampleCRM.Maui
{
public partial class App : Application
{
public App()
{
InitializeComponent();

MainPage = new MainPage();
}
}
}
11 changes: 11 additions & 0 deletions src/SampleCRM.Maui/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:SampleCRM.Maui"
x:Class="SampleCRM.Maui.MainPage"
BackgroundColor="{DynamicResource PageBackgroundColor}">

<BlazorWebView x:Name="blazorWebView" HostPage="wwwroot/index.html">
</BlazorWebView>

</ContentPage>
17 changes: 17 additions & 0 deletions src/SampleCRM.Maui/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Components.WebView.Maui;

namespace SampleCRM.Maui
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();

var rootComponent = new RootComponent();
rootComponent.Selector = "#app";
rootComponent.ComponentType = typeof(Browser.App);
blazorWebView.RootComponents.Add(rootComponent);
}
}
}
27 changes: 27 additions & 0 deletions src/SampleCRM.Maui/MauiProgram.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Microsoft.Extensions.Logging;

namespace SampleCRM.Maui
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});

builder.Services.AddMauiBlazorWebView();

#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Logging.AddDebug();
#endif

return builder.Build();
}
}
}
6 changes: 6 additions & 0 deletions src/SampleCRM.Maui/Platforms/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
11 changes: 11 additions & 0 deletions src/SampleCRM.Maui/Platforms/Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Android.App;
using Android.Content.PM;
using Android.OS;

namespace SampleCRM.Maui
{
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
}
}
16 changes: 16 additions & 0 deletions src/SampleCRM.Maui/Platforms/Android/MainApplication.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Android.App;
using Android.Runtime;

namespace SampleCRM.Maui
{
[Application]
public class MainApplication : MauiApplication
{
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
: base(handle, ownership)
{
}

protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#512BD4</color>
<color name="colorPrimaryDark">#2B0B98</color>
<color name="colorAccent">#2B0B98</color>
</resources>
10 changes: 10 additions & 0 deletions src/SampleCRM.Maui/Platforms/MacCatalyst/AppDelegate.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using Foundation;

namespace SampleCRM.Maui
{
[Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate
{
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}
}
14 changes: 14 additions & 0 deletions src/SampleCRM.Maui/Platforms/MacCatalyst/Entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- See https://aka.ms/maui-publish-app-store#add-entitlements for more information about adding entitlements.-->
<dict>
<!-- App Sandbox must be enabled to distribute a MacCatalyst app through the Mac App Store. -->
<key>com.apple.security.app-sandbox</key>
<true/>
<!-- When App Sandbox is enabled, this value is required to open outgoing network connections. -->
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

38 changes: 38 additions & 0 deletions src/SampleCRM.Maui/Platforms/MacCatalyst/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- The Mac App Store requires you specify if the app uses encryption. -->
<!-- Please consult https://developer.apple.com/documentation/bundleresources/information_property_list/itsappusesnonexemptencryption -->
<!-- <key>ITSAppUsesNonExemptEncryption</key> -->
<!-- Please indicate <true/> or <false/> here. -->

<!-- Specify the category for your app here. -->
<!-- Please consult https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype -->
<!-- <key>LSApplicationCategoryType</key> -->
<!-- <string>public.app-category.YOUR-CATEGORY-HERE</string> -->
<key>UIDeviceFamily</key>
<array>
<integer>2</integer>
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/appicon.appiconset</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions src/SampleCRM.Maui/Platforms/MacCatalyst/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using ObjCRuntime;
using UIKit;

namespace SampleCRM.Maui
{
public class Program
{
// This is the main entry point of the application.
static void Main(string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
UIApplication.Main(args, null, typeof(AppDelegate));
}
}
}
17 changes: 17 additions & 0 deletions src/SampleCRM.Maui/Platforms/Tizen/Main.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Microsoft.Maui;
using Microsoft.Maui.Hosting;
using System;

namespace SampleCRM.Maui
{
internal class Program : MauiApplication
{
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();

static void Main(string[] args)
{
var app = new Program();
app.Run(args);
}
}
}
15 changes: 15 additions & 0 deletions src/SampleCRM.Maui/Platforms/Tizen/tizen-manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="7" xmlns="http://tizen.org/ns/packages">
<profile name="common" />
<ui-application appid="maui-application-id-placeholder" exec="SampleCRM.Maui.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
<label>maui-application-title-placeholder</label>
<icon>maui-appicon-placeholder</icon>
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />
</ui-application>
<shortcut-list />
<privileges>
<privilege>http://tizen.org/privilege/internet</privilege>
</privileges>
<dependencies />
<provides-appdefined-privileges />
</manifest>
8 changes: 8 additions & 0 deletions src/SampleCRM.Maui/Platforms/Windows/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<maui:MauiWinUIApplication
x:Class="SampleCRM.Maui.WinUI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:maui="using:Microsoft.Maui"
xmlns:local="using:SampleCRM.Maui.WinUI">

</maui:MauiWinUIApplication>
25 changes: 25 additions & 0 deletions src/SampleCRM.Maui/Platforms/Windows/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Microsoft.UI.Xaml;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace SampleCRM.Maui.WinUI
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App : MauiWinUIApplication
{
/// <summary>
/// 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().
/// </summary>
public App()
{
this.InitializeComponent();
}

protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
}

}
Loading