Skip to content

Commit 1f18e80

Browse files
committed
update
1 parent d6097e6 commit 1f18e80

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

.github/scripts/update_changelog.dart

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ void main(List<String> args) {
2828
final sections = extractSections(contents);
2929
final versionExist = sections.where((e) => e.version == version).isNotEmpty;
3030
if (versionExist) {
31-
sections.where((e) => e.version == version).forEach((e) {
32-
e.addUpdate(comitMesssage);
33-
});
31+
for (final versionSection in sections.where((e) => e.version == version)) {
32+
if (comitMesssage.isNotEmpty) {
33+
versionSection.addUpdate(comitMesssage);
34+
}
35+
}
3436
} else {
3537
sections.add(
3638
_VersionSection(
@@ -76,11 +78,13 @@ Set<_VersionSection> extractSections(String contents) {
7678
updates.add(line);
7779
}
7880
}
79-
results.add(_VersionSection(
80-
version: version,
81-
releasedAt: releasedAt,
82-
updates: updates,
83-
));
81+
results.add(
82+
_VersionSection(
83+
version: version,
84+
releasedAt: releasedAt,
85+
updates: updates,
86+
),
87+
);
8488
}
8589

8690
return results;
@@ -105,7 +109,7 @@ class _VersionSection {
105109
required this.version,
106110
required this.releasedAt,
107111
Set<String>? updates,
108-
}) : this.updates = updates ?? {};
112+
}) : updates = updates ?? {};
109113

110114
//
111115
//

.github/workflows/deploy-examplet.yml_REMOVE_TO_ENABLE renamed to .github/workflows/deploy-example.yml_REMOVE_TO_ENABLE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
# Build the web app in /hosted_example/
5050
- name: Build web app in /hosted_example/
51-
run: flutter build web --release --base-href "/${{ github.event.repository.name }}/"
51+
run: flutter build web --release --wasm --base-href "/${{ github.event.repository.name }}/"
5252
working-directory: ./hosted_example
5353

5454
# Necessary

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A package that provides a convenient method to scale your app UI and or down.
1919

2020
---
2121

22-
Please refer to the [API reference](https://pub.dev/documentation/df_scalable/) for more information.
22+
☝️ Please refer to the [API reference](https://pub.dev/documentation/df_scalable/) for more information.
2323

2424
---
2525

@@ -46,6 +46,7 @@ If you're enjoying this package and find it valuable, consider showing your appr
4646

4747
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="40"></a>
4848

49-
## License
49+
## 🧑‍⚖️ License
5050

5151
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_scalable/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_scalable/main/LICENSE) for more information.
52+

0 commit comments

Comments
 (0)