ecency-mobile/android/build.gradle

53 lines
1.4 KiB
Groovy
Raw Normal View History

2018-07-20 15:57:12 +03:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
2018-09-03 13:49:54 +03:00
google()
mavenLocal()
mavenCentral()
2018-07-20 15:57:12 +03:00
jcenter()
}
dependencies {
2018-09-10 19:46:13 +03:00
classpath 'com.android.tools.build:gradle:3.1.4'
2018-07-20 15:57:12 +03:00
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
2018-09-03 13:49:54 +03:00
google()
mavenCentral()
2018-07-20 15:57:12 +03:00
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
2018-09-03 13:49:54 +03:00
maven { url 'https://jitpack.io' }
2018-07-20 15:57:12 +03:00
}
}
ext {
2018-09-03 13:49:54 +03:00
buildToolsVersion = "27.0.3"
minSdkVersion = 19
2018-07-20 15:57:12 +03:00
compileSdkVersion = 26
targetSdkVersion = 26
supportLibVersion = "26.1.0"
}
2018-08-14 20:15:54 +03:00
2018-09-03 13:49:54 +03:00
subprojects { subproject ->
afterEvaluate {
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
2018-08-14 20:15:54 +03:00
android {
2018-09-03 13:49:54 +03:00
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains("reactNative51") || names.contains("reactNative55")) {
setIgnore(true)
}
}
2018-08-14 20:15:54 +03:00
}
}
}
}