Skip to content

Commit

Permalink
Set letters lowercase when created flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
marinagosson authored Mar 30, 2023
1 parent e056c41 commit db6d637
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/processors/flutter/flutter_flavors_processor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FlutterFlavorsProcessor extends StringProcessor {
buffer.writeln('enum Flavor {');

for (var flavorName in config.flavors.keys) {
buffer.writeln(' ${flavorName.toUpperCase()},');
buffer.writeln(' ${flavorName.toLowerCase()},');
}

buffer.writeln('}');
Expand All @@ -69,7 +69,7 @@ class FlutterFlavorsProcessor extends StringProcessor {
buffer.writeln(' switch (appFlavor) {');

config.flavors.forEach((String name, Flavor flavor) {
buffer.writeln(' case Flavor.${name.toUpperCase()}:');
buffer.writeln(' case Flavor.${name.toLowerCase()}:');
buffer.writeln(' return \'${flavor.app.name}\';');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class FlutterTargetFileProcessor extends QueueProcessor {
'$destination/main_$flavorName.dart',
ReplaceStringProcessor(
'[[FLAVOR_NAME]]',
flavorName.toUpperCase(),
flavorName.toLowerCase(),
config: config,
),
config: config,
Expand Down

0 comments on commit db6d637

Please sign in to comment.