Skip to content

Commit a746c7f

Browse files
authored
Merge pull request #40 from filiph/fix/melos-upgrade
Upgrade melos to 7.0.0+
2 parents 54b1462 + d1629e2 commit a746c7f

File tree

3 files changed

+115
-119
lines changed

3 files changed

+115
-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: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,101 @@ 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+
bootstrap:
52+
# It seems so that running "pub get" in parallel has some issues (like
53+
# https://github.com/dart-lang/pub/issues/3404). Disabling this feature
54+
# makes the CI much more stable.
55+
runPubGetInParallel: false
56+
usePubspecOverrides: true
57+
58+
scripts:
59+
flutter-analyze:
60+
# We are setting the concurrency to 1 because a higher concurrency can crash
61+
# the analysis server on low performance machines (like GitHub Actions).
62+
run: flutter analyze . --fatal-infos
63+
exec:
64+
concurrency: 1
65+
description: |
66+
Run `flutter analyze` in all packages.
67+
68+
format:
69+
run: |
70+
dart format .
71+
description: |
72+
Formats the code with dart format.
73+
74+
test:
75+
run: flutter pub get && flutter test
76+
exec:
77+
concurrency: 1
78+
failFast: true
79+
description: Flutter test
80+
81+
flutter-build-android:
82+
run: |
83+
flutter pub get && flutter build apk && flutter build appbundle
84+
exec:
85+
concurrency: 1
86+
failFast: true
87+
description: Build the sample app for Android.
88+
89+
flutter-build-ios:
90+
run: |
91+
flutter pub get && flutter build ios --release --no-codesign
92+
exec:
93+
concurrency: 1
94+
failFast: true
95+
description: Build the sample app for iOS.
96+
97+
add-license-header:
98+
# If you add here another --ignore flag, add it also to
99+
# "check-license-header".
100+
run: |
101+
addlicense -f header_template.txt \
102+
--ignore ".idea/**" \
103+
--ignore "android/app/.cxx/**" \
104+
--ignore "**/Pods/**" \
105+
--ignore "**/.dart_tool/**" \
106+
--ignore "build/**" \
107+
--ignore "**/GeneratedPluginRegistrant.*" \
108+
--ignore "**/flutter_export_environment.sh" \
109+
--ignore "**/FlutterGeneratedPluginSwiftPackage/**" \
110+
--ignore ".github/PULL_REQUEST_TEMPLATE.md" \
111+
--ignore ".github/ISSUE_TEMPLATE/**" \
112+
.
113+
description: Add a license header to all necessary files.
114+
115+
check-license-header:
116+
# If you add here another --ignore flag, add it also to
117+
# "add-license-header".
118+
run: |
119+
addlicense -f header_template.txt \
120+
--check \
121+
--ignore ".idea/**" \
122+
--ignore "android/app/.cxx/**" \
123+
--ignore "**/Pods/**" \
124+
--ignore "**/.dart_tool/**" \
125+
--ignore "build/**" \
126+
--ignore "**/GeneratedPluginRegistrant.*" \
127+
--ignore "**/flutter_export_environment.sh" \
128+
--ignore "**/FlutterGeneratedPluginSwiftPackage/**" \
129+
--ignore ".github/PULL_REQUEST_TEMPLATE.md" \
130+
--ignore ".github/ISSUE_TEMPLATE/**" \
131+
.
132+
description: Add a license header to all necessary files.

0 commit comments

Comments
 (0)