Skip to content

Commit cf58225

Browse files
committed
Upgrade melos to 7.0.0+
This moves melos configuration from melos.yaml to pubspec.yaml. See migration details here: https://github.com/invertase/melos/blob/main/docs/guides/migrations.mdx#6xx-to-7xx
1 parent cde846c commit cf58225

File tree

3 files changed

+123
-119
lines changed

3 files changed

+123
-119
lines changed

melos.yaml

Lines changed: 0 additions & 111 deletions
This file was deleted.

pubspec.lock

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ packages:
6161
dependency: transitive
6262
description:
6363
name: cli_launcher
64-
sha256: "5e7e0282b79e8642edd6510ee468ae2976d847a0a29b3916e85f5fa1bfe24005"
64+
sha256: "17d2744fb9a254c49ec8eda582536abe714ea0131533e24389843a4256f82eac"
6565
url: "https://pub.dev"
6666
source: hosted
67-
version: "0.3.1"
67+
version: "0.3.2+1"
6868
cli_util:
6969
dependency: transitive
7070
description:
@@ -236,10 +236,10 @@ packages:
236236
dependency: transitive
237237
description:
238238
name: http
239-
sha256: "2c11f3f94c687ee9bad77c171151672986360b2b001d109814ee7140b2cf261b"
239+
sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412"
240240
url: "https://pub.dev"
241241
source: hosted
242-
version: "1.4.0"
242+
version: "1.6.0"
243243
http_parser:
244244
dependency: transitive
245245
description:
@@ -316,10 +316,10 @@ packages:
316316
dependency: "direct dev"
317317
description:
318318
name: melos
319-
sha256: "4280dc46bd5b741887cce1e67e5c1a6aaf3c22310035cf5bd33dceeeda62ed22"
319+
sha256: ff2da25990d83b0db883eb257e4fa25eb78150a329e7bfab7a379499d0f5f6f7
320320
url: "https://pub.dev"
321321
source: hosted
322-
version: "6.3.3"
322+
version: "7.3.0"
323323
meta:
324324
dependency: transitive
325325
description:
@@ -344,6 +344,14 @@ packages:
344344
url: "https://pub.dev"
345345
source: hosted
346346
version: "1.9.1"
347+
petitparser:
348+
dependency: transitive
349+
description:
350+
name: petitparser
351+
sha256: "1a97266a94f7350d30ae522c0af07890c70b8e62c71e8e3920d1db4d23c057d1"
352+
url: "https://pub.dev"
353+
source: hosted
354+
version: "7.0.1"
347355
platform:
348356
dependency: transitive
349357
description:
@@ -509,6 +517,14 @@ packages:
509517
url: "https://pub.dev"
510518
source: hosted
511519
version: "1.1.1"
520+
xml:
521+
dependency: transitive
522+
description:
523+
name: xml
524+
sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025"
525+
url: "https://pub.dev"
526+
source: hosted
527+
version: "6.6.1"
512528
yaml:
513529
dependency: transitive
514530
description:
@@ -526,5 +542,5 @@ packages:
526542
source: hosted
527543
version: "2.2.2"
528544
sdks:
529-
dart: ">=3.8.0 <4.0.0"
545+
dart: ">=3.9.0 <4.0.0"
530546
flutter: ">=3.27.0"

pubspec.yaml

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,109 @@ dev_dependencies:
3232
flutter_lints: ^6.0.0
3333
flutter_test:
3434
sdk: flutter
35-
melos: ^6.3.3
35+
melos: ^7.3.0
3636

3737
flutter:
3838
uses-material-design: true
3939

4040
assets:
4141
- assets/icon_flutter.png
42+
43+
# Melos is this repository's CI/CD helper.
44+
melos:
45+
useRootAsPackage: true
46+
categories:
47+
app:
48+
- "."
49+
50+
command:
51+
version:
52+
# Generate commit links in package changelogs.
53+
linkToCommits: true
54+
# # Only allow versioning to happen on main branch.
55+
# branch: master
56+
# Additionally build a changelog at the root of the workspace.
57+
workspaceChangelog: true
58+
59+
bootstrap:
60+
# It seems so that running "pub get" in parallel has some issues (like
61+
# https://github.com/dart-lang/pub/issues/3404). Disabling this feature
62+
# makes the CI much more stable.
63+
runPubGetInParallel: false
64+
usePubspecOverrides: true
65+
66+
scripts:
67+
flutter-analyze:
68+
# We are setting the concurrency to 1 because a higher concurrency can crash
69+
# the analysis server on low performance machines (like GitHub Actions).
70+
run: flutter analyze . --fatal-infos
71+
exec:
72+
concurrency: 1
73+
description: |
74+
Run `flutter analyze` in all packages.
75+
76+
format:
77+
run: |
78+
dart format .
79+
description: |
80+
Formats the code with dart format.
81+
82+
test:
83+
run: flutter pub get && flutter test
84+
exec:
85+
concurrency: 1
86+
failFast: true
87+
description: Flutter test
88+
89+
flutter-build-android:
90+
run: |
91+
flutter pub get && flutter build apk && flutter build appbundle
92+
exec:
93+
concurrency: 1
94+
failFast: true
95+
description: Build the sample app for Android.
96+
97+
flutter-build-ios:
98+
run: |
99+
flutter pub get && flutter build ios --release --no-codesign
100+
exec:
101+
concurrency: 1
102+
failFast: true
103+
description: Build the sample app for iOS.
104+
105+
add-license-header:
106+
# If you add here another --ignore flag, add it also to
107+
# "check-license-header".
108+
run: |
109+
addlicense -f header_template.txt \
110+
--ignore ".idea/**" \
111+
--ignore "android/app/.cxx/**" \
112+
--ignore "**/Pods/**" \
113+
--ignore "**/.dart_tool/**" \
114+
--ignore "build/**" \
115+
--ignore "**/GeneratedPluginRegistrant.*" \
116+
--ignore "**/flutter_export_environment.sh" \
117+
--ignore "**/FlutterGeneratedPluginSwiftPackage/**" \
118+
--ignore ".github/PULL_REQUEST_TEMPLATE.md" \
119+
--ignore ".github/ISSUE_TEMPLATE/**" \
120+
.
121+
description: Add a license header to all necessary files.
122+
123+
check-license-header:
124+
# If you add here another --ignore flag, add it also to
125+
# "add-license-header".
126+
run: |
127+
addlicense -f header_template.txt \
128+
--check \
129+
--ignore ".idea/**" \
130+
--ignore "android/app/.cxx/**" \
131+
--ignore "**/Pods/**" \
132+
--ignore "**/.dart_tool/**" \
133+
--ignore "build/**" \
134+
--ignore "**/GeneratedPluginRegistrant.*" \
135+
--ignore "**/flutter_export_environment.sh" \
136+
--ignore "**/FlutterGeneratedPluginSwiftPackage/**" \
137+
--ignore ".github/PULL_REQUEST_TEMPLATE.md" \
138+
--ignore ".github/ISSUE_TEMPLATE/**" \
139+
.
140+
description: Add a license header to all necessary files.

0 commit comments

Comments
 (0)