build.gradle 1.52 KB
Newer Older
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
1
2
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
Diego Mello's avatar
Diego Mello committed
3
4
5
6
7
8
9
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 21
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
    }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
10
    repositories {
11
        mavenLocal()
Diego Mello's avatar
Diego Mello committed
12
        google()
13
        jcenter()
14
15
16
        maven {
            url 'https://maven.fabric.io/public'
        }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
17
18
    }
    dependencies {
Diego Mello's avatar
Diego Mello committed
19
        classpath 'com.android.tools.build:gradle:3.3.1'
20
21
22
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.25.4'
        classpath 'com.google.firebase:firebase-plugins:1.1.5'
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
23
24
25
26
27
28
29
30
31

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

allprojects {
    repositories {
        mavenLocal()
32
        google()
Diego Mello's avatar
Diego Mello committed
33
        jcenter()
Diego Mello's avatar
Diego Mello committed
34
        maven { url "https://jitpack.io" }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
35
36
37
38
39
40
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}
Diego Mello's avatar
Diego Mello committed
41

Diego Mello's avatar
Diego Mello committed
42
43
44
45
46
47
48
49
50
51
52
53
subprojects { subproject ->	
    afterEvaluate {	
        if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {	
            android {	
                compileSdkVersion 28	
                buildToolsVersion "28.0.3"	
                defaultConfig {	
                    targetSdkVersion 28	
                }	
            }	
        }	
    }	
Diego Mello's avatar
Diego Mello committed
54
}