Skip to content

Commit a063919

Browse files
Fix issue with iterationsAllowed
1 parent d13508f commit a063919

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/flutter_migrate/lib/src/utils.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class MigrateUtils {
135135
await _runCommand(cmdArgs, workingDirectory: outputDirectory);
136136
final String error = result.stderr as String;
137137

138-
// Catch errors due to parameters not supported anymore for apps in flutter 3.35
138+
// ios-language is not supported anymore for apps in flutter 3.35.
139139
if (error.contains(
140140
'The "ios-language" option is only supported for "--template=plugin".')) {
141141
return createFromTemplates(
@@ -146,7 +146,7 @@ class MigrateUtils {
146146
iosLanguage: null,
147147
outputDirectory: outputDirectory,
148148
platforms: platforms,
149-
iterationsAllowed: iterationsAllowed--,
149+
iterationsAllowed: iterationsAllowed - 1,
150150
);
151151
}
152152

@@ -159,7 +159,7 @@ class MigrateUtils {
159159
androidLanguage: androidLanguage,
160160
iosLanguage: iosLanguage,
161161
outputDirectory: outputDirectory,
162-
iterationsAllowed: iterationsAllowed--,
162+
iterationsAllowed: iterationsAllowed - 1,
163163
);
164164
}
165165
// Old versions of the tool does not include the project-name option.
@@ -173,7 +173,7 @@ class MigrateUtils {
173173
iosLanguage: iosLanguage,
174174
outputDirectory: outputDirectory,
175175
platforms: platforms,
176-
iterationsAllowed: iterationsAllowed--,
176+
iterationsAllowed: iterationsAllowed - 1,
177177
);
178178
}
179179
if (error.contains('Multiple output directories specified.')) {
@@ -185,7 +185,7 @@ class MigrateUtils {
185185
androidLanguage: androidLanguage,
186186
iosLanguage: iosLanguage,
187187
outputDirectory: outputDirectory,
188-
iterationsAllowed: iterationsAllowed--,
188+
iterationsAllowed: iterationsAllowed - 1,
189189
);
190190
}
191191
}

0 commit comments

Comments
 (0)