Created
April 4, 2019 20:11
-
-
Save mvniekerk/07f1c71abff69f81d1aaee548737fea8 to your computer and use it in GitHub Desktop.
Getting React Native Mapbox 6.1.3 to compile with Android 28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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