Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- buildscript {
- repositories {
- maven {
- url 'https://maven.google.com/'
- name 'Google'
- }
- jcenter()
- google()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.1.0'
- classpath 'com.google.gms:google-services:4.0.1'
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- // implementation(project(':react-native-maps')){
- // exclude group: 'com.google.android.gms', module: 'play-services-base'
- // exclude group: 'com.google.android.gms', module: 'play-services-maps'
- // }
- // implementation 'com.google.android.gms:play-services-base:10.0.1'
- // implementation 'com.google.android.gms:play-services-maps:10.0.1'
- }
- }
- allprojects {
- repositories {
- mavenLocal()
- jcenter()
- maven {
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
- url "$rootDir/../node_modules/react-native/android"
- }
- google()
- maven { url "https://jitpack.io" }
- maven {
- url "https://maven.google.com"
- }
- }
- }
- task clean(type: Delete) {
- delete rootProject.buildDir
- }
- subprojects {
- project.configurations.all {
- resolutionStrategy.eachDependency { details ->
- if (details.requested.group == 'com.android.support'
- && !details.requested.name.contains('multidex') ) {
- details.useVersion "26.1.0"
- }
- }
- }
- afterEvaluate {project ->
- if (project.hasProperty("android")) {
- android {
- compileSdkVersion 27
- buildToolsVersion "27.0.3"
- }
- }
- }
- }
- subprojects {
- project.configurations.all {
- resolutionStrategy.eachDependency { details ->
- if (details.requested.group == 'com.android.support'
- && !details.requested.name.contains('multidex') ) {
- details.useVersion "27.0.2"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement