Skip to content

Instantly share code, notes, and snippets.

@mvniekerk
Created April 4, 2019 20:11
Show Gist options
  • Save mvniekerk/07f1c71abff69f81d1aaee548737fea8 to your computer and use it in GitHub Desktop.
Save mvniekerk/07f1c71abff69f81d1aaee548737fea8 to your computer and use it in GitHub Desktop.
Getting React Native Mapbox 6.1.3 to compile with Android 28
apply plugin: 'com.android.library'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// React Native
provided "com.facebook.react:react-native:+"
// Mapbox SDK
implementation 'com.mapbox.mapboxsdk:mapbox-android-services:2.2.9'
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.3'
// Mapbox plugins
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-localization:0.1.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-locationlayer:0.3.0'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'android.arch.core:common:1.1.1'
implementation 'android.arch.lifecycle:common:1.1.1'
implementation 'com.android.support:support-core-ui:28.0.0'
implementation 'com.android.support:support-fragment:28.0.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment