Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
6e605f3f
Unverified
Commit
6e605f3f
authored
Feb 04, 2020
by
Jenn Magder
Committed by
GitHub
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run "build ios-framework" processes async (#49657)
parent
9b3e1639
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
build_ios_framework.dart
...s/flutter_tools/lib/src/commands/build_ios_framework.dart
+18
-18
No files found.
packages/flutter_tools/lib/src/commands/build_ios_framework.dart
View file @
6e605f3f
...
...
@@ -312,7 +312,7 @@ end
'
-
output
',
fatFlutterFrameworkBinary.path
];
final RunResult lipoResult =
processUtils.runSync
(
final RunResult lipoResult =
await processUtils.run
(
lipoCommand,
allowReentrantFlutter: false,
);
...
...
@@ -327,7 +327,7 @@ end
status.stop();
}
_produceXCFramework(mode, fatFlutterFrameworkCopy);
await
_produceXCFramework(mode, fatFlutterFrameworkCopy);
}
Future<void> _produceAppFramework(BuildMode mode, Directory iPhoneBuildOutput, Directory simulatorBuildOutput, Directory modeDirectory) async {
...
...
@@ -365,7 +365,7 @@ end
} finally {
status.stop();
}
_produceXCFramework(mode, destinationAppFrameworkDirectory);
await
_produceXCFramework(mode, destinationAppFrameworkDirectory);
}
Future<void> _produceStubAppFrameworkIfNeeded(BuildMode mode, Directory iPhoneBuildOutput, Directory simulatorBuildOutput, Directory destinationAppFrameworkDirectory) async {
...
...
@@ -393,7 +393,7 @@ end
destinationAppFrameworkDirectory.childFile(binaryName).path
];
final RunResult lipoResult =
processUtils.runSync
(
final RunResult lipoResult =
await processUtils.run
(
lipoCommand,
allowReentrantFlutter: false,
);
...
...
@@ -465,7 +465,7 @@ end
'
ONLY_ACTIVE_ARCH
=
NO
' // No device targeted, so build all valid architectures.
];
RunResult buildPluginsResult =
processUtils.runSync
(
RunResult buildPluginsResult =
await processUtils.run
(
pluginsBuildCommand,
workingDirectory: _project.ios.hostAppRoot.childDirectory('
Pods
').path,
allowReentrantFlutter: false,
...
...
@@ -490,7 +490,7 @@ end
// No device targeted, so build all valid architectures.
];
buildPluginsResult =
processUtils.runSync
(
buildPluginsResult =
await processUtils.run
(
pluginsBuildCommand,
workingDirectory: _project.ios.hostAppRoot
.childDirectory('
Pods
')
...
...
@@ -542,7 +542,7 @@ end
modeDirectory.childDirectory(podFrameworkName).childFile(binaryName).path
];
final RunResult pluginsLipoResult =
processUtils.runSync
(
final RunResult pluginsLipoResult =
await processUtils.run
(
lipoCommand,
workingDirectory: outputDirectory.path,
allowReentrantFlutter: false,
...
...
@@ -573,7 +573,7 @@ end
modeDirectory.childFile('
$binaryName
.
xcframework
').path
];
final RunResult xcframeworkResult =
processUtils.runSync
(
final RunResult xcframeworkResult =
await processUtils.run
(
xcframeworkCommand,
workingDirectory: outputDirectory.path,
allowReentrantFlutter: false,
...
...
@@ -592,7 +592,7 @@ end
}
}
void _produceXCFramework(BuildMode mode, Directory fatFramework)
{
Future<void> _produceXCFramework(BuildMode mode, Directory fatFramework) async
{
if (boolArg('
xcframework
')) {
final String frameworkBinaryName = globals.fs.path.basenameWithoutExtension(
fatFramework.basename);
...
...
@@ -603,9 +603,9 @@ end
);
try {
if (mode == BuildMode.debug) {
_produceDebugXCFramework(fatFramework, frameworkBinaryName);
await
_produceDebugXCFramework(fatFramework, frameworkBinaryName);
} else {
_produceNonDebugXCFramework(mode, fatFramework, frameworkBinaryName);
await
_produceNonDebugXCFramework(mode, fatFramework, frameworkBinaryName);
}
} finally {
status.stop();
...
...
@@ -617,7 +617,7 @@ end
}
}
void _produceDebugXCFramework(Directory fatFramework, String frameworkBinaryName)
{
Future<void> _produceDebugXCFramework(Directory fatFramework, String frameworkBinaryName) async
{
final String frameworkFileName = fatFramework.basename;
final File fatFlutterFrameworkBinary = fatFramework.childFile(
frameworkBinaryName,
...
...
@@ -650,7 +650,7 @@ end
armFlutterFrameworkBinary.path
];
RunResult lipoResult =
processUtils.runSync
(
RunResult lipoResult =
await processUtils.run
(
lipoCommand,
allowReentrantFlutter: false,
);
...
...
@@ -676,7 +676,7 @@ end
simulatorFlutterFrameworkBinary.path
];
lipoResult =
processUtils.runSync
(
lipoResult =
await processUtils.run
(
lipoCommand,
allowReentrantFlutter: false,
);
...
...
@@ -698,7 +698,7 @@ end
.path
];
final RunResult xcframeworkResult =
processUtils.runSync
(
final RunResult xcframeworkResult =
await processUtils.run
(
xcframeworkCommand,
allowReentrantFlutter: false,
);
...
...
@@ -713,11 +713,11 @@ end
}
}
void
_produceNonDebugXCFramework(
Future<void>
_produceNonDebugXCFramework(
BuildMode mode,
Directory fatFramework,
String frameworkBinaryName,
) {
)
async
{
// Simulator is only supported in Debug mode.
// "Fat" framework here must only contain arm.
final List<String> xcframeworkCommand = <String>[
...
...
@@ -730,7 +730,7 @@ end
.path
];
final RunResult xcframeworkResult =
processUtils.runSync
(
final RunResult xcframeworkResult =
await processUtils.run
(
xcframeworkCommand,
allowReentrantFlutter: false,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment