Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,19 @@ dependencies {
// Mapbox SDK
customizableDependencies('RNMapboxMapsLibs') {
if (safeExtGet("RNMapboxMapsImpl", defaultMapboxMapsImpl) == "mapbox") {
implementation "com.mapbox.maps:android:${safeExtGet("RNMapboxMapsVersion", defaultMapboxMapsVersion)}"
def targetSdk = safeExtGet("targetSdkVersion", 28)
def mapboxVersion = safeExtGet("RNMapboxMapsVersion", defaultMapboxMapsVersion)

// Use NDK27 variant for Android 15+ (API 35+) to support 16KB page size
// Required by Google Play for apps targeting Android 15+ by November 1, 2025
// See: https://github.com/rnmapbox/maps/issues/3896
// Mapbox Docs: https://docs.mapbox.com/android/maps/guides/#ndk-27
if (targetSdk >= 35) {
implementation "com.mapbox.maps:android-ndk27:${mapboxVersion}"
} else {
implementation "com.mapbox.maps:android:${mapboxVersion}"
}

implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:6.11.0'
implementation 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0'
} else {
Expand Down
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ buildscript {
RNMapboxMapsImpl = "mapbox"
kotlinVersion = '1.6.21'
} else if (System.getenv('CI_MAP_IMPL').equals('mapbox11')) {
RNMapboxMapsVersion = '11.4.1'
RNMapboxMapsVersion = '11.14.1'
RNMapboxMapsImpl = "mapbox"
} else if (project.hasProperty('RNMBX11') && project.getProperty('RNMBX11').toBoolean()) {
RNMapboxMapsVersion = '11.4.1'
RNMapboxMapsVersion = '11.14.1'
}

// Mapbox deps
Expand Down
Loading