From 98784b3b0ad307b2af0d194903ea1b43f5de6154 Mon Sep 17 00:00:00 2001 From: manuelvargastapia Date: Sun, 13 Dec 2020 12:32:03 -0300 Subject: [PATCH] update seigning settings --- android/app/build.gradle | 44 +++++++++++++++++++++++----------------- pubspec.yaml | 2 +- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index e635dea..68bddd8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -46,32 +46,38 @@ android { versionName flutterVersionName } - flavorDimensions "deploy" + // flavorDimensions "deploy" - productFlavors { - play { - dimension "deploy" - signingConfig null - } - fdroid { - dimension "deploy" - signingConfig null - } - } + // 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" - } - } - } + // 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 null + signingConfig signingConfigs.debug + + applicationVariants.all { variant -> + variant.outputs.all { output -> + output.outputFileName = "app-release.apk" + } + } } } } diff --git a/pubspec.yaml b/pubspec.yaml index 5b0847d..89cbd28 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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+3 +version: 1.0.4+5 environment: sdk: ">=2.7.0 <3.0.0"