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
cf4ef28b
Unverified
Commit
cf4ef28b
authored
Feb 28, 2023
by
Flutter GitHub Bot
Committed by
GitHub
Feb 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Roll pub packages (#121569)
Roll pub packages
parent
df66fecd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
96 deletions
+3
-96
devfs_web.dart
packages/flutter_tools/lib/src/isolated/devfs_web.dart
+1
-4
sdk_web_configuration.dart
...flutter_tools/lib/src/isolated/sdk_web_configuration.dart
+0
-47
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+2
-2
sdk_web_configuration_test.dart
...tter_tools/test/web.shard/sdk_web_configuration_test.dart
+0
-43
No files found.
packages/flutter_tools/lib/src/isolated/devfs_web.dart
View file @
cf4ef28b
...
...
@@ -42,7 +42,6 @@ import '../web/chrome.dart';
import
'../web/compile.dart'
;
import
'../web/file_generators/flutter_js.dart'
as
flutter_js
;
import
'../web/memory_fs.dart'
;
import
'sdk_web_configuration.dart'
;
typedef
DwdsLauncher
=
Future
<
Dwds
>
Function
({
required
AssetReader
assetReader
,
...
...
@@ -61,10 +60,9 @@ typedef DwdsLauncher = Future<Dwds> Function({
bool
enableDevtoolsLaunch
,
DevtoolsLauncher
?
devtoolsLauncher
,
bool
launchDevToolsInNewWindow
,
SdkConfigurationProvider
sdkConfigurationProvider
,
bool
emitDebugEvents
,
bool
isInternalBuild
,
bool
isFlutterApp
,
Future
<
bool
>
Function
()?
isFlutterApp
,
});
// A minimal index for projects that do not yet support web.
...
...
@@ -301,7 +299,6 @@ class WebAssetServer implements AssetReader {
).
strategy
,
expressionCompiler:
expressionCompiler
,
spawnDds:
enableDds
,
sdkConfigurationProvider:
SdkWebConfigurationProvider
(
globals
.
artifacts
!),
);
shelf
.
Pipeline
pipeline
=
const
shelf
.
Pipeline
();
if
(
enableDwds
)
{
...
...
packages/flutter_tools/lib/src/isolated/sdk_web_configuration.dart
deleted
100644 → 0
View file @
df66fecd
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:async'
;
// ignore: import_of_legacy_library_into_null_safe
import
'package:dwds/dwds.dart'
;
import
'../artifacts.dart'
;
import
'../base/file_system.dart'
;
/// Provides paths to SDK files for dart SDK used in flutter.
class
SdkWebConfigurationProvider
extends
SdkConfigurationProvider
{
SdkWebConfigurationProvider
(
this
.
_artifacts
);
final
Artifacts
_artifacts
;
SdkConfiguration
?
_configuration
;
/// Create and validate configuration matching the default SDK layout.
/// Create configuration matching the default SDK layout.
@override
Future
<
SdkConfiguration
>
get
configuration
async
{
if
(
_configuration
==
null
)
{
final
String
sdkDir
=
_artifacts
.
getHostArtifact
(
HostArtifact
.
flutterWebSdk
).
path
;
final
String
weakSdkSummaryPath
=
_artifacts
.
getHostArtifact
(
HostArtifact
.
webPlatformDDCKernelDill
).
path
;
final
String
soundSdkSummaryPath
=
_artifacts
.
getHostArtifact
(
HostArtifact
.
webPlatformDDCSoundKernelDill
).
path
;
final
String
librariesPath
=
_artifacts
.
getHostArtifact
(
HostArtifact
.
flutterWebLibrariesJson
).
path
;
_configuration
=
SdkConfiguration
(
sdkDirectory:
sdkDir
,
weakSdkSummaryPath:
weakSdkSummaryPath
,
soundSdkSummaryPath:
soundSdkSummaryPath
,
librariesPath:
librariesPath
,
);
}
return
_configuration
!;
}
/// Validate that SDK configuration exists on disk.
static
void
validate
(
SdkConfiguration
configuration
,
{
required
FileSystem
fileSystem
})
{
configuration
.
validateSdkDir
(
fileSystem:
fileSystem
);
configuration
.
validateSummaries
(
fileSystem:
fileSystem
);
configuration
.
validateLibrariesSpec
(
fileSystem:
fileSystem
);
}
}
packages/flutter_tools/pubspec.yaml
View file @
cf4ef28b
...
...
@@ -11,7 +11,7 @@ dependencies:
args
:
2.4.0
browser_launcher
:
1.1.1
dds
:
2.7.5
dwds
:
1
7
.0.0
dwds
:
1
8
.0.0
completion
:
1.0.1
coverage
:
1.6.3
crypto
:
3.0.2
...
...
@@ -104,4 +104,4 @@ dartdoc:
# Exclude this package from the hosted API docs.
nodoc
:
true
# PUBSPEC CHECKSUM:
f5e3
# PUBSPEC CHECKSUM:
73e4
packages/flutter_tools/test/web.shard/sdk_web_configuration_test.dart
deleted
100644 → 0
View file @
df66fecd
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:dwds/dwds.dart'
;
import
'package:file/file.dart'
;
import
'package:file/memory.dart'
;
import
'package:flutter_tools/src/artifacts.dart'
;
import
'package:flutter_tools/src/isolated/sdk_web_configuration.dart'
;
import
'../src/common.dart'
;
void
main
(
)
{
late
FileSystem
fileSystem
;
group
(
'Flutter SDK configuration for web'
,
()
{
late
SdkConfiguration
configuration
;
setUp
(()
async
{
fileSystem
=
MemoryFileSystem
.
test
();
fileSystem
.
directory
(
'HostArtifact.flutterWebSdk'
).
createSync
();
fileSystem
.
file
(
'HostArtifact.webPlatformDDCKernelDill'
).
createSync
();
fileSystem
.
file
(
'HostArtifact.webPlatformDDCSoundKernelDill'
).
createSync
();
fileSystem
.
file
(
'HostArtifact.flutterWebLibrariesJson'
).
createSync
();
final
SdkWebConfigurationProvider
provider
=
SdkWebConfigurationProvider
(
Artifacts
.
test
(
fileSystem:
fileSystem
));
configuration
=
await
provider
.
configuration
;
});
testWithoutContext
(
'can be validated'
,
()
{
SdkWebConfigurationProvider
.
validate
(
configuration
,
fileSystem:
fileSystem
);
});
testWithoutContext
(
'is correct'
,
()
{
expect
(
configuration
.
sdkDirectory
,
'HostArtifact.flutterWebSdk'
);
expect
(
configuration
.
weakSdkSummaryPath
,
'HostArtifact.webPlatformDDCKernelDill'
);
expect
(
configuration
.
soundSdkSummaryPath
,
'HostArtifact.webPlatformDDCSoundKernelDill'
);
expect
(
configuration
.
librariesPath
,
'HostArtifact.flutterWebLibrariesJson'
);
expect
(
configuration
.
compilerWorkerPath
,
isNull
);
});
});
}
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