2019-10-22 17:43:51 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
*
|
|
|
|
* 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 {
|
|
|
|
mavenLocal()
|
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
|
2021-08-12 12:41:51 +03:00
|
|
|
classpath("com.android.tools.build:gradle:4.2.2")
|
2021-06-01 21:26:16 +03:00
|
|
|
classpath("de.undercouch:gradle-download-task:4.1.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
|
|
|
}
|
2020-02-11 21:07:03 +03:00
|
|
|
maven {
|
|
|
|
// https://github.com/wix/Detox/blob/master/docs/Introduction.Android.md
|
|
|
|
// All of Detox's artifacts are provided via the npm module
|
|
|
|
url = uri("$rootDir/node_modules/detox/Detox-android")
|
|
|
|
}
|
2019-04-29 12:35:51 +03:00
|
|
|
mavenLocal()
|
2018-10-25 00:43:12 +03:00
|
|
|
google()
|
2021-02-05 16:14:50 +03:00
|
|
|
mavenCentral()
|
2015-09-14 17:35:58 +03:00
|
|
|
}
|
2021-01-04 20:12:53 +03:00
|
|
|
|
2021-07-09 19:09:14 +03:00
|
|
|
// used to override ndk path/version from env variables on CI
|
|
|
|
ext["ANDROID_NDK_PATH"] = null
|
2021-01-04 20:12:53 +03:00
|
|
|
if (System.getenv("LOCAL_ANDROID_NDK_VERSION") != null) {
|
2021-06-02 19:56:08 +03:00
|
|
|
setProperty("ANDROID_NDK_VERSION", System.getenv("LOCAL_ANDROID_NDK_VERSION"))
|
2021-07-08 22:39:36 +03:00
|
|
|
ext["ANDROID_NDK_PATH"] = System.getenv("ANDROID_NDK")
|
2021-01-04 20:12:53 +03:00
|
|
|
}
|
2015-09-14 17:35:58 +03:00
|
|
|
}
|