build: apply version to both modules

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2020-03-09 21:54:27 -06:00
parent dfde86df76
commit 89d9e30025
4 changed files with 12 additions and 4 deletions
+2
View File
@@ -48,3 +48,5 @@ tasks {
distributionType = Wrapper.DistributionType.ALL
}
}
apply from: "version.gradle"
+2 -2
View File
@@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName '1.0'
versionCode wireguardVersionCode
versionName wireguardVersionName
}
externalNativeBuild {
cmake {
+2 -2
View File
@@ -22,8 +22,8 @@ android {
applicationId 'com.wireguard.android'
minSdkVersion 21
targetSdkVersion 29
versionCode 465
versionName '0.0.20200309'
versionCode wireguardVersionCode
versionName wireguardVersionName
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
}
// If the keystore file exists
+6
View File
@@ -0,0 +1,6 @@
buildscript {
ext {
wireguardVersionCode = 465
wireguardVersionName = '0.0.20200309'
}
}