Skip to content

Instantly share code, notes, and snippets.

@ronal2do
Created February 8, 2018 18:40
Show Gist options
  • Save ronal2do/b7a513354e623214ec9a083c80325c1e to your computer and use it in GitHub Desktop.
Save ronal2do/b7a513354e623214ec9a083c80325c1e to your computer and use it in GitHub Desktop.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion '27.0.2'
}
}
}
}
allprojects {
repositories {
// Add jitpack repository (added by react-native-spinkit)
jcenter()
maven {
url "https://jitpack.io"
}
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url "https://maven.google.com"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment