Fix repo for F-Droid deployment.

This commit is contained in:
Antoine POPINEAU 2020-09-07 11:46:35 +02:00
parent 300cc54e97
commit 29f35d94e1
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 29 additions and 2 deletions

View File

@ -37,16 +37,27 @@ android {
buildToolsVersion = "29.0.3"
compileSdkVersion(29)
lintOptions {
isAbortOnError = false
}
defaultConfig {
applicationId = "com.github.apognu.otter"
minSdkVersion(23)
targetSdkVersion(29)
ndkVersion = "21.3.6528147"
versionCode = androidGitVersion.code()
versionName = androidGitVersion.name()
applicationVariants.all {
outputs
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
.forEach { output ->
if (flavorName == "foss") output.outputFileName = "otter-foss-${versionName}-${buildType.name}.apk"
else output.outputFileName = "otter-${versionName}-${buildType.name}.apk"
}
}
}
signingConfigs {
@ -95,6 +106,22 @@ android {
)
}
}
flavorDimensions("version")
productFlavors {
create("full") {
setDimension("version")
applicationId = "com.github.apognu.otter"
}
create("foss") {
setDimension("version")
applicationId = "com.github.apognu.otter.foss"
}
}
}
ktlint {