• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
3buildscript {
4  ext {
5    buildToolsVersion = "28.0.3"
6    supportLibVersion = "28.0.0"
7    compileSdkVersion = 28
8    targetSdkVersion = 28
9    minSdkVersion = 21
10    kotlinVersion = '1.3.0'
11    detoxKotlinVersion = kotlinVersion
12  }
13  repositories {
14    google()
15    jcenter()
16  }
17  dependencies {
18    classpath 'com.android.tools.build:gradle:3.3.2'
19    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
20
21    // NOTE: Do not place your application dependencies here; they belong
22    // in the individual module build.gradle files
23  }
24}
25
26allprojects {
27  repositories {
28    maven {
29      // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
30      url "$rootDir/../node_modules/react-native/android"
31    }
32    maven {
33      url("$rootDir/../node_modules/jsc-android/dist")
34    }
35    maven {
36      // All of Detox' artifacts are provided via the npm module
37      url "$rootDir/../node_modules/detox/Detox-android"
38    }
39    mavenLocal()
40    google()
41    jcenter()
42  }
43}
44