build.gradle 1.71 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
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 21
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
9
        glideVersion = "4.9.0"
Diego Mello's avatar
Diego Mello committed
10
    }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
11
    repositories {
12
        mavenLocal()
Diego Mello's avatar
Diego Mello committed
13
        google()
14
        jcenter()
15 16 17
        maven {
            url 'https://maven.fabric.io/public'
        }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
18 19
    }
    dependencies {
Diego Mello's avatar
Diego Mello committed
20
        classpath 'com.android.tools.build:gradle:3.3.1'
21 22 23
        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
24 25 26 27 28 29 30 31 32

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

allprojects {
    repositories {
        mavenLocal()
33
        google()
Diego Mello's avatar
Diego Mello committed
34
        jcenter()
Diego Mello's avatar
Diego Mello committed
35
        maven { url "https://jitpack.io" }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
36 37 38 39
        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
40 41 42 43
        maven {
            // Local Maven repo containing AARs with JSC library built for Android
            url "$rootDir/../node_modules/jsc-android/dist"
        }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
44 45
    }
}
Diego Mello's avatar
Diego Mello committed
46

Diego Mello's avatar
Diego Mello committed
47 48 49 50 51 52 53 54 55 56 57 58
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
59
}