build.gradle

Home   »   build.gradle

ext {
    googlePlayServicesVersion   = "16.3.0"
    buildToolsVersion = "29.0.3"
    compileSdkVersion = 29
    targetSdkVersion = 29
    supportLibVersion = "29.0.3"
    googlePlayServicesAuthVersion = "16.0.1"
    googlePlayServicesIidVersion = "17.0.0"
}

buildscript {
    repositories {
        google()
        jcenter()
        maven {
            url('https://maven.fabric.io/public')
        }

    }
    dependencies {
        classpath('com.android.tools.build:gradle:3.4.2')
        classpath('com.google.gms:google-services:4.2.0')
        classpath('io.fabric.tools:gradle:1.28.0')

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "29.0.3"
            }
            if (details.requested.group == 'androidx.core' &&
                !details.requested.name.contains('androidx')) {
                details.useVersion "1.3.2"
            }
        }
    }
    afterEvaluate {
        android {
            compileSdkVersion 29
            buildToolsVersion "29.0.3"

            defaultConfig {
                targetSdkVersion 29
                vectorDrawables.useSupportLibrary = true
            }
        }
    }
}
    

allprojects {
    repositories {
        mavenLocal()
        google()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
        maven {
            url 'https://maven.google.com'
            flatDir {
                dirs 'libs'
            }
        }
        maven {
            url "https://jitpack.io"
        }
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *