1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-25 06:06:59 +00:00

Custom apk name for github flavor and git ignore android studio flavor release folders.

This commit is contained in:
Ammar Githam 2021-03-26 22:30:55 +09:00
parent 317bdc39de
commit b71984d5d8
2 changed files with 15 additions and 1 deletions

4
.gitignore vendored
View File

@ -17,4 +17,6 @@
.externalNativeBuild
.cxx
app/release
/sentry.properties
/sentry.properties
/app/fdroid/
/app/github/

View File

@ -64,6 +64,18 @@ android {
versionNameSuffix "-fdroid"
}
}
android.applicationVariants.all { variant ->
if (variant.flavorName != "github") return
variant.outputs.all { output ->
def builtType = variant.buildType.name
def versionName = variant.versionName
// def versionCode = variant.versionCode
// def flavor = variant.flavorName
// flavor is already appended to versionName due to versionNameSuffix
outputFileName = "barinsta_${versionName}_${builtType}.apk"
}
}
}
configurations.all {