Skip to content

Commit

Permalink
Fix analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Sep 7, 2023
1 parent c53c47b commit c626871
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ jobs:
flutter pub run ffigen
- name: Analyze
run: flutter analyze
run: |
cd lib && flutter analyze
cd test && flutter analyze
cd util && flutter analyze
- name: Build OuiSync library for tests
run: |
Expand Down
9 changes: 6 additions & 3 deletions util/release.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Future<void> main(List<String> args) async {
final commit = await getCommit();

final versionName = stripBuild(version).canonicalizedVersion;
final buildName = commit != null ? '$versionName-$commit' : versionName;
final buildName = '$versionName-$commit';

// Do a fresh build just in case (TODO: do we need this?)
await cleanBuild();
Expand Down Expand Up @@ -364,9 +364,12 @@ Future<void> upload({
}

Future<File> collateAsset(
Directory outputDir, String outName, String suffix, File inputFile) async {
Directory outputDir,
String outName,
String suffix,
File inputFile,
) async {
final ext = extension(inputFile.path);
final basename = basenameWithoutExtension(inputFile.path);
return await inputFile.copy(join(outputDir.path, '$outName-$suffix$ext'));
}

Expand Down

0 comments on commit c626871

Please sign in to comment.