Skip to content

Commit e524a25

Browse files
committed
- updated dependencies
- added support for pub get and sourcegen config
1 parent bc5af4f commit e524a25

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

openapi-generator/lib/src/openapi_generator_runner.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
9595
'OpenapiGenerator :: Codegen ${pr.exitCode != 0 ? 'Failed' : 'completed successfully'}');
9696
exitCode = pr.exitCode;
9797

98-
if (!_readFieldValueAsBool(annotation, 'fetchDependencies')) {
99-
print(
100-
'OpenapiGenerator :: Codegen skipping install step because you said so...');
101-
return '';
102-
}
98+
// if (!_readFieldValueAsBool(annotation, 'fetchDependencies')) {
99+
// print(
100+
// 'OpenapiGenerator :: Codegen skipping install step because you said so...');
101+
// return '';
102+
// }
103103

104104
if (exitCode == 0) {
105105
var installOutput = await Process.run('flutter', ['pub', 'get'],
@@ -111,11 +111,11 @@ class OpenapiGenerator extends GeneratorForAnnotation<annots.Openapi> {
111111
exitCode = installOutput.exitCode;
112112
}
113113

114-
if (!_readFieldValueAsBool(annotation, 'runSourceGenOnOutput')) {
115-
print(
116-
'OpenapiGenerator :: Codegen skipping source gen step because you said so...');
117-
return '';
118-
}
114+
// if (!_readFieldValueAsBool(annotation, 'runSourceGenOnOutput')) {
115+
// print(
116+
// 'OpenapiGenerator :: Codegen skipping source gen step because you said so...');
117+
// return '';
118+
// }
119119

120120
if (exitCode == 0) {
121121
//run buildrunner to generate files

0 commit comments

Comments
 (0)