2017-05-06 16:37:28 +02:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
2018-10-02 20:57:31 +02:00
|
|
|
ext {
|
2022-12-27 21:37:15 +02:00
|
|
|
buildToolsVersion = "31.0.0"
|
2021-03-10 21:15:01 +02:00
|
|
|
minSdkVersion = 21
|
2022-12-27 21:37:15 +02:00
|
|
|
|
|
|
|
compileSdkVersion = 31
|
|
|
|
targetSdkVersion = 31
|
|
|
|
|
|
|
|
if (System.properties['os.arch'] == "aarch64") {
|
|
|
|
// For M1 Users we need to use the NDK 24 which added support for aarch64
|
|
|
|
ndkVersion = "24.0.8215888"
|
|
|
|
} else {
|
|
|
|
// Otherwise we default to the side-by-side NDK version from AGP.
|
|
|
|
ndkVersion = "21.4.7075529"
|
|
|
|
}
|
2018-10-02 20:57:31 +02:00
|
|
|
}
|
2017-05-06 16:37:28 +02:00
|
|
|
repositories {
|
2018-10-02 20:57:31 +02:00
|
|
|
google()
|
2021-11-02 18:33:53 +02:00
|
|
|
mavenCentral()
|
2017-05-06 16:37:28 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2023-01-08 19:23:53 +02:00
|
|
|
classpath("com.android.tools.build:gradle:7.2.1")
|
2022-12-27 21:37:15 +02:00
|
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
2023-01-08 15:39:27 +02:00
|
|
|
classpath("de.undercouch:gradle-download-task:5.0.1")
|
2017-05-06 16:37:28 +02:00
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
2020-02-09 16:51:12 +02:00
|
|
|
url("$rootDir/../node_modules/react-native/android")
|
2017-05-06 16:37:28 +02:00
|
|
|
}
|
2019-06-14 19:37:46 +02:00
|
|
|
maven {
|
2020-02-09 16:51:12 +02:00
|
|
|
// Android JSC is installed from npm
|
|
|
|
url("$rootDir/../node_modules/jsc-android/dist")
|
2019-06-14 19:37:46 +02:00
|
|
|
}
|
2022-11-11 14:22:52 +02:00
|
|
|
mavenCentral {
|
|
|
|
// We don't want to fetch react-native from Maven Central as there are
|
|
|
|
// older versions over there.
|
|
|
|
content {
|
|
|
|
excludeGroup "com.facebook.react"
|
|
|
|
}
|
|
|
|
}
|
2023-01-04 22:18:51 +02:00
|
|
|
maven {
|
|
|
|
// Required by react-native-fingerprint-scanner
|
|
|
|
// https://github.com/hieuvp/react-native-fingerprint-scanner/issues/192
|
|
|
|
url "https://maven.aliyun.com/repository/jcenter"
|
|
|
|
}
|
2020-02-09 16:51:12 +02:00
|
|
|
google()
|
2020-10-16 17:26:19 +02:00
|
|
|
maven { url 'https://www.jitpack.io' }
|
2017-05-06 16:37:28 +02:00
|
|
|
}
|
|
|
|
}
|