2016-02-23 01:04:42 +03:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
2019-08-07 12:08:36 +02:00
|
|
|
/**
|
|
|
|
* Project-wide gradle configuration properties for use by all modules
|
|
|
|
*/
|
|
|
|
ext {
|
2023-06-20 21:20:05 +08:00
|
|
|
// kotlin_version is needed for react-native-camera-kit library
|
2023-12-28 20:20:25 +05:30
|
|
|
kotlin_version = project.kotlinPluginVersion
|
2023-12-11 21:22:23 +05:30
|
|
|
RNNKotlinVersion = project.kotlinPluginVersion
|
|
|
|
RNGH_kotlinVersion = project.kotlinPluginVersion
|
2019-08-07 12:08:36 +02:00
|
|
|
buildToolsVersion = project.buildToolsVersion
|
|
|
|
minSdkVersion = Integer.valueOf(project.minSdkVersion)
|
|
|
|
compileSdkVersion = Integer.valueOf(project.compileSdkVersion)
|
|
|
|
targetSdkVersion = Integer.valueOf(project.targetSdkVersion)
|
|
|
|
supportLibVersion = project.supportLibVersion
|
2019-08-06 18:16:51 +02:00
|
|
|
gradlePluginVersion = project.gradlePluginVersion
|
2023-12-28 20:20:25 +05:30
|
|
|
kotlinVersion = project.kotlinPluginVersion
|
2023-12-11 21:22:23 +05:30
|
|
|
ndkVersion = "25.2.9519653"
|
2019-08-07 12:08:36 +02:00
|
|
|
}
|
|
|
|
|
2016-02-23 01:04:42 +03:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-12-10 13:09:11 +01:00
|
|
|
flatDir { dirs "libs", "${rootDir}/app/libs" }
|
2017-12-28 18:53:18 +00:00
|
|
|
google()
|
2022-05-04 19:38:21 +02:00
|
|
|
mavenCentral()
|
2016-02-23 01:04:42 +03:00
|
|
|
}
|
|
|
|
dependencies {
|
2023-06-14 07:17:41 +05:30
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${project.ext.kotlinPluginVersion}"
|
2023-12-11 21:22:23 +05:30
|
|
|
classpath("com.android.tools.build:gradle")
|
2023-06-14 07:17:41 +05:30
|
|
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
2016-02-23 01:04:42 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-04 14:38:41 +02:00
|
|
|
subprojects {
|
|
|
|
afterEvaluate {
|
|
|
|
if (project.hasProperty("android")) {
|
|
|
|
android {
|
2019-08-07 12:08:36 +02:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
2019-03-04 14:38:41 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2019-08-07 12:08:36 +02:00
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
2019-03-04 14:38:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-23 01:04:42 +03:00
|
|
|
allprojects {
|
2019-06-04 18:50:29 +02:00
|
|
|
beforeEvaluate {
|
2022-05-04 19:38:21 +02:00
|
|
|
if (System.env.STATUS_GO_ANDROID_LIBDIR == null || System.env.STATUS_GO_ANDROID_LIBDIR == "") {
|
|
|
|
throw new GradleException('STATUS_GO_ANDROID_LIBDIR environment variable is not valid!')
|
|
|
|
}
|
2019-06-04 18:50:29 +02:00
|
|
|
}
|
2016-02-23 01:04:42 +03:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
2022-05-04 19:38:21 +02:00
|
|
|
// Android JSC is installed from npm
|
|
|
|
maven { url("$rootDir/../node_modules/jsc-android/dist") }
|
|
|
|
// For geth, function, and status-go
|
2019-05-02 20:13:16 +02:00
|
|
|
flatDir { dirs "libs", System.env.STATUS_GO_ANDROID_LIBDIR }
|
2022-05-04 19:38:21 +02:00
|
|
|
google()
|
|
|
|
mavenCentral()
|
2023-06-14 07:17:41 +05:30
|
|
|
maven { url 'https://mvnrepository.com/artifact/com.github.gundy/semver4j'}
|
2016-02-23 01:04:42 +03:00
|
|
|
}
|
2018-06-28 13:50:17 +03:00
|
|
|
}
|