Facebook
From Scorching Dolphin, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 152
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2.  
  3. buildscript {
  4.     repositories {
  5.         google()
  6.         jcenter()
  7.         mavenCentral()
  8.         maven { url "https://jitpack.io" }
  9.     }
  10.     dependencies {
  11.         classpath 'com.android.tools.build:gradle:4.2.0'
  12.  
  13.         //Google Services
  14.         classpath 'com.google.gms:google-services:4.3.8'
  15.  
  16.         classpath 'de.undercouch:gradle-download-task:4.1.1'
  17.        
  18.         // NOTE: Do not place your application dependencies here; they belong
  19.         // in the individual module build.gradle files
  20.     }
  21. }
  22.  
  23. allprojects {
  24.     repositories {
  25.         mavenLocal()
  26.         jcenter()
  27.         maven{
  28.             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  29.             url "$rootDir/../node_modules/react-native/android"
  30.         }
  31.         maven {
  32.             url 'https://maven.google.com'
  33.         }
  34.         maven { url "$rootDir/../node_modules/react-native-background-fetch/android/libs" }
  35.         // ADDED THIS FOR SPARK
  36.         maven { url "https://jitpack.io" }
  37.     }
  38. }
  39.  
  40. configurations.all {
  41.      resolutionStrategy {
  42.        force "com.facebook.soloader:soloader:0.10.1+"
  43.      }
  44. }
  45.  
  46.  
  47. subprojects {
  48.     project.configurations.all {
  49.         resolutionStrategy.eachDependency { details ->
  50.             if (details.requested.group == 'com.android.support'
  51.                     && !details.requested.name.contains('multidex') ) {
  52.                 details.useVersion "29.0.0"
  53.             }
  54.         }
  55.     }
  56.     afterEvaluate {project ->
  57.         if (project.hasProperty("android")) {
  58.             android {
  59.                 compileSdkVersion 29
  60.                 buildToolsVersion '29.0.3'
  61.             }
  62.         }
  63.     }
  64. }
  65.  
  66. ext {
  67.   compileSdkVersion = 29
  68.   targetSdkVersion = 29
  69.   buildToolsVersion = "29.0.3"
  70.   supportLibVersion = "29.0.0"
  71.   googlePlayServicesVersion = "17.0.0"
  72.   oreoEXPERIMENTAL = "yes"
  73. }