2019-10-22 17:43:51 +03:00
|
|
|
/*
|
2021-12-31 02:08:43 +03:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2019-10-22 17:43:51 +03:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
2015-09-14 17:35:58 +03:00
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-08-23 09:12:41 +03:00
|
|
|
google()
|
2021-02-05 16:14:50 +03:00
|
|
|
mavenCentral()
|
2015-09-14 17:35:58 +03:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-06-10 10:45:12 +03:00
|
|
|
val kotlin_version: String by project
|
2022-02-21 17:14:17 +03:00
|
|
|
classpath("com.android.tools.build:gradle:7.1.1")
|
2022-02-02 21:32:10 +03:00
|
|
|
classpath("de.undercouch:gradle-download-task:5.0.1")
|
2021-06-10 10:45:12 +03:00
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
|
2015-09-14 17:35:58 +03:00
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
2019-04-05 00:12:44 +03:00
|
|
|
maven {
|
2019-04-29 12:35:51 +03:00
|
|
|
url = uri("$rootDir/node_modules/jsc-android/dist")
|
2019-04-05 00:12:44 +03:00
|
|
|
}
|
2018-10-25 00:43:12 +03:00
|
|
|
google()
|
2021-10-13 15:33:08 +03: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")
|
|
|
|
}
|
|
|
|
}
|
2015-09-14 17:35:58 +03:00
|
|
|
}
|
|
|
|
}
|
2021-11-30 12:51:38 +03:00
|
|
|
|
|
|
|
tasks.register("cleanAll", Delete::class.java) {
|
|
|
|
description = "Remove all the build files and intermediate build outputs"
|
|
|
|
dependsOn(gradle.includedBuild("react-native-gradle-plugin").task(":clean"))
|
|
|
|
delete(allprojects.map { it.buildDir })
|
|
|
|
delete(rootProject.file("./ReactAndroid/.cxx"))
|
|
|
|
delete(rootProject.file("./ReactAndroid/src/main/jni/prebuilt/lib/arm64-v8a/"))
|
|
|
|
delete(rootProject.file("./ReactAndroid/src/main/jni/prebuilt/lib/armeabi-v7a/"))
|
|
|
|
delete(rootProject.file("./ReactAndroid/src/main/jni/prebuilt/lib/x86/"))
|
|
|
|
delete(rootProject.file("./ReactAndroid/src/main/jni/prebuilt/lib/x86_64/"))
|
|
|
|
delete(rootProject.file("./packages/react-native-codegen/lib"))
|
|
|
|
delete(rootProject.file("./packages/rn-tester/android/app/.cxx"))
|
|
|
|
}
|