Skip to content

Commit

Permalink
Update prepare_for_embedded.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Dec 5, 2023
1 parent 3a838e6 commit 97e4035
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkgs/cronet_http/tool/prepare_for_embedded.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,9 @@ void updatePubSpec() {
..update(['description'], _packageDescription);
fPubspec.writeAsStringSync(yamlEditor.toString());
final examplePubspec = File('${_packageDirectory.path}/pubspec.yaml');
final replaced = examplePubspec.readAsStringSync().replaceAll(
'cronet_http:',
'cronet_http_embedded:',
);
final replaced = examplePubspec
.readAsStringSync()
.replaceAll('cronet_http:', 'cronet_http_embedded:');
examplePubspec.writeAsStringSync(replaced);
}

Expand Down

0 comments on commit 97e4035

Please sign in to comment.