Skip to content

Commit b767175

Browse files
committed
Formatting!
1 parent 36e02bf commit b767175

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

lib/src/cli/task_producer_init.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,22 @@ extension on String {
121121
}
122122

123123
Future<void> addFlutterEngineXCFramework(String pathToIos) async {
124-
await Isolate.resolvePackageUri(Uri.parse("package:klutter/res/FlutterEngine.xcframework")).then((source) {
125-
if(source == null) {
124+
await Isolate.resolvePackageUri(
125+
Uri.parse("package:klutter/res/FlutterEngine.xcframework"))
126+
.then((source) {
127+
if (source == null) {
126128
throw KlutterException("FlutterEngine.xcframework does not exist.");
127129
}
128130

129131
final pathFrom = Directory(source.path);
130-
final pathTo = Directory("$pathToIos/Klutter/FlutterEngine.xcframework").maybeCreate;
131-
final result = Process.runSync("cp", ["-R", pathFrom.absolutePath, pathTo.absolutePath],);
132+
final pathTo =
133+
Directory("$pathToIos/Klutter/FlutterEngine.xcframework").maybeCreate;
134+
final result = Process.runSync(
135+
"cp",
136+
["-R", pathFrom.absolutePath, pathTo.absolutePath],
137+
);
132138
stdout.write(result.stdout);
133139
stderr.write(result.stderr);
134140
});
135141
}
136-
137142
}

lib/src/consumer/ios.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ extension on File {
8484
final text = readAsStringSync();
8585
final containsAllLines = <bool>[];
8686

87-
for(final line in linesToAdd) {
87+
for (final line in linesToAdd) {
8888
containsAllLines.add(text.contains(line));
8989
}
9090

91-
if(containsAllLines.every((hasLine) => hasLine)) {
91+
if (containsAllLines.every((hasLine) => hasLine)) {
9292
return;
9393
}
9494

0 commit comments

Comments
 (0)