File tree Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 1
1
using System . Diagnostics ;
2
+ using System . Runtime . Versioning ;
2
3
using CommunityToolkit . Maui . Core . Services ;
3
4
using Microsoft . Extensions . DependencyInjection ;
4
5
using Microsoft . Maui . LifecycleEvents ;
@@ -9,6 +10,11 @@ namespace CommunityToolkit.Maui.Core;
9
10
/// <summary>
10
11
/// <see cref="MauiAppBuilder"/> Extensions
11
12
/// </summary>
13
+ [ SupportedOSPlatform ( "iOS15.0" ) ]
14
+ [ SupportedOSPlatform ( "MacCatalyst15.0" ) ]
15
+ [ SupportedOSPlatform ( "Android21.0" ) ]
16
+ [ SupportedOSPlatform ( "Windows10.0.17763" ) ]
17
+ [ SupportedOSPlatform ( "Tizen6.5" ) ]
12
18
public static class AppBuilderExtensions
13
19
{
14
20
/// <summary>
Original file line number Diff line number Diff line change 1
1
using System . Diagnostics . CodeAnalysis ;
2
+ using System . Runtime . Versioning ;
2
3
3
4
namespace CommunityToolkit . Maui . Maps ;
4
5
5
6
/// <summary>
6
7
/// Maps Extensions for <see cref="MauiAppBuilder"/>
7
8
/// </summary>
8
- public static class AppHostBuilderExtensions
9
+ [ SupportedOSPlatform ( "iOS15.0" ) ]
10
+ [ SupportedOSPlatform ( "MacCatalyst15.0" ) ]
11
+ [ SupportedOSPlatform ( "Android21.0" ) ]
12
+ [ SupportedOSPlatform ( "Windows10.0.17763" ) ]
13
+ [ SupportedOSPlatform ( "Tizen6.5" ) ]
14
+ public static class AppBuilderExtensions
9
15
{
10
16
/// <summary>
11
17
/// Initializes the .NET MAUI Community Toolkit Maps Library
Original file line number Diff line number Diff line change 1
- using CommunityToolkit . Maui . Core . Handlers ;
1
+ using System . Runtime . Versioning ;
2
+ using CommunityToolkit . Maui . Core . Handlers ;
2
3
using CommunityToolkit . Maui . Views ;
3
4
4
5
namespace CommunityToolkit . Maui ;
5
6
6
7
/// <summary>
7
8
/// This class contains MediaElement's <see cref="MauiAppBuilder"/> extensions.
8
9
/// </summary>
10
+ [ SupportedOSPlatform ( "iOS15.0" ) ]
11
+ [ SupportedOSPlatform ( "MacCatalyst15.0" ) ]
12
+ [ SupportedOSPlatform ( "Android26.0" ) ]
13
+ [ SupportedOSPlatform ( "Windows10.0.17763" ) ]
14
+ [ SupportedOSPlatform ( "Tizen6.5" ) ]
9
15
public static class AppBuilderExtensions
10
16
{
11
17
/// <summary>
Original file line number Diff line number Diff line change 1
- using CommunityToolkit . Maui . Core ;
1
+ using System . Runtime . Versioning ;
2
+ using CommunityToolkit . Maui . Core ;
2
3
using CommunityToolkit . Maui . Core . Handlers ;
3
4
using CommunityToolkit . Maui . PlatformConfiguration . AndroidSpecific ;
4
5
using CommunityToolkit . Maui . Views ;
@@ -8,6 +9,11 @@ namespace CommunityToolkit.Maui;
8
9
/// <summary>
9
10
/// Extensions for MauiAppBuilder
10
11
/// </summary>
12
+ [ SupportedOSPlatform ( "iOS15.0" ) ]
13
+ [ SupportedOSPlatform ( "MacCatalyst15.0" ) ]
14
+ [ SupportedOSPlatform ( "Android21.0" ) ]
15
+ [ SupportedOSPlatform ( "Windows10.0.17763" ) ]
16
+ [ SupportedOSPlatform ( "Tizen6.5" ) ]
11
17
public static class AppBuilderExtensions
12
18
{
13
19
/// <summary>
@@ -34,7 +40,10 @@ public static MauiAppBuilder UseMauiCommunityToolkit(this MauiAppBuilder builder
34
40
} ) ;
35
41
36
42
Popup . RemapForControls ( ) ;
43
+
44
+ #if ANDROID
37
45
NavigationBar . RemapForControls ( ) ;
46
+ #endif
38
47
return builder ;
39
48
}
40
49
}
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public static void MapNavigationColorProperty(IPageHandler handler, IContentView
93
93
94
94
var color = GetColor ( page ) . ToPlatform ( ) ;
95
95
96
- if ( OperatingSystem . IsAndroidVersionAtLeast ( 21 ) )
96
+ if ( OperatingSystem . IsAndroidVersionAtLeast ( 23 ) )
97
97
{
98
98
window . SetNavigationBarColor ( color ) ;
99
99
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace CommunityToolkit.Maui.PlatformConfiguration.AndroidSpecific;
8
8
/// <summary>
9
9
/// Provides platform-specific configuration properties for the Android navigation bar.
10
10
/// </summary>
11
- [ SupportedOSPlatform ( "Android21 .0" ) ]
11
+ [ SupportedOSPlatform ( "Android23 .0" ) ]
12
12
public static partial class NavigationBar
13
13
{
14
14
/// <summary>
You can’t perform that action at this time.
0 commit comments