Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Feb 4, 2024
1 parent 0b9ae2a commit a1ca42c
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class FlutterBuildPlugin extends ImpaktfullCliPlugin {
if (isGitProject) {
final isGitClean = await GitUtil.isGitClean(processRunner);
if (!isGitClean) {
throw ImpaktfullCliError('Git is not clean. Please commit or stash your changes before bumping the version.');
throw ImpaktfullCliError(
'Git is not clean. Please commit or stash your changes before bumping the version.');
}
}
final file = File('release_config.json');
Expand Down Expand Up @@ -105,9 +106,11 @@ class FlutterBuildPlugin extends ImpaktfullCliPlugin {
'--build-number=$buildNr',
],
]);
final file = File(join(extension.getBuildDirectory(flavor: flavor).path, 'app-$flavor-release.${extension.fileExtension}'));
final file = File(join(extension.getBuildDirectory(flavor: flavor).path,
'app-$flavor-release.${extension.fileExtension}'));
if (!file.existsSync()) {
throw ImpaktfullCliError('After building $flavor for Android, `${file.path}` does not exists.');
throw ImpaktfullCliError(
'After building $flavor for Android, `${file.path}` does not exists.');
}
return file;
}
Expand Down Expand Up @@ -155,9 +158,11 @@ class FlutterBuildPlugin extends ImpaktfullCliPlugin {
],
]);
final files = buildDirectory.listSync();
final result = files.where((element) => path.extension(element.path) == '.${extension.fileExtension}');
final result = files.where((element) =>
path.extension(element.path) == '.${extension.fileExtension}');
if (result.isEmpty) {
throw ImpaktfullCliError('After building $flavor for iOS, `${buildDirectory.path}` does not contain an `${extension.fileExtension}` file.');
throw ImpaktfullCliError(
'After building $flavor for iOS, `${buildDirectory.path}` does not contain an `${extension.fileExtension}` file.');
}
if (result.length > 1) {
throw ImpaktfullCliError(
Expand All @@ -166,7 +171,8 @@ class FlutterBuildPlugin extends ImpaktfullCliPlugin {

final ipaFile = File(result.first.path);
if (!ipaFile.existsSync()) {
throw ImpaktfullCliError('After building $flavor for iOS, `${ipaFile.path}` does not exists.');
throw ImpaktfullCliError(
'After building $flavor for iOS, `${ipaFile.path}` does not exists.');
}
return ipaFile;
}
Expand Down

0 comments on commit a1ca42c

Please sign in to comment.