Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit fd0ddf1

Browse files
committed
Fix support for offline storage
1 parent 3148ac8 commit fd0ddf1

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed
Binary file not shown.

Naxam.Mapbox.iOS/ApiDefinitions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using CoreAnimation;
33
using CoreGraphics;
44
using CoreLocation;
@@ -1758,7 +1758,7 @@ interface MGLMapViewDelegate
17581758

17591759
// @protocol MGLOfflineRegion <NSObject>
17601760
[Protocol, Model]
1761-
[BaseType(typeof(NSObject))]
1761+
[BaseType(typeof(NSObject), Name = "MGLOfflineRegion")]
17621762
interface MGLOfflineRegion
17631763
{
17641764
}
@@ -1769,7 +1769,7 @@ interface MGLOfflinePack
17691769
{
17701770
// @property (readonly, nonatomic) id<MGLOfflineRegion> _Nonnull region;
17711771
[Export("region")]
1772-
MGLOfflineRegion Region { get; }
1772+
IMGLOfflineRegion Region { get; }
17731773

17741774
// @property (readonly, nonatomic) NSData * _Nonnull context;
17751775
[Export("context")]
@@ -1859,7 +1859,7 @@ interface MGLOfflineStorage
18591859

18601860
// -(void)addPackForRegion:(id<MGLOfflineRegion> _Nonnull)region withContext:(NSData * _Nonnull)context completionHandler:(MGLOfflinePackAdditionCompletionHandler _Nullable)completion;
18611861
[Export("addPackForRegion:withContext:completionHandler:")]
1862-
void AddPackForRegion(MGLOfflineRegion region, NSData context, [NullAllowed] MGLOfflinePackAdditionCompletionHandler completion);
1862+
void AddPackForRegion(IMGLOfflineRegion region, NSData context, [NullAllowed] MGLOfflinePackAdditionCompletionHandler completion);
18631863

18641864
// -(void)removePack:(MGLOfflinePack * _Nonnull)pack withCompletionHandler:(MGLOfflinePackRemovalCompletionHandler _Nullable)completion;
18651865
[Export("removePack:withCompletionHandler:")]
@@ -2646,7 +2646,7 @@ interface NSValue_MGLSymbolStyleLayerAdditions
26462646
// @interface MGLTilePyramidOfflineRegion : NSObject <MGLOfflineRegion, NSSecureCoding, NSCopying>
26472647
[BaseType(typeof(NSObject))]
26482648
[DisableDefaultCtor]
2649-
interface MGLTilePyramidOfflineRegion : IMGLOfflineRegion, INSSecureCoding, INSCopying
2649+
interface MGLTilePyramidOfflineRegion : MGLOfflineRegion, INSSecureCoding, INSCopying
26502650
{
26512651
// @property (readonly, nonatomic) NSURL * _Nonnull styleURL;
26522652
[Export("styleURL")]

Naxam.Mapbox.iOS/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
2626
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
2727

28-
[assembly: AssemblyVersion("3.6.0")]
29-
[assembly: AssemblyInformationalVersion("3.6.0")]
28+
[assembly: AssemblyVersion("3.6.0.3")]
29+
[assembly: AssemblyInformationalVersion("3.6.0.3")]
3030

3131
// The following attributes are used to specify the signing key for the assembly,
3232
// if desired. See the Mono documentation for more information about signing.

Naxam.Mapbox.sln

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{D8F96117
1212
mapbox-ios.nuspec = mapbox-ios.nuspec
1313
EndProjectSection
1414
EndProject
15+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Naxam.Mapbox.Common", "Naxam.Mapbox.Common\Naxam.Mapbox.Common.csproj", "{A80B2873-6EAF-48A1-8445-2896815EFEE0}"
16+
EndProject
1517
Global
1618
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1719
Debug|Any CPU = Debug|Any CPU
@@ -46,6 +48,18 @@ Global
4648
{3A2E7243-0208-4292-92B4-8C25F27B9843}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
4749
{3A2E7243-0208-4292-92B4-8C25F27B9843}.Debug|iPhone.ActiveCfg = Debug|iPhone
4850
{3A2E7243-0208-4292-92B4-8C25F27B9843}.Debug|iPhone.Build.0 = Debug|iPhone
51+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
53+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
54+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Release|Any CPU.Build.0 = Release|Any CPU
55+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
56+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
57+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Release|iPhone.ActiveCfg = Release|Any CPU
58+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Release|iPhone.Build.0 = Release|Any CPU
59+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
60+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
61+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Debug|iPhone.ActiveCfg = Debug|Any CPU
62+
{A80B2873-6EAF-48A1-8445-2896815EFEE0}.Debug|iPhone.Build.0 = Debug|Any CPU
4963
EndGlobalSection
5064
GlobalSection(SolutionProperties) = preSolution
5165
HideSolutionNode = FALSE

mapbox-ios.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<!-- Required elements-->
55
<id>Naxam.Mapbox.iOS</id>
6-
<version>3.6.0</version>
6+
<version>3.6.0.3</version>
77
<description>Xamarin binding library for Mapbox iOS SDK</description>
88
<authors>Vu Duc Tuyen</authors>
99
<owners>NAXAM CO.,LTD</owners>
@@ -12,7 +12,7 @@
1212
<!-- Optional elements -->
1313
<title>Naxam - Mapbox iOS</title>
1414
<summary>Xamarin binding library for Mapbox iOS SDK</summary>
15-
<releaseNotes>Mapbox iOS SDK 3.6.0</releaseNotes>
15+
<releaseNotes>Fix support for offline packs</releaseNotes>
1616
<licenseUrl>https://opensource.org/licenses/MIT</licenseUrl>
1717
<projectUrl>https://github.com/kanvuduc/xam-mapbox-ios</projectUrl>
1818
<copyright>Copyright (c) 2017 NAXAM</copyright>

0 commit comments

Comments
 (0)