File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/domain/service/file_generator_service/signing_generator Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,19 @@ if (propFile.canRead()) {
9292 android.buildTypes.release.signingConfig = null
9393}''' ;
9494
95+ final signingConfigString =
96+ buildGradleContent.contains ('signingConfig = signingConfigs.debug' )
97+ ? 'signingConfig = signingConfigs.debug'
98+ : 'signingConfig signingConfigs.debug' ;
99+
95100 ///Fix build types configuration
96101 await buildGradle.writeAsString (
97102 buildGradleContent.replaceAll (
98103 '''buildTypes {
99104 release {
100105 // TODO: Add your own signing config for the release build.
101106 // Signing with the debug keys for now, so `flutter run --release` works.
102- signingConfig signingConfigs.debug
107+ $ signingConfigString
103108 }
104109 }''' ,
105110 '''signingConfigs {
You can’t perform that action at this time.
0 commit comments