// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 21 compileSdkVersion = 29 targetSdkVersion = 29 // supportLibVersion = "28.0.0" glideVersion = "4.9.0" googlePlayServicesAuthVersion = "15.0.1" excludeAppGlideModule = true androidXCore = "1.0.2" } repositories { jcenter() maven { url 'https://maven.google.com/' name 'Google' } google() } dependencies { classpath("com.android.tools.build:gradle:3.4.2") classpath 'com.google.gms:google-services:4.2.0' classpath 'me.tatarka:gradle-retrolambda:3.6.1' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' classpath 'com.google.firebase:firebase-plugins:1.2.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } 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") } // jitpack for github maven { url "https://jitpack.io" } maven { url("$rootDir/../node_modules/jsc-android/dist") } def googlePlayServicesVersion = '16.0.0' configurations.all { resolutionStrategy { // react-native-admob force "com.google.android.gms:play-services-ads:17.1.2" // react-native-maps force "com.google.android.gms:play-services-base:16.0.1" force "com.google.android.gms:play-services-maps:$googlePlayServicesVersion" // react-native-onesignal force "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion" force "com.google.android.gms:play-services-analytics:$googlePlayServicesVersion" force "com.google.android.gms:play-services-location:$googlePlayServicesVersion" // react-native-google-sign-in // force "com.google.android.gms:play-services-auth:16.0.1" //react-native-push-notification force "com.google.firebase:firebase-messaging:17.6.0" force "com.google.android.gms:play-services-base:16.1.0" } } } } subprojects { subproject -> afterEvaluate{ if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion } } } }