Skip to content

Instantly share code, notes, and snippets.

@nikolal
Created January 18, 2017 16:56
Show Gist options
  • Save nikolal/bb667b0948977f56ba10718c81e936a5 to your computer and use it in GitHub Desktop.
Save nikolal/bb667b0948977f56ba10718c81e936a5 to your computer and use it in GitHub Desktop.
Copy this file instead of your: node_module/react-native-maps/android/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.android.library'
apply from: 'gradle-maven-push.gradle'
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
// For developing the library outside the context of the example app, expect `react-native`
// to be installed at `./node_modules`.
url "$projectDir/../node_modules/react-native/android"
}
maven {
// For developing the example app.
url "$projectDir/../../react-native/android"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// For developing the library outside the context of the example app, expect `react-native`
// to be installed at `./node_modules`.
url "$projectDir/../node_modules/react-native/android"
}
maven {
// For developing the example app.
url "$projectDir/../../react-native/android"
}
}
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
}
lintOptions {
disable 'InvalidPackage'
}
}
dependencies {
compile "com.facebook.react:react-native:+"
compile "com.google.android.gms:play-services-base:10.0.1"
compile "com.google.android.gms:play-services-maps:10.0.1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment