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
3f1f0a81
Unverified
Commit
3f1f0a81
authored
Jun 03, 2022
by
Jenn Magder
Committed by
GitHub
Jun 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flutter build macos-framework command (#105242)
parent
975e04ba
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
881 additions
and
42 deletions
+881
-42
build_ios_framework_module_test.dart
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
+306
-19
utils.dart
dev/devicelab/lib/framework/utils.dart
+7
-0
build.dart
packages/flutter_tools/lib/src/commands/build.dart
+5
-0
build_macos_framework.dart
...flutter_tools/lib/src/commands/build_macos_framework.dart
+308
-0
xcode_project.dart
packages/flutter_tools/lib/src/xcode_project.dart
+2
-0
build_darwin_framework_test.dart
.../commands.shard/hermetic/build_darwin_framework_test.dart
+252
-22
project_test.dart
packages/flutter_tools/test/general.shard/project_test.dart
+1
-1
No files found.
dev/devicelab/bin/tasks/build_ios_framework_module_test.dart
View file @
3f1f0a81
This diff is collapsed.
Click to expand it.
dev/devicelab/lib/framework/utils.dart
View file @
3f1f0a81
...
...
@@ -753,6 +753,13 @@ void checkDirectoryNotExists(String directory) {
}
}
/// Checks that the symlink exists, otherwise throws a [FileSystemException].
void
checkSymlinkExists
(
String
file
)
{
if
(!
exists
(
Link
(
file
)))
{
throw
FileSystemException
(
'Expected symlink to exist.'
,
file
);
}
}
/// Check that `collection` contains all entries in `values`.
void
checkCollectionContains
<
T
>(
Iterable
<
T
>
values
,
Iterable
<
T
>
collection
)
{
for
(
final
T
value
in
values
)
{
...
...
packages/flutter_tools/lib/src/commands/build.dart
View file @
3f1f0a81
...
...
@@ -17,6 +17,7 @@ import 'build_bundle.dart';
import
'build_fuchsia.dart'
;
import
'build_ios.dart'
;
import
'build_ios_framework.dart'
;
import
'build_macos_framework.dart'
;
import
'build_web.dart'
;
class
BuildCommand
extends
FlutterCommand
{
...
...
@@ -29,6 +30,10 @@ class BuildCommand extends FlutterCommand {
buildSystem:
globals
.
buildSystem
,
verboseHelp:
verboseHelp
,
));
_addSubcommand
(
BuildMacOSFrameworkCommand
(
buildSystem:
globals
.
buildSystem
,
verboseHelp:
verboseHelp
,
));
_addSubcommand
(
BuildIOSArchiveCommand
(
verboseHelp:
verboseHelp
));
_addSubcommand
(
BuildBundleCommand
(
verboseHelp:
verboseHelp
));
_addSubcommand
(
BuildWebCommand
(
verboseHelp:
verboseHelp
));
...
...
packages/flutter_tools/lib/src/commands/build_macos_framework.dart
0 → 100644
View file @
3f1f0a81
This diff is collapsed.
Click to expand it.
packages/flutter_tools/lib/src/xcode_project.dart
View file @
3f1f0a81
...
...
@@ -518,6 +518,8 @@ class MacOSProject extends XcodeBasedProject {
@override
File
get
generatedXcodePropertiesFile
=>
ephemeralDirectory
.
childFile
(
'Flutter-Generated.xcconfig'
);
File
get
pluginRegistrantImplementation
=>
managedDirectory
.
childFile
(
'GeneratedPluginRegistrant.swift'
);
@override
File
xcodeConfigFor
(
String
mode
)
=>
managedDirectory
.
childFile
(
'Flutter-
$mode
.xcconfig'
);
...
...
packages/flutter_tools/test/commands.shard/hermetic/build_darwin_framework_test.dart
View file @
3f1f0a81
This diff is collapsed.
Click to expand it.
packages/flutter_tools/test/general.shard/project_test.dart
View file @
3f1f0a81
...
...
@@ -251,7 +251,7 @@ void main() {
final
FlutterProject
project
=
await
someProject
();
project
.
macos
.
managedDirectory
.
createSync
(
recursive:
true
);
await
project
.
regeneratePlatformSpecificTooling
();
expectExists
(
project
.
macos
.
managedDirectory
.
childFile
(
'GeneratedPluginRegistrant.swift'
)
);
expectExists
(
project
.
macos
.
pluginRegistrantImplementation
);
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
MemoryFileSystem
.
test
(),
ProcessManager:
()
=>
FakeProcessManager
.
any
(),
...
...
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