Simplify build.gradle for F-Droid checkupdates

The separation of downstream changes was nice,
but checkupdates isn't smart enough to work with it.
This commit is contained in:
Alexander Sosedkin 2022-12-07 18:55:00 +01:00
parent 83e47c984a
commit e0a1a6bfea

View file

@ -37,15 +37,20 @@ android {
implementation project(":termux-shared")
}
// NIX-ON-DROID: Downstream version.
defaultConfig {
applicationId "com.termux"
applicationIdSuffix ".nix"
versionCode 188031
versionName "0.118.0_v0.3.1_nix"
// fdroid checkupdates looks for literal versionCode/versionName,
// can't get fancy with these and use string interpolation and similar
minSdkVersion project.properties.minSdkVersion.toInteger()
targetSdkVersion project.properties.targetSdkVersion.toInteger()
versionCode 118
versionName "0.118.0"
if (appVersionName) versionName = appVersionName
validateVersionName(versionName)
//validateVersionName(versionName)
buildConfigField "String", "TERMUX_PACKAGE_VARIANT", "\"" + project.ext.packageVariant + "\"" // Used by TermuxApplication class
@ -77,18 +82,6 @@ android {
*/
}
// NIX-ON-DROID: Downstream version
defaultConfig {
def nixOnDroidMajor = 0
def nixOnDroidMinor = 3
def nixOnDroidRev = 0
applicationIdSuffix ".nix"
versionNameSuffix "_v${nixOnDroidMajor}.${nixOnDroidMinor}.${nixOnDroidRev}_nix"
versionCode android.defaultConfig.versionCode * 1000 + \
nixOnDroidMajor * 100 + nixOnDroidMinor * 10 + nixOnDroidRev
}
signingConfigs {
debug {
storeFile file('testkey_untrusted.jks')