status-react/android/build.gradle

72 lines
2.2 KiB
Groovy
Raw Normal View History

2016-02-22 22:04:42 +00:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
/**
* Project-wide gradle configuration properties for use by all modules
*/
ext {
RNNKotlinVersion = "1.4.31"
buildToolsVersion = project.buildToolsVersion
minSdkVersion = Integer.valueOf(project.minSdkVersion)
compileSdkVersion = Integer.valueOf(project.compileSdkVersion)
targetSdkVersion = Integer.valueOf(project.targetSdkVersion)
supportLibVersion = project.supportLibVersion
gradlePluginVersion = project.gradlePluginVersion
}
2016-02-22 22:04:42 +00:00
buildscript {
repositories {
flatDir { dirs "libs", "${rootDir}/app/libs" }
google()
2016-02-22 22:04:42 +00:00
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31"
classpath "com.android.tools.build:gradle:${project.ext.gradlePluginVersion}"
classpath "com.google.gms:google-services:4.3.10"
// 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 {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
2019-03-04 12:38:41 +00:00
defaultConfig {
targetSdkVersion rootProject.ext.targetSdkVersion
2019-03-04 12:38:41 +00:00
}
}
}
}
}
2016-02-22 22:04:42 +00:00
allprojects {
beforeEvaluate {
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!')
}
}
2016-02-22 22:04:42 +00:00
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
2016-02-22 22:04:42 +00:00
jcenter()
// for geth, function, and status-go
flatDir { dirs "libs", System.env.STATUS_GO_ANDROID_LIBDIR }
maven { url "https://www.jitpack.io" }
2016-02-22 22:04:42 +00:00
}
2018-06-28 10:50:17 +00:00
}