Skip to content

Commit

Permalink
Introduce gradle variables to customize mapbox lib versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas committed Oct 20, 2020
1 parent 2a1bfb5 commit 02ddcef
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions android/rctmgl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ dependencies {
implementation "com.facebook.react:react-native:+"

// Mapbox SDK
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:5.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.8.0'
if (rootProject.ext.has('rnmbglMapboxLibs')) {
rootProject.ext.get('rnmbglMapboxLibs').split(';').each {
implementation it
}
} else {
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:5.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.8.0'
}

// Dependencies
implementation "com.android.support:support-vector-drawable:${safeExtGet('supportLibVersion', '28.0.0')}"
Expand All @@ -46,8 +52,14 @@ dependencies {
implementation "com.squareup.okhttp3:okhttp:${safeExtGet('okhttpVersion', '3.12.1')}"

// Mapbox plugins
implementation 'com.mapbox.mapboxsdk:mapbox-android-gestures:0.6.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-localization-v9:0.12.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-markerview-v9:0.4.0'
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:5.1.0'
if (rootProject.ext.has('rnmbglMapboxPlugins')) {
rootProject.ext.get('rnmbglMapboxPlugins').split(';').each {
implementation it
}
} else {
implementation 'com.mapbox.mapboxsdk:mapbox-android-gestures:0.6.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-localization-v9:0.12.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-markerview-v9:0.4.0'
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-turf:5.1.0'
}
}

0 comments on commit 02ddcef

Please sign in to comment.