2016-02-22 22:04:42 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
2019-08-07 10:08:36 +00:00
|
|
|
/**
|
|
|
|
* Project-wide gradle configuration properties for use by all modules
|
|
|
|
*/
|
|
|
|
ext {
|
2021-05-24 14:25:05 +00:00
|
|
|
RNNKotlinVersion = "1.4.31"
|
2019-08-07 10:08:36 +00: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 16:16:51 +00:00
|
|
|
gradlePluginVersion = project.gradlePluginVersion
|
2019-08-07 10:08:36 +00:00
|
|
|
}
|
|
|
|
|
2016-02-22 22:04:42 +00:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-12-10 12:09:11 +00:00
|
|
|
flatDir { dirs "libs", "${rootDir}/app/libs" }
|
2017-12-28 18:53:18 +00:00
|
|
|
google()
|
2022-05-04 17:38:21 +00:00
|
|
|
mavenCentral()
|
2016-02-22 22:04:42 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-05-24 14:25:05 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31"
|
2019-08-06 16:16:51 +00:00
|
|
|
classpath "com.android.tools.build:gradle:${project.ext.gradlePluginVersion}"
|
2020-05-07 10:21:39 +00:00
|
|
|
// WARNING: Do not place your application dependencies here!
|
|
|
|
// They belong in the individual module build.gradle files.
|
2016-02-22 22:04:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
subprojects {
|
|
|
|
afterEvaluate {
|
|
|
|
if (project.hasProperty("android")) {
|
|
|
|
android {
|
2019-08-07 10:08:36 +00:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
2019-03-04 12:38:41 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2019-08-07 10:08:36 +00:00
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
2019-03-04 12:38:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-22 22:04:42 +00:00
|
|
|
allprojects {
|
2019-06-04 16:50:29 +00:00
|
|
|
beforeEvaluate {
|
2022-05-04 17:38:21 +00: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 16:50:29 +00:00
|
|
|
}
|
|
|
|
|
2016-02-22 22:04:42 +00:00
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
2022-05-04 17:38:21 +00:00
|
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
|
|
maven { url("$rootDir/../node_modules/react-native/android") }
|
|
|
|
// Android JSC is installed from npm
|
|
|
|
maven { url("$rootDir/../node_modules/jsc-android/dist") }
|
|
|
|
// For geth, function, and status-go
|
2019-05-02 18:13:16 +00:00
|
|
|
flatDir { dirs "libs", System.env.STATUS_GO_ANDROID_LIBDIR }
|
2022-05-04 17:38:21 +00:00
|
|
|
// Everything Else
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
2019-10-15 12:35:33 +00:00
|
|
|
maven { url "https://www.jitpack.io" }
|
2016-02-22 22:04:42 +00:00
|
|
|
}
|
2018-06-28 10:50:17 +00:00
|
|
|
}
|