Skip to content

Commit 2a6752c

Browse files
committed
chroe: Change the Implementation class from public to internal
1 parent d569a72 commit 2a6752c

17 files changed

+28
-21
lines changed

src/MauiBlazorToolkit/MauiBlazorToolkit.Sample/App.xaml.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ public partial class App : Application
55
public App()
66
{
77
InitializeComponent();
8+
}
89

9-
MainPage = new MainPage();
10+
protected override Window CreateWindow(IActivationState activationState)
11+
{
12+
var window = new Window(new MainPage());
13+
return window;
1014
}
1115
}
1216
}

src/MauiBlazorToolkit/MauiBlazorToolkit.Sample/MainPage.xaml.cs

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ public partial class MainPage : ContentPage
55
public MainPage()
66
{
77
InitializeComponent();
8+
#if ANDROID35_0_OR_GREATER
9+
this.Padding = new Thickness(Padding.Left, 48, Padding.Right, Padding.Bottom);
10+
#endif
811
}
912
}
1013
}

src/MauiBlazorToolkit/MauiBlazorToolkit.Sample/MauiBlazorToolkit.Sample.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@
5757
<ItemGroup Condition="$(TargetFramework.Contains('net8.0')) != true ">
5858
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
5959
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
60+
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" />
6061
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
6162
</ItemGroup>
6263

6364
<ItemGroup Condition="$(TargetFramework.Contains('net9.0')) != true ">
6465
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
66+
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" />
6567
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
6668
</ItemGroup>
6769

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/AndroidFilePicker/AndroidFilePickerImplementation.android.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace MauiBlazorToolkit.Essentials
66
{
7-
public class AndroidFilePickerImplementation : IAndroidFilePicker
7+
internal class AndroidFilePickerImplementation : IAndroidFilePicker
88
{
99
public async Task<FileResult?> PickAsync(PickOptions? options = null)
1010
=> (await PlatformPickAsync(options))?.FirstOrDefault();

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/AppStoreLauncher/AppStoreLauncherImplementation.android.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using Android.Content;
2-
using Application = Android.App.Application;
32
using AndroidUri = Android.Net.Uri;
3+
using Application = Android.App.Application;
44
using Uri = System.Uri;
55

66
namespace MauiBlazorToolkit.Essentials
77
{
8-
public sealed partial class AppStoreLauncherImplementation
8+
internal sealed partial class AppStoreLauncherImplementation
99
{
1010
static string InternalAppStoreAppUri(string appId)
1111
=> $"market://details?id={appId}";
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
using System;
2-
3-
namespace MauiBlazorToolkit.Essentials
1+
namespace MauiBlazorToolkit.Essentials
42
{
5-
public sealed partial class AppStoreLauncherImplementation
3+
internal sealed partial class AppStoreLauncherImplementation
64
{
75
static string InternalAppStoreAppUri(string appId)
86
=> $"itms-apps://itunes.apple.com/app/id{appId}";
97

10-
static Task<bool> PlatformCanOpenAsync(string appId)
8+
static Task<bool> PlatformCanOpenAsync(string appId)
119
=> Launcher.CanOpenAsync(InternalAppStoreAppUri(appId));
1210

13-
static Task<bool> PlatformOpenAsync(string appId)
11+
static Task<bool> PlatformOpenAsync(string appId)
1412
=> Launcher.OpenAsync(InternalAppStoreAppUri(appId));
1513
}
1614
}

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/AppStoreLauncher/AppStoreLauncherImplementation.net.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace MauiBlazorToolkit.Essentials
22
{
3-
public sealed partial class AppStoreLauncherImplementation
3+
internal sealed partial class AppStoreLauncherImplementation
44
{
55
static Task<bool> PlatformCanOpenAsync(string appId) => throw new NotSupportedException($"{nameof(PlatformCanOpenAsync)} is not supported");
66

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/AppStoreLauncher/AppStoreLauncherImplementation.shared.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace MauiBlazorToolkit.Essentials
22
{
3-
public sealed partial class AppStoreLauncherImplementation : IAppStoreLauncher
3+
internal sealed partial class AppStoreLauncherImplementation : IAppStoreLauncher
44
{
55
public Task<bool> CanOpenAsync(string appId)
66
=> PlatformCanOpenAsync(appId);

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/AppStoreLauncher/AppStoreLauncherImplementation.tizen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace MauiBlazorToolkit.Essentials
22
{
3-
public sealed partial class AppStoreLauncherImplementation
3+
internal sealed partial class AppStoreLauncherImplementation
44
{
55
static string InternalAppStoreAppUri(string appId)
66
=> $"tizenstore://ProductDetail/{appId}";

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/AppStoreLauncher/AppStoreLauncherImplementation.windows.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace MauiBlazorToolkit.Essentials
22
{
3-
public sealed partial class AppStoreLauncherImplementation
3+
internal sealed partial class AppStoreLauncherImplementation
44
{
55
static string InternalAppStoreAppUri(string appId)
66
=> $"ms-windows-store://pdp/?ProductId={appId}";

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/MediaFilePicker/MediaFilePickerImplementation.android.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace MauiBlazorToolkit.Essentials
1111
{
1212
[SupportedOSPlatform("Android")]
13-
public sealed partial class MediaFilePickerImplementation
13+
internal sealed partial class MediaFilePickerImplementation
1414
{
1515
public static Task<IEnumerable<FileResult>?> PlatformPickMultiplePhotoAsync(bool usePhotoPicker = true)
1616
=> PlatformPickMultipleAsync(true, usePhotoPicker);

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/MediaFilePicker/MediaFilePickerImplementation.ios.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace MauiBlazorToolkit.Essentials
88
{
99
[SupportedOSPlatform("iOS")]
10-
public sealed partial class MediaFilePickerImplementation
10+
internal sealed partial class MediaFilePickerImplementation
1111
{
1212
public static Task<IEnumerable<FileResult>?> PlatformPickMultiplePhotoAsync()
1313
=> PlatformPickMultipAsync(true);

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/MediaFilePicker/MediaFilePickerImplementation.macos.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace MauiBlazorToolkit.Essentials
44
{
55
[UnsupportedOSPlatform("MacCatalyst")]
6-
public partial class MediaFilePickerImplementation
6+
internal partial class MediaFilePickerImplementation
77
{
88
public Task<IEnumerable<FileResult>?> PlatformPickMultiplePhotoAsync()
99
=> throw new NotSupportedException($"{nameof(PlatformPickMultiplePhotoAsync)} is not supported on MacCatalyst");

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/MediaFilePicker/MediaFilePickerImplementation.net.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace MauiBlazorToolkit.Essentials
22
{
3-
public sealed partial class MediaFilePickerImplementation
3+
internal sealed partial class MediaFilePickerImplementation
44
{
55
public Task<IEnumerable<FileResult>?> PlatformPickMultiplePhotoAsync()
66
=> throw new NotSupportedException($"{nameof(PlatformPickMultiplePhotoAsync)} is not supported");

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/MediaFilePicker/MediaFilePickerImplementation.shared.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
namespace MauiBlazorToolkit.Essentials
33
{
4-
public sealed partial class MediaFilePickerImplementation : IMediaFilePicker
4+
internal sealed partial class MediaFilePickerImplementation : IMediaFilePicker
55
{
66
public Task<IEnumerable<FileResult>?> PickMultiplePhotoAsync()
77
=> PlatformPickMultiplePhotoAsync();

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/MediaFilePicker/MediaFilePickerImplementation.tizen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace MauiBlazorToolkit.Essentials
22
{
33
[UnsupportedOSPlatform("Tizen")]
4-
public sealed partial class MediaFilePickerImplementation
4+
internal sealed partial class MediaFilePickerImplementation
55
{
66
public Task<IEnumerable<FileResult>?> PlatformPickMultiplePhotoAsync()
77
=> throw new NotSupportedException($"{nameof(PlatformPickMultiplePhotoAsync)} is not supported on Tizen");

src/MauiBlazorToolkit/MauiBlazorToolkit/Essentials/MediaFilePicker/MediaFilePickerImplementation.windows.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace MauiBlazorToolkit.Essentials
44
{
55
[UnsupportedOSPlatform("Windows")]
6-
public sealed partial class MediaFilePickerImplementation
6+
internal sealed partial class MediaFilePickerImplementation
77
{
88
public Task<IEnumerable<FileResult>?> PlatformPickMultiplePhotoAsync()
99
=> throw new NotSupportedException($"{nameof(PlatformPickMultiplePhotoAsync)} is not supported on Windows");

0 commit comments

Comments
 (0)