build.gradle 2.23 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
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 21
        compileSdkVersion = 28
        targetSdkVersion = 28
8
        glideVersion = "4.9.0"
9
        kotlin_version = "1.3.50"
10
        supportLibVersion = "28.0.0"
Diego Mello's avatar
Diego Mello committed
11
    }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
12
    repositories {
13
        mavenLocal()
Diego Mello's avatar
Diego Mello committed
14
        google()
15
        jcenter()
16
17
18
        maven {
            url 'https://maven.fabric.io/public'
        }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
19
20
    }
    dependencies {
Diego Mello's avatar
Diego Mello committed
21
        classpath 'com.android.tools.build:gradle:3.5.2'
22
        classpath 'com.google.gms:google-services:4.2.0'
23
24
        classpath 'io.fabric.tools:gradle:1.28.1'
        classpath 'com.google.firebase:perf-plugin:1.2.1'
25
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
26
        classpath 'com.bugsnag:bugsnag-android-gradle-plugin:4.+'
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
27
28
29
30
31
32
33
34
35
36
37

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

allprojects {
    repositories {
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
38
            url("$rootDir/../node_modules/react-native/android")
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
39
        }
Diego Mello's avatar
Diego Mello committed
40
        maven {
41
42
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
Diego Mello's avatar
Diego Mello committed
43
        }
44
        maven {
Diego Mello's avatar
Diego Mello committed
45
            url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases"
46
        }
47
48
49
50
51

        google()
        jcenter()

        maven { url 'https://maven.google.com' }
Diego Mello's avatar
Diego Mello committed
52
        maven { url 'https://www.jitpack.io' }
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
53
54
    }
}
Diego Mello's avatar
Diego Mello committed
55

Diego Mello's avatar
Diego Mello committed
56
57
58
59
60
61
62
63
64
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
65
66
67
68
69
70
                variantFilter { variant ->
                    def names = variant.flavors*.name
                    if (names.contains("reactNative59")) {
                        setIgnore(true)
                    }
                }
Diego Mello's avatar
Diego Mello committed
71
72
73
74
            }
        }
    }
}