@@ -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
3737flutter :
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