Last active
April 19, 2019 02:11
-
-
Save phuochau/ade5c2d5b301952288030e7c83b68226 to your computer and use it in GitHub Desktop.
Always use google() in the top in build.gradle if we use gms services
This file contains 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
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
ext { | |
buildToolsVersion = "27.0.3" | |
minSdkVersion = 16 | |
compileSdkVersion = 28 | |
targetSdkVersion = 27 | |
supportLibVersion = "27.1.1" | |
} | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.1.4' | |
// classpath 'com.google.gms:google-services:4.0.2' | |
classpath 'com.google.gms:google-services:4.1.0' | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files | |
} | |
} | |
allprojects { | |
repositories { | |
google() | |
mavenLocal() | |
jcenter() | |
maven { | |
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm | |
url "$rootDir/../node_modules/react-native/android" | |
} | |
maven { url "http://maven.microblink.com" } | |
} | |
} | |
task wrapper(type: Wrapper) { | |
gradleVersion = '4.4' | |
distributionUrl = distributionUrl.replace("bin", "all") | |
} | |
subprojects { | |
afterEvaluate {project -> | |
if (project.hasProperty("android")) { | |
android { | |
lintOptions { | |
abortOnError false | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment