mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Extract version constants into top-level build file.
This commit is contained in:
@@ -5,14 +5,14 @@ apply plugin: 'witness'
|
|||||||
apply from: 'witness.gradle'
|
apply from: 'witness.gradle'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||||
buildToolsVersion '30.0.2'
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 16
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion 29
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 10210
|
versionCode rootProject.ext.versionCode
|
||||||
versionName "1.2.10"
|
versionName rootProject.ext.versionName
|
||||||
consumerProguardFiles 'proguard-rules.txt'
|
consumerProguardFiles 'proguard-rules.txt'
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|||||||
@@ -16,14 +16,14 @@ def getStdout = { command, defaultValue ->
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||||
buildToolsVersion '30.0.2'
|
buildToolsVersion rootProject.ext.buildToolsVersion
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 16
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion 29
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 10210
|
versionCode rootProject.ext.versionCode
|
||||||
versionName "1.2.10"
|
versionName rootProject.ext.versionName
|
||||||
applicationId "org.briarproject.briar.android"
|
applicationId "org.briarproject.briar.android"
|
||||||
buildConfigField "String", "GitHash",
|
buildConfigField "String", "GitHash",
|
||||||
"\"${getStdout(['git', 'rev-parse', '--short=7', 'HEAD'], 'No commit hash')}\""
|
"\"${getStdout(['git', 'rev-parse', '--short=7', 'HEAD'], 'No commit hash')}\""
|
||||||
|
|||||||
@@ -33,3 +33,12 @@ buildscript {
|
|||||||
classpath files('libs/gradle-witness.jar')
|
classpath files('libs/gradle-witness.jar')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project.ext {
|
||||||
|
buildToolsVersion = '30.0.2'
|
||||||
|
compileSdkVersion = 30
|
||||||
|
minSdkVersion = 16
|
||||||
|
targetSdkVersion = 29
|
||||||
|
versionCode = 10210
|
||||||
|
versionName = '1.2.10'
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user