mirror of
https://github.com/apognu/otter
synced 2025-02-17 03:10:35 +01:00
Fix repo for F-Droid deployment.
This commit is contained in:
parent
300cc54e97
commit
29f35d94e1
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user