Blazor Hybrid / .NET MAUI support
This commit is contained in:
		
							
								
								
									
										6
									
								
								Oqtane.Maui/Platforms/Android/AndroidManifest.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								Oqtane.Maui/Platforms/Android/AndroidManifest.xml
									
									
									
									
									
										Normal file
									
								
							@ -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>
 | 
			
		||||
							
								
								
									
										10
									
								
								Oqtane.Maui/Platforms/Android/MainActivity.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Oqtane.Maui/Platforms/Android/MainActivity.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
using Android.App;
 | 
			
		||||
using Android.Content.PM;
 | 
			
		||||
using Android.OS;
 | 
			
		||||
 | 
			
		||||
namespace Oqtane.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
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										15
									
								
								Oqtane.Maui/Platforms/Android/MainApplication.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Oqtane.Maui/Platforms/Android/MainApplication.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,15 @@
 | 
			
		||||
using Android.App;
 | 
			
		||||
using Android.Runtime;
 | 
			
		||||
 | 
			
		||||
namespace Oqtane.Maui;
 | 
			
		||||
 | 
			
		||||
[Application]
 | 
			
		||||
public class MainApplication : MauiApplication
 | 
			
		||||
{
 | 
			
		||||
	public MainApplication(IntPtr handle, JniHandleOwnership ownership)
 | 
			
		||||
		: base(handle, ownership)
 | 
			
		||||
	{
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
 | 
			
		||||
}
 | 
			
		||||
@ -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>
 | 
			
		||||
		Reference in New Issue
	
	Block a user