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
dffddf00
Unverified
Commit
dffddf00
authored
Jun 02, 2022
by
Jenn Magder
Committed by
GitHub
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor BuildIOSFrameworkCommand with common darwin baseclass (#105194)
parent
8dbc3884
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
211 additions
and
99 deletions
+211
-99
podhelper.rb
packages/flutter_tools/bin/podhelper.rb
+6
-6
build_ios_framework.dart
...s/flutter_tools/lib/src/commands/build_ios_framework.dart
+126
-93
build_darwin_framework_test.dart
.../commands.shard/hermetic/build_darwin_framework_test.dart
+79
-0
No files found.
packages/flutter_tools/bin/podhelper.rb
View file @
dffddf00
...
...
@@ -177,9 +177,9 @@ def flutter_install_ios_engine_pod(ios_application_path = nil)
Pod::Spec.new do |s|
s.name = 'Flutter'
s.version = '1.0.0'
s.summary = '
High-performance, high-fidelity mobile
apps.'
s.homepage = 'https://flutter.
io
'
s.license = { :type => '
MIT
' }
s.summary = '
A UI toolkit for beautiful and fast
apps.'
s.homepage = 'https://flutter.
dev
'
s.license = { :type => '
BSD
' }
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
...
...
@@ -215,9 +215,9 @@ def flutter_install_macos_engine_pod(mac_application_path = nil)
Pod::Spec.new do |s|
s.name = 'FlutterMacOS'
s.version = '1.0.0'
s.summary = '
High-performance, high-fidelity mobile
apps.'
s.homepage = 'https://flutter.
io
'
s.license = { :type => '
MIT
' }
s.summary = '
A UI toolkit for beautiful and fast
apps.'
s.homepage = 'https://flutter.
dev
'
s.license = { :type => '
BSD
' }
s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
s.osx.deployment_target = '10.11'
...
...
packages/flutter_tools/lib/src/commands/build_ios_framework.dart
View file @
dffddf00
This diff is collapsed.
Click to expand it.
packages/flutter_tools/test/commands.shard/hermetic/build_
ios
_framework_test.dart
→
packages/flutter_tools/test/commands.shard/hermetic/build_
darwin
_framework_test.dart
View file @
dffddf00
...
...
@@ -271,4 +271,83 @@ void main() {
});
});
});
group
(
'XCFrameworks'
,
()
{
MemoryFileSystem
fileSystem
;
FakeProcessManager
fakeProcessManager
;
setUp
(()
{
fileSystem
=
MemoryFileSystem
.
test
();
fakeProcessManager
=
FakeProcessManager
.
empty
();
});
testWithoutContext
(
'created'
,
()
async
{
final
Directory
frameworkA
=
fileSystem
.
directory
(
'FrameworkA.framework'
)..
createSync
();
final
Directory
frameworkB
=
fileSystem
.
directory
(
'FrameworkB.framework'
)..
createSync
();
final
Directory
output
=
fileSystem
.
directory
(
'output'
);
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
<
String
>[
'xcrun'
,
'xcodebuild'
,
'-create-xcframework'
,
'-framework'
,
frameworkA
.
path
,
'-framework'
,
frameworkB
.
path
,
'-output'
,
output
.
childDirectory
(
'Combine.xcframework'
).
path
,
],
));
await
BuildFrameworkCommand
.
produceXCFramework
(
<
Directory
>[
frameworkA
,
frameworkB
],
'Combine'
,
output
,
fakeProcessManager
,
);
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
});
testWithoutContext
(
'created with symbols'
,
()
async
{
final
Directory
parentA
=
fileSystem
.
directory
(
'FrameworkA'
)..
createSync
();
final
File
bcsymbolmapA
=
parentA
.
childFile
(
'ABC123.bcsymbolmap'
)..
createSync
();
final
File
dSYMA
=
parentA
.
childFile
(
'FrameworkA.framework.dSYM'
)..
createSync
();
final
Directory
frameworkA
=
parentA
.
childDirectory
(
'FrameworkA.framework'
)..
createSync
();
final
Directory
parentB
=
fileSystem
.
directory
(
'FrameworkB'
)..
createSync
();
final
File
bcsymbolmapB
=
parentB
.
childFile
(
'ZYX987.bcsymbolmap'
)..
createSync
();
final
File
dSYMB
=
parentB
.
childFile
(
'FrameworkB.framework.dSYM'
)..
createSync
();
final
Directory
frameworkB
=
parentB
.
childDirectory
(
'FrameworkB.framework'
)..
createSync
();
final
Directory
output
=
fileSystem
.
directory
(
'output'
);
fakeProcessManager
.
addCommand
(
FakeCommand
(
command:
<
String
>[
'xcrun'
,
'xcodebuild'
,
'-create-xcframework'
,
'-framework'
,
frameworkA
.
path
,
'-debug-symbols'
,
bcsymbolmapA
.
path
,
'-debug-symbols'
,
dSYMA
.
path
,
'-framework'
,
frameworkB
.
path
,
'-debug-symbols'
,
bcsymbolmapB
.
path
,
'-debug-symbols'
,
dSYMB
.
path
,
'-output'
,
output
.
childDirectory
(
'Combine.xcframework'
).
path
,
],
));
await
BuildFrameworkCommand
.
produceXCFramework
(
<
Directory
>[
frameworkA
,
frameworkB
],
'Combine'
,
output
,
fakeProcessManager
,
);
expect
(
fakeProcessManager
.
hasRemainingExpectations
,
isFalse
);
});
});
}
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