-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ellet
committed
Dec 5, 2023
1 parent
35a9502
commit 7207dbf
Showing
8 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
scripts/regenerate-translations.sh → scripts/regenerate_translations.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import 'dart:io' show File; | ||
|
||
import 'package:yaml_edit/yaml_edit.dart'; | ||
|
||
// You must run this script in the root folder of the repo and not inside the scripts | ||
|
||
// ignore: unused_import | ||
import '../version.dart'; | ||
|
||
Future<void> main(List<String> args) async { | ||
await updatePubspecYamlFile('./pubspec.yaml'); | ||
await updatePubspecYamlFile('./flutter_quill_extensions/pubspec.yaml'); | ||
await updatePubspecYamlFile('./flutter_quill_test/pubspec.yaml'); | ||
await updatePubspecYamlFile('./packages/quill_html_converter/pubspec.yaml'); | ||
} | ||
|
||
Future<void> updatePubspecYamlFile(String path) async { | ||
final file = File(path); | ||
final yaml = await file.readAsString(); | ||
final yamlEditor = YamlEditor(yaml)..update(['version'], version); | ||
await file.writeAsString(yamlEditor.toString()); | ||
// ignore: avoid_print | ||
print(yamlEditor.toString()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const version = '9.0.0-dev'; |