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
50f3e47b
Unverified
Commit
50f3e47b
authored
Mar 22, 2022
by
Jesús S Guerrero
Committed by
GitHub
Mar 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[flutter_tools] remove pub dependencies from universal #97722" (#100508)
parent
e260b5d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
flutter_cache.dart
packages/flutter_tools/lib/src/flutter_cache.dart
+1
-1
cache_test.dart
packages/flutter_tools/test/general.shard/cache_test.dart
+13
-11
No files found.
packages/flutter_tools/lib/src/flutter_cache.dart
View file @
50f3e47b
...
...
@@ -74,7 +74,7 @@ class PubDependencies extends ArtifactSet {
})
:
_logger
=
logger
,
_flutterRoot
=
flutterRoot
,
_pub
=
pub
,
super
(
DevelopmentArtifact
.
web
);
super
(
DevelopmentArtifact
.
universal
);
final
String
Function
()
_flutterRoot
;
final
Logger
_logger
;
...
...
packages/flutter_tools/test/general.shard/cache_test.dart
View file @
50f3e47b
...
...
@@ -319,17 +319,6 @@ void main() {
expect
(()
=>
cache
.
storageBaseUrl
,
throwsToolExit
());
});
testWithoutContext
(
'PubDependencies should be registered as web based'
,
()
async
{
final
BufferLogger
logger
=
BufferLogger
.
test
();
final
PubDependencies
pubDependencies
=
PubDependencies
(
flutterRoot:
()
=>
''
,
logger:
logger
,
pub:
()
=>
FakePub
(),
);
expect
(
pubDependencies
.
developmentArtifact
,
DevelopmentArtifact
.
web
);
});
});
testWithoutContext
(
'flattenNameSubdirs'
,
()
{
...
...
@@ -1087,6 +1076,19 @@ class FakeSimpleArtifact extends CachedArtifact {
Future
<
void
>
updateInner
(
ArtifactUpdater
artifactUpdater
,
FileSystem
fileSystem
,
OperatingSystemUtils
operatingSystemUtils
)
async
{
}
}
class
FakeDownloadedArtifact
extends
CachedArtifact
{
FakeDownloadedArtifact
(
this
.
downloadedFile
,
Cache
cache
)
:
super
(
'fake'
,
cache
,
DevelopmentArtifact
.
universal
,
);
final
File
downloadedFile
;
@override
Future
<
void
>
updateInner
(
ArtifactUpdater
artifactUpdater
,
FileSystem
fileSystem
,
OperatingSystemUtils
operatingSystemUtils
)
async
{
}
}
class
FakeSecondaryCachedArtifact
extends
Fake
implements
CachedArtifact
{
bool
upToDate
=
false
;
bool
didUpdate
=
false
;
...
...
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