.NET bindings for Mapbox on iOS and Android.
This repository is heavily and deliberately based on the work of Tuyen Vu Duc.
https://www.linkedin.com/in/tuyen-vuduc/ https://tuyen-vuduc.tech
The iOS binding work comes directly from:
The Android binding-generation approach and supporting tooling are based on:
This repo would not exist in its current form without Tuyen's prior work on the binding strategy, the iOS bridge layer, and the practical path for shipping Mapbox bindings to .NET developers.
Please consider sponsoring Tuyen as a thank you for his incredible work building .NET MAUI bindings.
We are building an all-in-one repository so Android bindings, iOS bindings, and cross-platform validation live in one place and can be versioned together.
The goal is to reduce drift between platforms, make packaging and test harnesses consistent, and give .NET app developers a single source tree to build, validate, and integrate from.
- android: Android binding sources, shared build props, generated solution, and local NuGet output.
- ios: iOS binding sources, imported bridge code, and local NuGet output.
- test: Native Android, native iOS, and MAUI harness apps used to validate integration.
- Android graph root:
com.mapbox.maps:android-ndk27:11.35.2; root NuGet package version11.35.2.1. - iOS packages:
Bindings.Mapbox.iOS,Bindings.Mapbox.iOS.CoreMaps, andBindings.Mapbox.iOS.MapsObjC11.35.2.1;Bindings.Mapbox.iOS.Common24.35.2.1; andBindings.Mapbox.iOS.Turf4.1.0.1.
NuGet package versions use the native Mapbox SDK version plus a final package revision component for binding-only maintenance updates.
Build with .NET SDK 11.0.100 and the mobile workloads pinned in global.json.
iOS builds require Xcode 27.2 or later.
Run:
./test/validate.shThat script repacks the Android and iOS bindings and builds all harness targets against the local packages.
Double-click release-nugets.command in Finder to pack and optionally publish
the Android and iOS NuGets. From a terminal, run:
./release-nugets.shThe release flow writes platform-local packages to android/nugets and
ios/nugets, then copies the publishable set into products.
Required environment:
MAPBOX_DOWNLOADS_TOKENfor Mapbox native downloads. The Android scripts also acceptORG_GRADLE_PROJECT_MAPBOX_DOWNLOADS_TOKENor aMAPBOX_DOWNLOADS_TOKENentry in~/.gradle/gradle.propertiesfor Gradle/Maven resolution, but iOS app and harness builds readMAPBOX_DOWNLOADS_TOKENdirectly.MAPBOX_NUGET_KEYfor publishing.
Optional environment:
NUGET_SOURCEto publish somewhere other thanhttps://api.nuget.org/v3/index.json.NUGET_PRODUCTS_DIRto override the rootproductsoutput folder.