@@ -19,7 +19,7 @@ void main() {
19
19
// print(Process.runSync('env', []).stdout);
20
20
21
21
print ("Running the command..." );
22
- final process = await Process .start (
22
+ final result = await Process .run (
23
23
"sh" ,
24
24
[
25
25
"-c" ,
@@ -32,18 +32,19 @@ void main() {
32
32
"com.flutterbountyhunters.deeplinks.example" ,
33
33
],
34
34
);
35
- process.stdout.transform (utf8.decoder).listen ((data) {
36
- print ("STDOUT:\n $data " );
37
- });
38
- process.stderr.transform (utf8.decoder).listen ((data) {
39
- print ("STDERR:\n $data " );
40
- });
41
- print ("The process started..." );
42
- print ("Closing stdin" );
43
- process.stdin.close ();
44
- print ("Waiting for exit code..." );
45
- final exitCode = await process.exitCode;
46
- print ("The xcrun call returned with exit code: $exitCode " );
35
+ // process.stdout.transform(utf8.decoder).listen((data) {
36
+ // print("STDOUT:\n$data");
37
+ // });
38
+ // process.stderr.transform(utf8.decoder).listen((data) {
39
+ // print("STDERR:\n$data");
40
+ // });
41
+ // print("The process started...");
42
+ // print("Closing stdin");
43
+ // process.stdin.close();
44
+ // print("Waiting for exit code...");
45
+ // final exitCode = await process.exitCode;
46
+ // print("The xcrun call returned with exit code: $exitCode");
47
+ print ("The xcrun call returned with exit code: ${result .exitCode }" );
47
48
});
48
49
49
50
// testDeepLinkIosAppLaunch(
0 commit comments