build.gradle 1 KB
Newer Older
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
1
2
3
4
5
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
6
        google()
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
7
8
    }
    dependencies {
9
        classpath 'com.android.tools.build:gradle:3.1.0'
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
10
11
12
13
14
15
16
17
18
19

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
20
21
        google()
        maven { url "https://jitpack.io" }
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
22
23
24
25
26
27
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}
28
29
30
31
32
33
34
35
36
37
38

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                && !details.requested.name.contains('multidex') ) {
            details.useVersion "26.1.0"
            }
        }
    }
}