Fix repo for F-Droid deployment.
This commit is contained in:
parent
300cc54e97
commit
29f35d94e1
|
@ -37,16 +37,27 @@ android {
|
||||||
buildToolsVersion = "29.0.3"
|
buildToolsVersion = "29.0.3"
|
||||||
compileSdkVersion(29)
|
compileSdkVersion(29)
|
||||||
|
|
||||||
|
lintOptions {
|
||||||
|
isAbortOnError = false
|
||||||
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.github.apognu.otter"
|
applicationId = "com.github.apognu.otter"
|
||||||
|
|
||||||
minSdkVersion(23)
|
minSdkVersion(23)
|
||||||
targetSdkVersion(29)
|
targetSdkVersion(29)
|
||||||
|
|
||||||
ndkVersion = "21.3.6528147"
|
|
||||||
|
|
||||||
versionCode = androidGitVersion.code()
|
versionCode = androidGitVersion.code()
|
||||||
versionName = androidGitVersion.name()
|
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 {
|
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 {
|
ktlint {
|
||||||
|
|
Loading…
Reference in New Issue