@@ -135,7 +135,7 @@ class MigrateUtils {
135
135
await _runCommand (cmdArgs, workingDirectory: outputDirectory);
136
136
final String error = result.stderr as String ;
137
137
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.
139
139
if (error.contains (
140
140
'The "ios-language" option is only supported for "--template=plugin".' )) {
141
141
return createFromTemplates (
@@ -146,7 +146,7 @@ class MigrateUtils {
146
146
iosLanguage: null ,
147
147
outputDirectory: outputDirectory,
148
148
platforms: platforms,
149
- iterationsAllowed: iterationsAllowed-- ,
149
+ iterationsAllowed: iterationsAllowed - 1 ,
150
150
);
151
151
}
152
152
@@ -159,7 +159,7 @@ class MigrateUtils {
159
159
androidLanguage: androidLanguage,
160
160
iosLanguage: iosLanguage,
161
161
outputDirectory: outputDirectory,
162
- iterationsAllowed: iterationsAllowed-- ,
162
+ iterationsAllowed: iterationsAllowed - 1 ,
163
163
);
164
164
}
165
165
// Old versions of the tool does not include the project-name option.
@@ -173,7 +173,7 @@ class MigrateUtils {
173
173
iosLanguage: iosLanguage,
174
174
outputDirectory: outputDirectory,
175
175
platforms: platforms,
176
- iterationsAllowed: iterationsAllowed-- ,
176
+ iterationsAllowed: iterationsAllowed - 1 ,
177
177
);
178
178
}
179
179
if (error.contains ('Multiple output directories specified.' )) {
@@ -185,7 +185,7 @@ class MigrateUtils {
185
185
androidLanguage: androidLanguage,
186
186
iosLanguage: iosLanguage,
187
187
outputDirectory: outputDirectory,
188
- iterationsAllowed: iterationsAllowed-- ,
188
+ iterationsAllowed: iterationsAllowed - 1 ,
189
189
);
190
190
}
191
191
}
0 commit comments