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

Commit

Permalink
Mapbox iOS SDK 3.5.2, alpha binding
Browse files Browse the repository at this point in the history
  • Loading branch information
tuyen-vuduc committed Apr 16, 2017
1 parent 46a1282 commit a149e58
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 73 deletions.
2 changes: 1 addition & 1 deletion Naxam.Mapbox.iOS/Naxam.Mapbox.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<DefineConstants></DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\Naxam.Mapbox.iOS.xml</DocumentationFile>
<DocumentationFile></DocumentationFile>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions Naxam.Mapbox.iOS/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("NAXAM CO.,LTD")]
[assembly: AssemblyProduct("OSS")]
[assembly: AssemblyCopyright("@ 2017 NAXAM")]
[assembly: AssemblyCopyright("Copyright @ 2017 NAXAM")]
[assembly: AssemblyTrademark("NAXAM")]
[assembly: AssemblyCulture("")]

// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("3.4.1.1")]
[assembly: AssemblyVersion("3.5.2")]
[assembly: AssemblyInformationalVersion("3.5.2-alpha")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down
134 changes: 67 additions & 67 deletions Naxam.Mapbox.iOS/StructsAndEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,73 +25,73 @@ public struct MGLCoordinateSpan
public double longitudeDelta;
}

static class CFunctions
{
// MGLCoordinateSpan MGLCoordinateSpanMake (CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern MGLCoordinateSpan MGLCoordinateSpanMake (double latitudeDelta, double longitudeDelta);

// BOOL MGLCoordinateSpanEqualToCoordinateSpan (MGLCoordinateSpan span1, MGLCoordinateSpan span2) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern bool MGLCoordinateSpanEqualToCoordinateSpan (MGLCoordinateSpan span1, MGLCoordinateSpan span2);

// MGLCoordinateBounds MGLCoordinateBoundsMake (CLLocationCoordinate2D sw, CLLocationCoordinate2D ne) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern MGLCoordinateBounds MGLCoordinateBoundsMake (CLLocationCoordinate2D sw, CLLocationCoordinate2D ne);

// BOOL MGLCoordinateBoundsEqualToCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern bool MGLCoordinateBoundsEqualToCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2);

// BOOL MGLCoordinateBoundsIntersectsCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern bool MGLCoordinateBoundsIntersectsCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2);

// BOOL MGLCoordinateInCoordinateBounds (CLLocationCoordinate2D coordinate, MGLCoordinateBounds bounds) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern bool MGLCoordinateInCoordinateBounds (CLLocationCoordinate2D coordinate, MGLCoordinateBounds bounds);

// MGLCoordinateSpan MGLCoordinateBoundsGetCoordinateSpan (MGLCoordinateBounds bounds) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern MGLCoordinateSpan MGLCoordinateBoundsGetCoordinateSpan (MGLCoordinateBounds bounds);

// MGLCoordinateBounds MGLCoordinateBoundsOffset (MGLCoordinateBounds bounds, MGLCoordinateSpan offset) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern MGLCoordinateBounds MGLCoordinateBoundsOffset (MGLCoordinateBounds bounds, MGLCoordinateSpan offset);

// BOOL MGLCoordinateBoundsIsEmpty (MGLCoordinateBounds bounds) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern bool MGLCoordinateBoundsIsEmpty (MGLCoordinateBounds bounds);

// NSString * _Nonnull MGLStringFromCoordinateBounds (MGLCoordinateBounds bounds) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern NSString MGLStringFromCoordinateBounds (MGLCoordinateBounds bounds);

// CGFloat MGLRadiansFromDegrees (CLLocationDegrees degrees) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern nfloat MGLRadiansFromDegrees (double degrees);

// CLLocationDegrees MGLDegreesFromRadians (CGFloat radians) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern double MGLDegreesFromRadians (nfloat radians);

// MGLTransition MGLTransitionMake (NSTimeInterval duration, NSTimeInterval delay) __attribute__((always_inline));
[DllImport ("__Internal")]
//[Verify (PlatformInvoke)]
static extern MGLTransition MGLTransitionMake (double duration, double delay);
}
//static class CFunctions
//{
// // MGLCoordinateSpan MGLCoordinateSpanMake (CLLocationDegrees latitudeDelta, CLLocationDegrees longitudeDelta) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern MGLCoordinateSpan MGLCoordinateSpanMake (double latitudeDelta, double longitudeDelta);

// // BOOL MGLCoordinateSpanEqualToCoordinateSpan (MGLCoordinateSpan span1, MGLCoordinateSpan span2) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern bool MGLCoordinateSpanEqualToCoordinateSpan (MGLCoordinateSpan span1, MGLCoordinateSpan span2);

// // MGLCoordinateBounds MGLCoordinateBoundsMake (CLLocationCoordinate2D sw, CLLocationCoordinate2D ne) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern MGLCoordinateBounds MGLCoordinateBoundsMake (CLLocationCoordinate2D sw, CLLocationCoordinate2D ne);

// // BOOL MGLCoordinateBoundsEqualToCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern bool MGLCoordinateBoundsEqualToCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2);

// // BOOL MGLCoordinateBoundsIntersectsCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern bool MGLCoordinateBoundsIntersectsCoordinateBounds (MGLCoordinateBounds bounds1, MGLCoordinateBounds bounds2);

// // BOOL MGLCoordinateInCoordinateBounds (CLLocationCoordinate2D coordinate, MGLCoordinateBounds bounds) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern bool MGLCoordinateInCoordinateBounds (CLLocationCoordinate2D coordinate, MGLCoordinateBounds bounds);

// // MGLCoordinateSpan MGLCoordinateBoundsGetCoordinateSpan (MGLCoordinateBounds bounds) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern MGLCoordinateSpan MGLCoordinateBoundsGetCoordinateSpan (MGLCoordinateBounds bounds);

// // MGLCoordinateBounds MGLCoordinateBoundsOffset (MGLCoordinateBounds bounds, MGLCoordinateSpan offset) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern MGLCoordinateBounds MGLCoordinateBoundsOffset (MGLCoordinateBounds bounds, MGLCoordinateSpan offset);

// // BOOL MGLCoordinateBoundsIsEmpty (MGLCoordinateBounds bounds) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern bool MGLCoordinateBoundsIsEmpty (MGLCoordinateBounds bounds);

// // NSString * _Nonnull MGLStringFromCoordinateBounds (MGLCoordinateBounds bounds) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern NSString MGLStringFromCoordinateBounds (MGLCoordinateBounds bounds);

// // CGFloat MGLRadiansFromDegrees (CLLocationDegrees degrees) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern nfloat MGLRadiansFromDegrees (double degrees);

// // CLLocationDegrees MGLDegreesFromRadians (CGFloat radians) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern double MGLDegreesFromRadians (nfloat radians);

// // MGLTransition MGLTransitionMake (NSTimeInterval duration, NSTimeInterval delay) __attribute__((always_inline));
// [DllImport ("__Internal")]
// //[Verify (PlatformInvoke)]
// static extern MGLTransition MGLTransitionMake (double duration, double delay);
//}

[StructLayout (LayoutKind.Sequential)]
public struct MGLCoordinateBounds
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
> This binding library is in internal verification and testing.
> Any forks are warmly welcome to make it quicker and better.
```
Install-Package Naxam.Mapbox.iOS -Pre
```

## Mapbox Access Token

An access token is necessary to use Mapbox services and APIs, such as maps, directions, and geocoding. Your access tokens can be managed in your account settings, where you can retrieve current tokens and generate new ones. You should create a new token for each of your apps, which will help you track usage and minimize disruption in the event a token needs to be revoked.
Expand Down
8 changes: 5 additions & 3 deletions mapbox-ios.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
<metadata>
<!-- Required elements-->
<id>Naxam.Mapbox.iOS</id>
<version>3.4.1.1</version>
<version>3.5.2-alpha</version>
<description>Xamarin binding library for Mapbox iOS SDK</description>
<authors>Vu Duc Tuyen</authors>
<owners>NAXAM CO.,LTD</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>

<!-- Optional elements -->
<title>Naxam - Mapbox iOS</title>
<summary>Xamarin binding library for Mapbox iOS SDK</summary>
<releaseNotes>Mapbox iOS SDK 3.5.2</releaseNotes>
<licenseUrl>https://opensource.org/licenses/MIT</licenseUrl>
<projectUrl>https://github.com/kanvuduc/xam-mapbox-ios</projectUrl>
<copyright>(c) 2017 NAXAM</copyright>
<copyright>Copyright (c) 2017 NAXAM</copyright>
<tags>Xamarin.iOS, Mapbox, iOS</tags>
<dependencies>
</dependencies>
Expand All @@ -22,6 +24,6 @@
<files>
<!--iOS-->
<file src="Naxam.Mapbox.iOS/bin/Release/Naxam.Mapbox.iOS.dll" target="lib/Xamarin.iOS10/Naxam.Mapbox.iOS.dll" />
<file src="Naxam.Mapbox.iOS/bin/Release/Naxam.Mapbox.iOS.xml" target="lib/Xamarin.iOS10/Naxam.Mapbox.iOS.xml" />
<!--<file src="Naxam.Mapbox.iOS/bin/Release/Naxam.Mapbox.iOS.xml" target="lib/Xamarin.iOS10/Naxam.Mapbox.iOS.xml" />-->
</files>
</package>

0 comments on commit a149e58

Please sign in to comment.