xref: /expo/android/build.gradle (revision f10e66fc)
1// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
3buildscript {
4  repositories {
5    google()
6    jcenter()
7    maven { url 'https://dl.bintray.com/android/android-tools/' }
8  }
9  dependencies {
10    classpath 'com.android.tools.build:gradle:3.2.1'
11    classpath 'com.google.gms:google-services:3.2.1'
12    classpath 'de.undercouch:gradle-download-task:2.0.0'
13    classpath 'com.amazonaws:aws-devicefarm-gradle-plugin:1.3' // https://github.com/awslabs/aws-device-farm-gradle-plugin/releases
14  }
15}
16
17allprojects {
18  repositories {
19    // For non-detach
20    maven {
21      url "$rootDir/maven"
22    }
23    // For old expoviews to work
24    maven {
25      url "$rootDir/versioned-abis/expoview-abi26_0_0/maven"
26    }
27    maven {
28      url "$rootDir/versioned-abis/expoview-abi27_0_0/maven"
29    }
30    maven {
31      url "$rootDir/versioned-abis/expoview-abi28_0_0/maven"
32    }
33    maven {
34      url "$rootDir/versioned-abis/expoview-abi29_0_0/maven"
35    }
36    maven {
37      url "$rootDir/versioned-abis/expoview-abi30_0_0/maven"
38    }
39    maven {
40      url "$rootDir/versioned-abis/expoview-abi31_0_0/maven"
41    }
42    maven {
43      url "$rootDir/versioned-abis/expoview-abi32_0_0/maven"
44    }
45    // For detach
46    maven {
47      url "$rootDir/../node_modules/expokit/maven"
48    }
49    maven {
50      // We use a modified build of com.android.support.test:runner:1.0.1. Explanation in maven-test/README
51      url "$rootDir/maven-test"
52    }
53    google()
54    jcenter()
55    maven {
56      // Local Maven repo containing AARs with JSC built for Android
57      url "$rootDir/../node_modules/jsc-android/dist"
58    }
59    flatDir {
60      dirs 'libs'
61      // dirs project(':expoview').file('libs')
62    }
63    // https://github.com/google/ExoPlayer/issues/5225#issuecomment-445739013
64    maven { url 'https://google.bintray.com/exoplayer' }
65    maven { url "https://jitpack.io" }
66
67    // Want this last so that we never end up with a stale cache
68    mavenLocal()
69  }
70}
71
72task clean(type: Delete) {
73  delete rootProject.buildDir
74}
75