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
3af6b9cb
Unverified
Commit
3af6b9cb
authored
Dec 13, 2017
by
Sarah Zakarias
Committed by
GitHub
Dec 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include a directory with Flutter assets (#12944)
parent
1c6decaa
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
17 deletions
+24
-17
engine.version
bin/internal/engine.version
+1
-1
image_resolution.dart
packages/flutter/lib/src/painting/image_resolution.dart
+0
-2
service_extensions_test_file
packages/flutter/test/service_extensions_test_file
+0
-0
xcode_backend.sh
packages/flutter_tools/bin/xcode_backend.sh
+1
-1
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+12
-11
build_info.dart
packages/flutter_tools/lib/src/build_info.dart
+1
-1
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+1
-1
project.pbxproj.tmpl
...reate/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+4
-0
project.pbxproj.tmpl
...eate/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+4
-0
No files found.
bin/internal/engine.version
View file @
3af6b9cb
e07eafae1d14b454c33b1ae68d14b7a5694c22b6
f04c5715ce082e32dc3e387c1ccd34815e16ec1c
packages/flutter/lib/src/painting/image_resolution.dart
View file @
3af6b9cb
...
...
@@ -152,8 +152,6 @@ class AssetImage extends AssetBundleImageProvider {
/// documentation for the [AssetImage] class itself for details.
final
String
package
;
// We assume the main asset is designed for a device pixel ratio of 1.0
static
const
double
_naturalResolution
=
1.0
;
...
...
packages/flutter/test/service_extensions_test_file
0 → 100644
View file @
3af6b9cb
File added
packages/flutter_tools/bin/xcode_backend.sh
View file @
3af6b9cb
...
...
@@ -136,7 +136,7 @@ BuildApp() {
--output-file
=
"
${
derived_dir
}
/app.flx"
\
--snapshot
=
"
${
build_dir
}
/snapshot_blob.bin"
\
--depfile
=
"
${
build_dir
}
/snapshot_blob.bin.d"
\
--working-dir
=
"
${
build_dir
}
/flx"
\
--working-dir
=
"
${
derived_dir
}
/flutter_assets"
\
${
precompilation_flag
}
\
${
local_engine_flag
}
\
${
preview_dart_2_flag
}
\
...
...
packages/flutter_tools/gradle/flutter.gradle
View file @
3af6b9cb
...
...
@@ -410,7 +410,7 @@ abstract class BaseFlutterTask extends DefaultTask {
args
"--depfile"
,
"${intermediateDir}/snapshot_blob.bin.d"
}
}
args
"--working-dir"
,
"${intermediateDir}/fl
x
"
args
"--working-dir"
,
"${intermediateDir}/fl
utter_assets
"
}
}
}
...
...
@@ -433,16 +433,17 @@ class FlutterTask extends BaseFlutterTask {
CopySpec
getAssets
()
{
return
project
.
copySpec
{
from
"${intermediateDir}/app.flx"
from
"${intermediateDir}/snapshot_blob.bin"
from
"${intermediateDir}"
include
"flutter_assets/**"
// the working dir and its files
include
"app.flx"
if
(
buildMode
!=
'debug'
)
{
if
(
preferSharedLibrary
)
{
from
"${intermediateDir}/app.so"
include
"${intermediateDir}/app.so"
}
else
{
from
"${intermediateDir}/
vm_snapshot_data"
from
"${intermediateDir}/
vm_snapshot_instr"
from
"${intermediateDir}/
isolate_snapshot_data"
from
"${intermediateDir}/
isolate_snapshot_instr"
include
"
vm_snapshot_data"
include
"
vm_snapshot_instr"
include
"
isolate_snapshot_data"
include
"
isolate_snapshot_instr"
}
}
}
...
...
packages/flutter_tools/lib/src/build_info.dart
View file @
3af6b9cb
...
...
@@ -202,7 +202,7 @@ String getAotBuildDirectory() {
/// Returns the asset build output directory.
String
getAssetBuildDirectory
(
)
{
return
fs
.
path
.
join
(
getBuildDirectory
(),
'fl
x
'
);
return
fs
.
path
.
join
(
getBuildDirectory
(),
'fl
utter_assets
'
);
}
/// Returns the iOS build output directory.
...
...
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
3af6b9cb
...
...
@@ -321,7 +321,7 @@ class IOSSimulator extends Device {
if
(!
prebuiltApplication
)
{
args
.
addAll
(<
String
>[
'--fl
x=
${fs.path.absolute(fs.path.join(getBuildDirectory(), 'app.flx'
))}
'
,
'--fl
utter-assets-dir=
${fs.path.absolute(getAssetBuildDirectory(
))}
'
,
'--dart-main=
${fs.path.absolute(mainPath)}
'
,
'--packages=
${fs.path.absolute('.packages')}
'
,
]);
...
...
packages/flutter_tools/templates/create/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
3af6b9cb
...
...
@@ -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, ); }; };
...
...
@@ -41,6 +42,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>"; };
...
...
@@ -74,6 +76,7 @@
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
9740EEB71CF902C7004384FC /* app.flx */,
3B80C3931E831B6300D905FE /* App.framework */,
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
...
...
@@ -193,6 +196,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/create/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
3af6b9cb
...
...
@@ -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, ); }; };
...
...
@@ -40,6 +41,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>"; };
...
...
@@ -72,6 +74,7 @@
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
9740EEB71CF902C7004384FC /* app.flx */,
3B80C3931E831B6300D905FE /* App.framework */,
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
...
...
@@ -190,6 +193,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;
...
...
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