2016-02-22 22:04:42 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
2019-03-04 12:38:41 +00:00
|
|
|
ext {
|
|
|
|
buildToolsVersion = "28.0.3"
|
|
|
|
minSdkVersion = 16
|
|
|
|
compileSdkVersion = 28
|
|
|
|
targetSdkVersion = 28
|
|
|
|
supportLibVersion = "28.0.0"
|
2019-06-04 16:50:29 +00:00
|
|
|
gradleBuildTools = 'com.android.tools.build:gradle:3.4.1'
|
2019-03-04 12:38:41 +00:00
|
|
|
}
|
2016-02-22 22:04:42 +00:00
|
|
|
repositories {
|
2018-12-10 12:09:11 +00:00
|
|
|
flatDir { dirs "libs", "${rootDir}/app/libs" }
|
2017-12-28 18:53:18 +00:00
|
|
|
google()
|
2016-02-22 22:04:42 +00:00
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
2019-06-04 16:50:29 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:3.4.1'
|
2019-03-04 12:38:41 +00:00
|
|
|
// google-services downgraded from 4.1.0 because of
|
|
|
|
// https://github.com/invertase/react-native-firebase/issues/766#issuecomment-365116012
|
|
|
|
classpath 'com.google.gms:google-services:4.0.1'
|
2018-06-28 10:50:17 +00:00
|
|
|
classpath 'de.undercouch:gradle-download-task:3.1.2'
|
2016-02-22 22:04:42 +00:00
|
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-04 12:38:41 +00:00
|
|
|
subprojects {
|
|
|
|
afterEvaluate {
|
|
|
|
if (project.hasProperty("android")) {
|
|
|
|
android {
|
|
|
|
compileSdkVersion 28
|
|
|
|
buildToolsVersion "28.0.3"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
targetSdkVersion 28
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-22 22:04:42 +00:00
|
|
|
allprojects {
|
2019-06-04 16:50:29 +00:00
|
|
|
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()
|
2019-08-01 10:49:46 +00:00
|
|
|
maven { url "$rootDir/../node_modules/react-native/android" }
|
2018-10-23 13:31:21 +00:00
|
|
|
google()
|
2016-02-22 22:04:42 +00:00
|
|
|
jcenter()
|
2018-09-18 12:22:30 +00:00
|
|
|
// for geth, function, and status-go
|
2019-05-02 18:13:16 +00:00
|
|
|
flatDir { dirs "libs", System.env.STATUS_GO_ANDROID_LIBDIR }
|
2016-08-01 10:29:10 +00:00
|
|
|
maven { url "https://jitpack.io" }
|
2016-02-22 22:04:42 +00:00
|
|
|
}
|
2018-06-28 10:50:17 +00:00
|
|
|
}
|
2019-03-04 12:38:41 +00:00
|
|
|
|