Skip to content

Commit

Permalink
edit signing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
elmanolete committed Dec 13, 2020
1 parent 98784b3 commit 9b7b769
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
43 changes: 19 additions & 24 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,33 @@ android {
versionName flutterVersionName
}

// flavorDimensions "deploy"
flavorDimensions "deploy"

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

// android.applicationVariants.all { variant ->
// if (variant.flavorName == "fdroid") {
// variant.outputs.all { output ->
// output.outputFileName = "app-fdroid-release.apk"
// }
// }
// }
play {
dimension "deploy"
signingConfig signingConfigs.debug
}
}

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.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug

applicationVariants.all { variant ->
variant.outputs.all { output ->
output.outputFileName = "app-release.apk"
}
}
}
}
}
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.4+5
version: 1.0.4+6

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

0 comments on commit 9b7b769

Please sign in to comment.