From ab3e66a3d94b3bc224b08f675661995fad09fa40 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Mon, 28 Aug 2023 21:05:06 +0200 Subject: [PATCH] reformat --- build_tool/lib/src/build_gradle.dart | 6 ++++-- build_tool/lib/src/precompile_binaries.dart | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build_tool/lib/src/build_gradle.dart b/build_tool/lib/src/build_gradle.dart index 0f4db37..5c37de1 100644 --- a/build_tool/lib/src/build_gradle.dart +++ b/build_tool/lib/src/build_gradle.dart @@ -20,13 +20,15 @@ class BuildGradle { final targets = Environment.targetPlatforms.map((arch) { final target = Target.forFlutterName(arch); if (target == null) { - throw Exception("Unknown darwin target or platform: $arch, ${Environment.darwinPlatformName}"); + throw Exception( + "Unknown darwin target or platform: $arch, ${Environment.darwinPlatformName}"); } return target; }).toList(); final environment = BuildEnvironment.fromEnvironment(isAndroid: true); - final provider = ArtifactProvider(environment: environment, userOptions: userOptions); + final provider = + ArtifactProvider(environment: environment, userOptions: userOptions); final artifacts = await provider.getArtifacts(targets); for (final target in targets) { diff --git a/build_tool/lib/src/precompile_binaries.dart b/build_tool/lib/src/precompile_binaries.dart index 725aa27..6226610 100644 --- a/build_tool/lib/src/precompile_binaries.dart +++ b/build_tool/lib/src/precompile_binaries.dart @@ -157,7 +157,8 @@ class PrecompileBinaries { rethrow; } ++retryCount; - _log.shout('Upload failed (attempt $retryCount, will retry): ${e.toString()}'); + _log.shout( + 'Upload failed (attempt $retryCount, will retry): ${e.toString()}'); await Future.delayed(Duration(seconds: 2)); } }