Diff of /android/build.gradle [000000] .. [299cfa]

Switch to unified view

a b/android/build.gradle
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
3
buildscript {
4
    ext {
5
        buildToolsVersion = "31.0.0"
6
        minSdkVersion = 21
7
        compileSdkVersion = 31
8
        targetSdkVersion = 31
9
10
        if (System.properties['os.arch'] == "aarch64") {
11
            // For M1 Users we need to use the NDK 24 which added support for aarch64
12
            ndkVersion = "24.0.8215888"
13
        } else {
14
            // Otherwise we default to the side-by-side NDK version from AGP.
15
            ndkVersion = "21.4.7075529"
16
        }
17
    }
18
    repositories {
19
        google()
20
        mavenCentral()
21
    }
22
    dependencies {
23
        classpath("com.android.tools.build:gradle:7.2.1")
24
        classpath("com.facebook.react:react-native-gradle-plugin")
25
        classpath("de.undercouch:gradle-download-task:5.0.1")
26
        // NOTE: Do not place your application dependencies here; they belong
27
        // in the individual module build.gradle files
28
    }
29
}
30
31
allprojects {
32
    repositories {
33
        maven {
34
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
35
            url("$rootDir/../node_modules/react-native/android")
36
        }
37
        maven {
38
            // Android JSC is installed from npm
39
            url("$rootDir/../node_modules/jsc-android/dist")
40
        }
41
        mavenCentral {
42
            // We don't want to fetch react-native from Maven Central as there are
43
            // older versions over there.
44
            content {
45
                excludeGroup "com.facebook.react"
46
            }
47
        }
48
        google()
49
        maven { url 'https://www.jitpack.io' }
50
    }
51
}