Skip to content

Commit

Permalink
add flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
elmanolete committed Dec 12, 2020
1 parent 5162f05 commit ecc027e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,27 @@ android {
versionName flutterVersionName
}

flavorDimensions "deploy"

productFlavors {
play {
dimension "deploy"
signingConfig null
}
fdroid {
dimension "deploy"
signingConfig null
}
}

android.applicationVariants.all { variant ->
if (variant.flavorName == "fdroid") {
variant.outputs.all { output ->
output.outputFileName = "app-fdroid-release.apk"
}
}
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.3+1
version: 1.0.4+1

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down

0 comments on commit ecc027e

Please sign in to comment.