@@ -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
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+ 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