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

buildscript {
YJ's avatar
YJ committed
4
5
6
7
8
9
10
11
   ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
    }

Marek Kotewicz's avatar
init  
Marek Kotewicz committed
12
    repositories {
13
        google()
YJ's avatar
YJ committed
14
        jcenter()
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
15
16
    }
    dependencies {
17
        classpath('com.android.tools.build:gradle:3.4.2')
Marek Kotewicz's avatar
init  
Marek Kotewicz committed
18
19
20
21
22
23
24
25
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

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

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