build: apply version to both modules
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
dfde86df76
commit
89d9e30025
@ -48,3 +48,5 @@ tasks {
|
|||||||
distributionType = Wrapper.DistributionType.ALL
|
distributionType = Wrapper.DistributionType.ALL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply from: "version.gradle"
|
@ -10,8 +10,8 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 1
|
versionCode wireguardVersionCode
|
||||||
versionName '1.0'
|
versionName wireguardVersionName
|
||||||
}
|
}
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
|
@ -22,8 +22,8 @@ android {
|
|||||||
applicationId 'com.wireguard.android'
|
applicationId 'com.wireguard.android'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 465
|
versionCode wireguardVersionCode
|
||||||
versionName '0.0.20200309'
|
versionName wireguardVersionName
|
||||||
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
|
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
|
||||||
}
|
}
|
||||||
// If the keystore file exists
|
// If the keystore file exists
|
||||||
|
6
version.gradle
Normal file
6
version.gradle
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
buildscript {
|
||||||
|
ext {
|
||||||
|
wireguardVersionCode = 465
|
||||||
|
wireguardVersionName = '0.0.20200309'
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user