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
9184f4d6
Unverified
Commit
9184f4d6
authored
Dec 18, 2019
by
Jenn Magder
Committed by
GitHub
Dec 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build iOS frameworks with relative output path (#47369)
parent
beb86d2c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
275 additions
and
174 deletions
+275
-174
build_ios_framework_module_test.dart
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
+58
-7
build_ios_framework.dart
...s/flutter_tools/lib/src/commands/build_ios_framework.dart
+217
-167
No files found.
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
View file @
9184f4d6
...
...
@@ -45,19 +45,20 @@ Future<void> main() async {
// This builds all build modes' frameworks by default
section
(
'Build frameworks'
);
const
String
outputDirectoryName
=
'flutter-frameworks'
;
await
inDirectory
(
projectDir
,
()
async
{
await
flutter
(
'build'
,
options:
<
String
>[
'ios-framework'
],
options:
<
String
>[
'ios-framework'
,
'--xcframework'
,
'--output=
$outputDirectoryName
'
],
);
});
final
String
outputPath
=
path
.
join
(
projectDir
.
path
,
'build'
,
'ios'
,
'framework'
,
);
final
String
outputPath
=
path
.
join
(
projectDir
.
path
,
outputDirectoryName
);
section
(
'Check debug build has Dart snapshot as asset'
);
...
...
@@ -157,6 +158,22 @@ Future<void> main() async {
'Flutter.framework'
,
'Flutter'
,
));
checkFileExists
(
path
.
join
(
outputPath
,
mode
,
'Flutter.xcframework'
,
'ios-armv7_arm64'
,
'Flutter.framework'
,
'Flutter'
,
));
checkFileExists
(
path
.
join
(
outputPath
,
mode
,
'Flutter.xcframework'
,
'ios-x86_64-simulator'
,
'Flutter.framework'
,
'Flutter'
,
));
}
section
(
"Check all modes' engine header"
);
...
...
@@ -177,6 +194,22 @@ Future<void> main() async {
'device_info.framework'
,
'device_info'
,
));
checkFileExists
(
path
.
join
(
outputPath
,
mode
,
'device_info.xcframework'
,
'ios-armv7_arm64'
,
'device_info.framework'
,
'device_info'
,
));
checkFileExists
(
path
.
join
(
outputPath
,
mode
,
'device_info.xcframework'
,
'ios-x86_64-simulator'
,
'device_info.framework'
,
'device_info'
,
));
}
section
(
"Check all modes' have generated plugin registrant"
);
...
...
@@ -189,6 +222,24 @@ Future<void> main() async {
'Headers'
,
'GeneratedPluginRegistrant.h'
,
));
checkFileExists
(
path
.
join
(
outputPath
,
mode
,
'FlutterPluginRegistrant.xcframework'
,
'ios-armv7_arm64'
,
'FlutterPluginRegistrant.framework'
,
'Headers'
,
'GeneratedPluginRegistrant.h'
,
));
checkFileExists
(
path
.
join
(
outputPath
,
mode
,
'FlutterPluginRegistrant.xcframework'
,
'ios-x86_64-simulator'
,
'FlutterPluginRegistrant.framework'
,
'Headers'
,
'GeneratedPluginRegistrant.h'
,
));
}
return
TaskResult
.
success
(
null
);
...
...
packages/flutter_tools/lib/src/commands/build_ios_framework.dart
View file @
9184f4d6
This diff is collapsed.
Click to expand it.
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