Browse Source

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

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
b71984d5d8
  1. 4
      .gitignore
  2. 12
      app/build.gradle

4
.gitignore

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

12
app/build.gradle

@ -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 {

Loading…
Cancel
Save