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 8bc2e36 commit 2c1cc1a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/cronet_http/tool/prepare_for_embedded.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ final _cronetVersionUri = Uri.https(
'android/maven2/org/chromium/net/group-index.xml',
);

void main() async {
void main(List<String> args) async {
if (Directory.current.path.endsWith('tool')) {
_packageDirectory = Directory.current.parent;
} else {
Expand All @@ -49,7 +49,10 @@ void main() async {

final latestVersion = await _getLatestCronetVersion();
updateCronetDependency(latestVersion);
updatePubSpec();
// Runs `prepare_for_embedded.dart true` for publishing.
if (args.isNotEmpty && args.fisrt == 'true') {
updatePubSpec();
}
updateReadme();
}

Expand Down

0 comments on commit 2c1cc1a

Please sign in to comment.