2016-02-01 17:25:40 +03:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
2017-02-23 17:00:30 +03:00
|
|
|
Properties properties = new Properties()
|
|
|
|
File file = new File('release.properties')
|
|
|
|
if (file.canRead()) {
|
|
|
|
properties.load(new FileInputStream(file))
|
|
|
|
}
|
|
|
|
|
|
|
|
def getVersionName = { ->
|
|
|
|
def stdout = new ByteArrayOutputStream()
|
|
|
|
exec {
|
|
|
|
commandLine 'git', 'describe', '--tags'
|
|
|
|
standardOutput = stdout
|
|
|
|
}
|
|
|
|
return stdout.toString().trim()
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
|
|
|
versionName = properties.get('VERSION_NAME', getVersionName())
|
|
|
|
|
|
|
|
println '----------------- Project configuration -------------------'
|
2017-03-09 12:04:31 +03:00
|
|
|
println 'VERSION_NAME: ' + versionName
|
|
|
|
println 'RELEASE_STORE_FILE: '+ RELEASE_STORE_FILE
|
|
|
|
println 'RELEASE_KEY_ALIAS: '+ RELEASE_KEY_ALIAS
|
2017-02-23 17:00:30 +03:00
|
|
|
println '-----------------------------------------------------------'
|
|
|
|
}
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-01-17 14:03:05 +03:00
|
|
|
google()
|
2016-02-01 17:25:40 +03:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-01-17 14:03:05 +03:00
|
|
|
classpath 'com.android.tools.build:gradle:3.0.1'
|
2016-02-01 17:25:40 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2018-01-17 14:03:05 +03:00
|
|
|
google()
|
2016-02-01 17:25:40 +03:00
|
|
|
}
|
|
|
|
}
|