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
4c99958d
Unverified
Commit
4c99958d
authored
Jan 17, 2019
by
Dan Field
Committed by
GitHub
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Move flutter_assets to App.framework (#26630)" (#26675)
This reverts commit
d8db70af
.
parent
36a49360
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
111 additions
and
72 deletions
+111
-72
project.pbxproj
...marks/complex_layout/ios/Runner.xcodeproj/project.pbxproj
+4
-0
project.pbxproj
...arks/macrobenchmarks/ios/Runner.xcodeproj/project.pbxproj
+4
-0
project.pbxproj
...arks/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
..._tests/android_views/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...ation_tests/channels/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...on_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...ration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...gration_tests/ios_host_app/Host.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...platform_interaction/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
dev/manual_tests/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
examples/catalog/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...ples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
examples/flutter_view/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
examples/hello_world/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
examples/layers/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...les/platform_channel/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
...atform_channel_swift/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
examples/platform_view/ios/Runner.xcodeproj/project.pbxproj
+2
-0
project.pbxproj
examples/stocks/ios/Runner.xcodeproj/project.pbxproj
+2
-0
xcode_backend.sh
packages/flutter_tools/bin/xcode_backend.sh
+5
-1
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+50
-11
project.pbxproj.tmpl
...s/app/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+4
-0
project.pbxproj.tmpl
.../app/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+4
-0
project.pbxproj.tmpl
..._app_ephemeral/Runner.xcodeproj.tmpl/project.pbxproj.tmpl
+4
-0
mac_test.dart
packages/flutter_tools/test/ios/mac_test.dart
+0
-60
No files found.
dev/benchmarks/complex_layout/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -7,6 +7,7 @@
objects
=
{
/* Begin PBXBuildFile section */
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
;
};
746232531E83B71900CC1A5E
/* App.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
746232521E83B71900CC1A5E
/* App.framework */
;
};
746232541E83B71900CC1A5E
/* App.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
746232521E83B71900CC1A5E
/* App.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
746232561E83B9DF00CC1A5E
/* AppFrameworkInfo.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
746232551E83B9DF00CC1A5E
/* AppFrameworkInfo.plist */
;
};
...
...
@@ -35,6 +36,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
folder
;
name
=
flutter_assets
;
path
=
Flutter/flutter_assets
;
sourceTree
=
SOURCE_ROOT
;
};
746232521E83B71900CC1A5E
/* App.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
App.framework
;
path
=
Flutter/App.framework
;
sourceTree
=
"<group>"
;
};
746232551E83B9DF00CC1A5E
/* AppFrameworkInfo.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
name
=
AppFrameworkInfo.plist
;
path
=
Flutter/AppFrameworkInfo.plist
;
sourceTree
=
"<group>"
;
};
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.xcconfig
;
name
=
Flutter.xcconfig
;
path
=
Flutter/Flutter.xcconfig
;
sourceTree
=
"<group>"
;
};
...
...
@@ -66,6 +68,7 @@
children
=
(
746232551E83B9DF00CC1A5E
/* AppFrameworkInfo.plist */
,
746232521E83B71900CC1A5E
/* App.framework */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Flutter.xcconfig */
,
9740EEB31CF90195004384FC
/* Generated.xcconfig */
,
...
...
@@ -173,6 +176,7 @@
746232561E83B9DF00CC1A5E
/* AppFrameworkInfo.plist in Resources */
,
9740EEB41CF90195004384FC
/* Flutter.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
...
...
dev/benchmarks/macrobenchmarks/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2
/* GeneratedPluginRegistrant.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
1498D2331E8E89220040F4C2
/* GeneratedPluginRegistrant.m */
;
};
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
;
};
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
;
};
3B80C3941E831B6300D905FE
/* App.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B80C3931E831B6300D905FE
/* App.framework */
;
};
3B80C3951E831B6300D905FE
/* App.framework in Embed Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
3B80C3931E831B6300D905FE
/* App.framework */
;
settings
=
{
ATTRIBUTES
=
(
CodeSignOnCopy
,
RemoveHeadersOnCopy
,
);
};
};
...
...
@@ -39,6 +40,7 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2
/* GeneratedPluginRegistrant.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
GeneratedPluginRegistrant.h
;
sourceTree
=
"<group>"
;
};
1498D2331E8E89220040F4C2
/* GeneratedPluginRegistrant.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
GeneratedPluginRegistrant.m
;
sourceTree
=
"<group>"
;
};
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
folder
;
name
=
flutter_assets
;
path
=
Flutter/flutter_assets
;
sourceTree
=
SOURCE_ROOT
;
};
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
text.plist.xml
;
name
=
AppFrameworkInfo.plist
;
path
=
Flutter/AppFrameworkInfo.plist
;
sourceTree
=
"<group>"
;
};
3B80C3931E831B6300D905FE
/* App.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
App.framework
;
path
=
Flutter/App.framework
;
sourceTree
=
"<group>"
;
};
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
text.xcconfig
;
name
=
Release.xcconfig
;
path
=
Flutter/Release.xcconfig
;
sourceTree
=
"<group>"
;
};
...
...
@@ -71,6 +73,7 @@
9740EEB11CF90186004384FC
/* Flutter */
=
{
isa
=
PBXGroup
;
children
=
(
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
...
...
@@ -187,6 +190,7 @@
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
...
...
dev/benchmarks/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -66,6 +66,7 @@
9740EEB11CF90186004384FC
/* Flutter */
=
{
isa
=
PBXGroup
;
children
=
(
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
7462325C1E83C18C00CC1A5E
/* AppFrameworkInfo.plist */
,
746232571E83C0C200CC1A5E
/* App.framework */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
...
...
@@ -171,6 +172,7 @@
isa
=
PBXResourcesBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
7462325D1E83C18C00CC1A5E
/* AppFrameworkInfo.plist in Resources */
,
9740EEB41CF90195004384FC
/* Flutter.xcconfig in Resources */
,
...
...
dev/integration_tests/android_views/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -74,6 +74,7 @@
9740EEB11CF90186004384FC
/* Flutter */
=
{
isa
=
PBXGroup
;
children
=
(
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
...
...
@@ -190,6 +191,7 @@
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
...
...
dev/integration_tests/channels/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -75,6 +75,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -186,6 +187,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -70,6 +70,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -178,6 +179,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
);
...
...
dev/integration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -75,6 +75,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -186,6 +187,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
dev/integration_tests/ios_host_app/Host.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -121,6 +121,7 @@
isa
=
PBXGroup
;
children
=
(
74F978AC215AD6E8005A0F04
/* App.framework */
,
74F978AA215AD6DC005A0F04
/* flutter_assets */
,
);
path
=
Flutter
;
sourceTree
=
"<group>"
;
...
...
@@ -195,6 +196,7 @@
files
=
(
74F97871215AB9E9005A0F04
/* LaunchScreen.storyboard in Resources */
,
74F9786E215AB9E9005A0F04
/* Assets.xcassets in Resources */
,
74F978AB215AD6DC005A0F04
/* flutter_assets in Resources */
,
74F9786C215AB9E8005A0F04
/* Main.storyboard in Resources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
...
...
dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -78,6 +78,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -191,6 +192,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
dev/integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -73,6 +73,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -191,6 +192,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
);
...
...
dev/manual_tests/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -75,6 +75,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -194,6 +195,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/catalog/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -82,6 +82,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -202,6 +203,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -78,6 +78,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -208,6 +209,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/flutter_view/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -88,6 +88,7 @@
9740EEB11CF90186004384FC
/* Flutter */
=
{
isa
=
PBXGroup
;
children
=
(
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
3B3967011E83382E004F5970
/* App.framework */
,
3B3967041E83383D004F5970
/* AppFrameworkInfo.plist */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
...
...
@@ -217,6 +218,7 @@
buildActionMask
=
2147483647
;
files
=
(
2DD8945F1E5B87AF0010574F
/* ic_add.png in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967051E83383D004F5970
/* AppFrameworkInfo.plist in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
...
...
examples/hello_world/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -75,6 +75,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -194,6 +195,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/layers/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -75,6 +75,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -186,6 +187,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/platform_channel/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -75,6 +75,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -194,6 +195,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/platform_channel_swift/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -73,6 +73,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -192,6 +193,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/platform_view/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -90,6 +90,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -217,6 +218,7 @@
2DAF064E1ED4224F00716BEE
/* ic_add.png in Resources */
,
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
examples/stocks/ios/Runner.xcodeproj/project.pbxproj
View file @
4c99958d
...
...
@@ -75,6 +75,7 @@
children
=
(
3B80C3931E831B6300D905FE
/* App.framework */
,
3B3967151E833CAA004F5970
/* AppFrameworkInfo.plist */
,
2D5378251FAA1A9400D5DBA9
/* flutter_assets */
,
9740EEBA1CF902C7004384FC
/* Flutter.framework */
,
9740EEB21CF90195004384FC
/* Debug.xcconfig */
,
7AFA3C8E1D35360C0083082E
/* Release.xcconfig */
,
...
...
@@ -194,6 +195,7 @@
files
=
(
97C147011CF9000F007C117D
/* LaunchScreen.storyboard in Resources */
,
3B3967161E833CAA004F5970
/* AppFrameworkInfo.plist in Resources */
,
2D5378261FAA1A9400D5DBA9
/* flutter_assets in Resources */
,
9740EEB41CF90195004384FC
/* Debug.xcconfig in Resources */
,
97C146FE1CF9000F007C117D
/* Assets.xcassets in Resources */
,
97C146FC1CF9000F007C117D
/* Main.storyboard in Resources */
,
...
...
packages/flutter_tools/bin/xcode_backend.sh
View file @
4c99958d
...
...
@@ -242,7 +242,7 @@ BuildApp() {
--target
=
"
${
target_path
}
"
\
--
${
build_mode
}
\
--depfile
=
"
${
build_dir
}
/snapshot_blob.bin.d"
\
--asset-dir
=
"
${
derived_dir
}
/
App.framework/flutter_assets"
\
--asset-dir
=
"
${
derived_dir
}
/
flutter_assets"
\
${
precompilation_flag
}
\
${
local_engine_flag
}
\
${
track_widget_creation_flag
}
...
...
@@ -348,6 +348,10 @@ EmbedFlutterFrameworks() {
AssertExists
"
${
flutter_ios_out_folder
}
"
# Copy the flutter_assets to the Application's resources.
AssertExists
"
${
CONFIGURATION_BUILD_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
/"
RunCommand
cp
-r
--
"
${
flutter_ios_out_folder
}
/flutter_assets"
"
${
CONFIGURATION_BUILD_DIR
}
/
${
UNLOCALIZED_RESOURCES_FOLDER_PATH
}
/"
# Embed App.framework from Flutter into the app (after creating the Frameworks directory
# if it doesn't already exist).
local
xcode_frameworks_dir
=
${
BUILT_PRODUCTS_DIR
}
"/"
${
PRODUCT_NAME
}
".app/Frameworks"
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
4c99958d
...
...
@@ -719,19 +719,58 @@ Future<bool> upgradePbxProjWithFlutterAssets(IosProject project) async {
assert
(
await
xcodeProjectFile
.
exists
());
final
List
<
String
>
lines
=
await
xcodeProjectFile
.
readAsLines
();
final
RegExp
oldAssets
=
RegExp
(
r'\/\* (flutter_assets|app\.flx)'
);
final
StringBuffer
buffer
=
StringBuffer
();
final
Set
<
String
>
printedStatuses
=
Set
<
String
>();
if
(
lines
.
any
((
String
line
)
=>
line
.
contains
(
'flutter_assets in Resources'
)))
return
true
;
const
String
l1
=
' 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };'
;
const
String
l2
=
' 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };'
;
const
String
l3
=
' 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };'
;
const
String
l4
=
' 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };'
;
const
String
l5
=
' 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,'
;
const
String
l6
=
' 2D5378251FAA1A9400D5DBA9 /* flutter_assets */,'
;
const
String
l7
=
' 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,'
;
const
String
l8
=
' 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,'
;
printStatus
(
"Upgrading project.pbxproj of
${project.hostAppBundleName}
' to include the "
"'flutter_assets' directory"
);
if
(!
lines
.
contains
(
l1
)
||
!
lines
.
contains
(
l3
)
||
!
lines
.
contains
(
l5
)
||
!
lines
.
contains
(
l7
))
{
printError
(
'Automatic upgrade of project.pbxproj failed.'
);
printError
(
' To manually upgrade, open
${xcodeProjectFile.path}
:'
);
printError
(
' Add the following line in the "PBXBuildFile" section'
);
printError
(
l2
);
printError
(
' Add the following line in the "PBXFileReference" section'
);
printError
(
l4
);
printError
(
' Add the following line in the "children" list of the "Flutter" group in the "PBXGroup" section'
);
printError
(
l6
);
printError
(
' Add the following line in the "files" list of "Resources" in the "PBXResourcesBuildPhase" section'
);
printError
(
l8
);
return
false
;
}
for
(
final
String
line
in
lines
)
{
final
Match
match
=
oldAssets
.
firstMatch
(
line
);
if
(
match
!=
null
)
{
if
(
printedStatuses
.
add
(
match
.
group
(
1
)))
printStatus
(
'Removing obsolete reference to
${match.group(1)}
from
${project.hostAppBundleName}
'
);
continue
;
}
buffer
.
writeln
(
line
);
lines
.
insert
(
lines
.
indexOf
(
l1
)
+
1
,
l2
);
lines
.
insert
(
lines
.
indexOf
(
l3
)
+
1
,
l4
);
lines
.
insert
(
lines
.
indexOf
(
l5
)
+
1
,
l6
);
lines
.
insert
(
lines
.
indexOf
(
l7
)
+
1
,
l8
);
const
String
l9
=
' 9740EEBB1CF902C7004384FC /* app.flx in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB71CF902C7004384FC /* app.flx */; };'
;
const
String
l10
=
' 9740EEB71CF902C7004384FC /* app.flx */ = {isa = PBXFileReference; lastKnownFileType = file; name = app.flx; path = Flutter/app.flx; sourceTree = "<group>"; };'
;
const
String
l11
=
' 9740EEB71CF902C7004384FC /* app.flx */,'
;
const
String
l12
=
' 9740EEBB1CF902C7004384FC /* app.flx in Resources */,'
;
if
(
lines
.
contains
(
l9
))
{
printStatus
(
'Removing app.flx from project.pbxproj since it has been '
'replaced with flutter_assets.'
);
lines
.
remove
(
l9
);
lines
.
remove
(
l10
);
lines
.
remove
(
l11
);
lines
.
remove
(
l12
);
}
final
StringBuffer
buffer
=
StringBuffer
();
lines
.
forEach
(
buffer
.
writeln
);
await
xcodeProjectFile
.
writeAsString
(
buffer
.
toString
());
return
true
;
}
packages/flutter_tools/templates/app/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
4c99958d
...
...
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
...
...
@@ -39,6 +40,7 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
...
...
@@ -71,6 +73,7 @@
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
3B80C3931E831B6300D905FE /* App.framework */,
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEBA1CF902C7004384FC /* Flutter.framework */,
...
...
@@ -187,6 +190,7 @@
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
...
...
packages/flutter_tools/templates/app/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
4c99958d
...
...
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
...
...
@@ -38,6 +39,7 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
...
...
@@ -69,6 +71,7 @@
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
3B80C3931E831B6300D905FE /* App.framework */,
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEBA1CF902C7004384FC /* Flutter.framework */,
...
...
@@ -184,6 +187,7 @@
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
...
...
packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/project.pbxproj.tmpl
View file @
4c99958d
...
...
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
741F496221355F47001E2961 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 741F495E21355F27001E2961 /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
741F496821356857001E2961 /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 741F496521356807001E2961 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
74974048213559DB008C567A /* Release.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 74974046213559DB008C567A /* Release.xcconfig */; };
...
...
@@ -35,6 +36,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = ../.ios/Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
741F495E21355F27001E2961 /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = ../.ios/Flutter/engine/Flutter.framework; sourceTree = "<group>"; };
741F496521356807001E2961 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = ../.ios/Flutter/App.framework; sourceTree = "<group>"; };
74974046213559DB008C567A /* Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
...
...
@@ -77,6 +79,7 @@
children = (
741F496521356807001E2961 /* App.framework */,
741F495E21355F27001E2961 /* Flutter.framework */,
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
9740EEB31CF90195004384FC /* Generated.xcconfig */,
);
name = Flutter;
...
...
@@ -187,6 +190,7 @@
74974048213559DB008C567A /* Release.xcconfig in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
7497404B213559E7008C567A /* Flutter.xcconfig in Resources */,
2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
...
...
packages/flutter_tools/test/ios/mac_test.dart
View file @
4c99958d
...
...
@@ -10,7 +10,6 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:flutter_tools/src/base/io.dart'
show
ProcessException
,
ProcessResult
;
import
'package:flutter_tools/src/ios/mac.dart'
;
import
'package:flutter_tools/src/ios/xcodeproj.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:mockito/mockito.dart'
;
import
'package:platform/platform.dart'
;
import
'package:process/process.dart'
;
...
...
@@ -26,7 +25,6 @@ final Map<Type, Generator> noColorTerminalOverride = <Type, Generator>{
class
MockProcessManager
extends
Mock
implements
ProcessManager
{}
class
MockFile
extends
Mock
implements
File
{}
class
MockXcodeProjectInterpreter
extends
Mock
implements
XcodeProjectInterpreter
{}
class
MockIosProject
extends
Mock
implements
IosProject
{}
void
main
(
)
{
group
(
'PropertyList'
,
()
{
...
...
@@ -437,62 +435,4 @@ Could not build the precompiled application for the device.''',
);
}, overrides: noColorTerminalOverride);
});
group('
Upgrades
project
.
pbxproj
for
old
asset
usage
', () {
const List<String> flutterAssetPbxProjLines = <String>[
'
/* flutter_assets */
',
'
/*
App
.
framework
',
'
another
line
'
];
const List<String> appFlxPbxProjLines = <String>[
'
/*
app
.
flx
',
'
/*
App
.
framework
',
'
another
line
',
];
const List<String> cleanPbxProjLines = <String>[
'
/*
App
.
framework
',
'
another
line
',
];
testUsingContext('
upgradePbxProjWithFlutterAssets
', () async {
final MockIosProject project = MockIosProject();
final MockFile pbxprojFile = MockFile();
when(project.xcodeProjectInfoFile).thenReturn(pbxprojFile);
when(project.hostAppBundleName).thenReturn('
UnitTestRunner
.
app
');
when(pbxprojFile.readAsLines())
.thenAnswer((_) => Future<List<String>>.value(flutterAssetPbxProjLines));
when(pbxprojFile.exists())
.thenAnswer((_) => Future<bool>.value(true));
bool result = await upgradePbxProjWithFlutterAssets(project);
expect(result, true);
expect(
testLogger.statusText,
contains('
Removing
obsolete
reference
to
flutter_assets
'),
);
testLogger.clear();
when(pbxprojFile.readAsLines())
.thenAnswer((_) => Future<List<String>>.value(appFlxPbxProjLines));
result = await upgradePbxProjWithFlutterAssets(project);
expect(result, true);
expect(
testLogger.statusText,
contains('
Removing
obsolete
reference
to
app
.
flx
'),
);
testLogger.clear();
when(pbxprojFile.readAsLines())
.thenAnswer((_) => Future<List<String>>.value(cleanPbxProjLines));
result = await upgradePbxProjWithFlutterAssets(project);
expect(result, true);
expect(
testLogger.statusText,
isEmpty,
);
});
});
}
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