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
eae67f05
Unverified
Commit
eae67f05
authored
Apr 30, 2019
by
Keerti Parthasarathy
Committed by
GitHub
Apr 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make const available for classes that override AssetBundle (#31807)
parent
9937d3df
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
fuchsia_asset_builder.dart
packages/flutter_tools/bin/fuchsia_asset_builder.dart
+1
-1
asset.dart
packages/flutter_tools/lib/src/asset.dart
+4
-3
No files found.
packages/flutter_tools/bin/fuchsia_asset_builder.dart
View file @
eae67f05
...
...
@@ -5,7 +5,7 @@
import
'dart:async'
;
import
'package:args/args.dart'
;
import
'package:flutter_tools/src/asset.dart'
;
import
'package:flutter_tools/src/asset.dart'
hide
defaultManifestPath
;
import
'package:flutter_tools/src/base/context.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
as
libfs
;
import
'package:flutter_tools/src/base/io.dart'
;
...
...
packages/flutter_tools/lib/src/asset.dart
View file @
eae67f05
...
...
@@ -20,6 +20,8 @@ import 'globals.dart';
const
AssetBundleFactory
_kManifestFactory
=
_ManifestAssetBundleFactory
();
const
String
defaultManifestPath
=
'pubspec.yaml'
;
/// Injected factory class for spawning [AssetBundle] instances.
abstract
class
AssetBundleFactory
{
/// The singleton instance, pulled from the [AppContext].
...
...
@@ -36,11 +38,11 @@ abstract class AssetBundle {
bool
wasBuiltOnce
();
bool
needsBuild
({
String
manifestPath
=
_ManifestAssetBundle
.
defaultManifestPath
});
bool
needsBuild
({
String
manifestPath
=
defaultManifestPath
});
/// Returns 0 for success; non-zero for failure.
Future
<
int
>
build
({
String
manifestPath
=
_ManifestAssetBundle
.
defaultManifestPath
,
String
manifestPath
=
defaultManifestPath
,
String
assetDirPath
,
String
packagesPath
,
bool
includeDefaultFonts
=
true
,
...
...
@@ -69,7 +71,6 @@ class _ManifestAssetBundle implements AssetBundle {
DateTime
_lastBuildTimestamp
;
static
const
String
defaultManifestPath
=
'pubspec.yaml'
;
static
const
String
_assetManifestJson
=
'AssetManifest.json'
;
static
const
String
_fontManifestJson
=
'FontManifest.json'
;
static
const
String
_fontSetMaterial
=
'material'
;
...
...
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