Skip to content

Commit f05c88d

Browse files
committed
feat: Add .net8 target
1 parent 4d19bde commit f05c88d

File tree

3 files changed

+87
-5
lines changed

3 files changed

+87
-5
lines changed

src/libs/Mapbox.Maui/Mapbox.Maui.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</Target>
1111

1212
<PropertyGroup>
13-
<TargetFrameworks>net8.0-android;net8.0-ios;</TargetFrameworks>
13+
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;</TargetFrameworks>
1414
<UseMaui>true</UseMaui>
1515
<SingleProject>true</SingleProject>
1616
<ImplicitUsings>enable</ImplicitUsings>

src/libs/Mapbox.Maui/MapboxViewHandler.cs

+59-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
using Microsoft.Maui.Handlers;
44

5-
#if IOS
5+
#if __IOS__
66
using PlatformView = MapboxMaui.MapViewContainer;
77
#elif __ANDROID__
88
using PlatformView = AndroidX.Fragment.App.FragmentContainerView;
@@ -37,4 +37,62 @@ public MapboxViewHandler() : base(Mapper, CommandMapper)
3737
{
3838

3939
}
40+
41+
#if __ANDROID__
42+
#elif __IOS__
43+
#else
44+
protected override PlatformView CreatePlatformView()
45+
{
46+
return new PlatformView();
47+
}
48+
private static void HandleGestureSettingsChanged(MapboxViewHandler handler, IMapboxView view)
49+
{
50+
throw new NotImplementedException();
51+
}
52+
53+
private static void HandleLightChanged(MapboxViewHandler handler, IMapboxView view)
54+
{
55+
throw new NotImplementedException();
56+
}
57+
58+
private static void HandleImagesChanged(MapboxViewHandler handler, IMapboxView view)
59+
{
60+
throw new NotImplementedException();
61+
}
62+
63+
private static void HandleLayersChanged(MapboxViewHandler handler, IMapboxView view)
64+
{
65+
throw new NotImplementedException();
66+
}
67+
68+
private static void HandleTerrainChanged(MapboxViewHandler handler, IMapboxView view)
69+
{
70+
throw new NotImplementedException();
71+
}
72+
73+
private static void HandleSourcesChanged(MapboxViewHandler handler, IMapboxView view)
74+
{
75+
throw new NotImplementedException();
76+
}
77+
78+
private static void HandleCameraOptionsChanged(MapboxViewHandler handler, IMapboxView view)
79+
{
80+
throw new NotImplementedException();
81+
}
82+
83+
private static void HandleDebugOptionsChanged(MapboxViewHandler handler, IMapboxView view)
84+
{
85+
throw new NotImplementedException();
86+
}
87+
88+
private static void HandleScaleBarVisibilityChanged(MapboxViewHandler handler, IMapboxView view)
89+
{
90+
throw new NotImplementedException();
91+
}
92+
93+
private static void HandleMapboxStyleChanged(MapboxViewHandler handler, IMapboxView view)
94+
{
95+
throw new NotImplementedException();
96+
}
97+
#endif
4098
}

src/libs/Mapbox.Maui/Models/Offline/IOfflineManager.cs

+27-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using GeoJSON.Text;
2-
using GeoJSON.Text.Geometry;
3-
using Point = Microsoft.Maui.Graphics.Point;
1+
using Point = Microsoft.Maui.Graphics.Point;
42

53
namespace MapboxMaui.Offline;
64

@@ -40,6 +38,32 @@ CameraOptions cameraOptions
4038
}
4139

4240
partial void InitializePlatformManager();
41+
42+
#if __ANDROID__
43+
#elif __IOS__
44+
#else
45+
public bool IsMapboxStackConnected { get; set; }
46+
47+
public void DownloadStyle(
48+
string styleUri,
49+
StylePackLoadOptions options,
50+
Action<StylePackLoadProgress> progressHandler,
51+
Action<StylePack, Exception> completionHandler
52+
)
53+
{
54+
throw new NotImplementedException();
55+
}
56+
57+
public void DownloadTile(
58+
string tileId,
59+
TileRegionLoadOptions options,
60+
Action<TileRegionLoadProgress> progressHandler,
61+
Action<TileRegion, Exception> completionHandler
62+
)
63+
{
64+
throw new NotImplementedException();
65+
}
66+
#endif
4367
}
4468

4569
public record TilesetDescriptorOptions (

0 commit comments

Comments
 (0)