// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() mavenCentral() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:4.2.0' //Google Services classpath 'com.google.gms:google-services:4.3.8' classpath 'de.undercouch:gradle-download-task:4.1.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } 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" } maven { url 'https://maven.google.com' } maven { url "$rootDir/../node_modules/react-native-background-fetch/android/libs" } // ADDED THIS FOR SPARK maven { url "https://jitpack.io" } } } configurations.all { resolutionStrategy { force "com.facebook.soloader:soloader:0.10.1+" } } subprojects { project.configurations.all { resolutionStrategy.eachDependency { details -> if (details.requested.group == 'com.android.support' && !details.requested.name.contains('multidex') ) { details.useVersion "29.0.0" } } } afterEvaluate {project -> if (project.hasProperty("android")) { android { compileSdkVersion 29 buildToolsVersion '29.0.3' } } } } ext { compileSdkVersion = 29 targetSdkVersion = 29 buildToolsVersion = "29.0.3" supportLibVersion = "29.0.0" googlePlayServicesVersion = "17.0.0" oreoEXPERIMENTAL = "yes" }