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
da600bac
Unverified
Commit
da600bac
authored
May 30, 2019
by
Jonah Williams
Committed by
GitHub
May 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reland - Wire up hot restart and incremental rebuilds for web (#33533)
parent
381fec58
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
804 additions
and
117 deletions
+804
-117
pubspec.yaml
dev/automated_tests/pubspec.yaml
+3
-3
pubspec.yaml
dev/benchmarks/complex_layout/pubspec.yaml
+3
-3
pubspec.yaml
dev/benchmarks/macrobenchmarks/pubspec.yaml
+3
-3
pubspec.yaml
dev/benchmarks/microbenchmarks/pubspec.yaml
+4
-4
pubspec.yaml
dev/bots/pubspec.yaml
+3
-3
pubspec.yaml
dev/devicelab/pubspec.yaml
+4
-4
pubspec.yaml
dev/integration_tests/android_semantics_testing/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/android_views/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/channels/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/codegen/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/external_ui/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/flavors/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/image_loading/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/platform_interaction/pubspec.yaml
+3
-3
pubspec.yaml
dev/integration_tests/ui/pubspec.yaml
+4
-4
pubspec.yaml
dev/snippets/pubspec.yaml
+3
-3
pubspec.yaml
examples/catalog/pubspec.yaml
+3
-3
pubspec.yaml
examples/flutter_gallery/pubspec.yaml
+6
-6
pubspec.yaml
examples/platform_channel/pubspec.yaml
+3
-3
pubspec.yaml
examples/platform_channel_swift/pubspec.yaml
+2
-2
pubspec.yaml
examples/stocks/pubspec.yaml
+3
-3
pubspec.yaml
packages/flutter_driver/pubspec.yaml
+2
-2
executable.dart
packages/flutter_tools/lib/executable.dart
+4
-0
artifacts.dart
packages/flutter_tools/lib/src/artifacts.dart
+7
-0
build_runner.dart
...ages/flutter_tools/lib/src/build_runner/build_runner.dart
+3
-1
web_compilation_delegate.dart
..._tools/lib/src/build_runner/web_compilation_delegate.dart
+231
-0
build_web.dart
packages/flutter_tools/lib/src/commands/build_web.dart
+31
-8
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+16
-1
update_packages.dart
packages/flutter_tools/lib/src/commands/update_packages.dart
+1
-0
resident_web_runner.dart
packages/flutter_tools/lib/src/resident_web_runner.dart
+161
-0
asset_server.dart
packages/flutter_tools/lib/src/web/asset_server.dart
+186
-0
compile.dart
packages/flutter_tools/lib/src/web/compile.dart
+42
-10
web_device.dart
packages/flutter_tools/lib/src/web/web_device.dart
+37
-13
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+7
-6
forbidden_imports_test.dart
packages/flutter_tools/test/forbidden_imports_test.dart
+1
-3
compile_test.dart
packages/flutter_tools/test/web/compile_test.dart
+1
-1
devices_test.dart
packages/flutter_tools/test/web/devices_test.dart
+4
-2
pubspec.yaml
packages/fuchsia_remote_debug_protocol/pubspec.yaml
+2
-2
No files found.
dev/automated_tests/pubspec.yaml
View file @
da600bac
...
...
@@ -32,7 +32,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -59,10 +59,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
02c2
# PUBSPEC CHECKSUM:
5cc4
dev/benchmarks/complex_layout/pubspec.yaml
View file @
da600bac
...
...
@@ -35,7 +35,7 @@ dependencies:
typed_data
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies
:
flutter_test
:
...
...
@@ -56,7 +56,7 @@ dev_dependencies:
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -82,4 +82,4 @@ flutter:
-
packages/flutter_gallery_assets/people/square/ali.png
-
packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png
# PUBSPEC CHECKSUM:
9c97
# PUBSPEC CHECKSUM:
f699
dev/benchmarks/macrobenchmarks/pubspec.yaml
View file @
da600bac
...
...
@@ -35,7 +35,7 @@ dependencies:
typed_data
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies
:
flutter_test
:
...
...
@@ -56,7 +56,7 @@ dev_dependencies:
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -79,4 +79,4 @@ dev_dependencies:
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
9c97
# PUBSPEC CHECKSUM:
f699
dev/benchmarks/microbenchmarks/pubspec.yaml
View file @
da600bac
...
...
@@ -32,14 +32,14 @@ dependencies:
http_multi_server
:
2.0.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
http_parser
:
3.1.3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
intl
:
0.15.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
intl_translation
:
0.17.
4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
intl_translation
:
0.17.
5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
io
:
0.3.3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
isolate
:
2.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
json_rpc_2
:
2.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -67,10 +67,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
1a24
# PUBSPEC CHECKSUM:
ce27
dev/bots/pubspec.yaml
View file @
da600bac
...
...
@@ -37,7 +37,7 @@ dependencies:
json_rpc_2
:
2.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -60,11 +60,11 @@ dependencies:
typed_data
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies
:
mockito
:
4.0.0
test_api
:
0.2.5
# PUBSPEC CHECKSUM:
0d9b
# PUBSPEC CHECKSUM:
7f9d
dev/devicelab/pubspec.yaml
View file @
da600bac
...
...
@@ -10,7 +10,7 @@ environment:
dependencies
:
args
:
1.5.1
file
:
5.0.8
image
:
2.1.
0
image
:
2.1.
3
meta
:
1.1.6
path
:
1.6.2
platform
:
2.2.0
...
...
@@ -34,7 +34,7 @@ dependencies:
stream_channel
:
2.0.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
term_glyph
:
1.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
typed_data
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
xml
:
3.5.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies
:
...
...
@@ -54,7 +54,7 @@ dev_dependencies:
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -73,4 +73,4 @@ dev_dependencies:
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM:
e013
# PUBSPEC CHECKSUM:
b018
dev/integration_tests/android_semantics_testing/pubspec.yaml
View file @
da600bac
...
...
@@ -31,7 +31,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -57,10 +57,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
960c
# PUBSPEC CHECKSUM:
d60e
dev/integration_tests/android_views/pubspec.yaml
View file @
da600bac
...
...
@@ -32,7 +32,7 @@ dependencies:
typed_data
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies
:
flutter_test
:
...
...
@@ -53,7 +53,7 @@ dev_dependencies:
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -76,4 +76,4 @@ dev_dependencies:
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
8dbc
# PUBSPEC CHECKSUM:
10be
dev/integration_tests/channels/pubspec.yaml
View file @
da600bac
...
...
@@ -35,7 +35,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -61,10 +61,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
960c
# PUBSPEC CHECKSUM:
d60e
dev/integration_tests/codegen/pubspec.yaml
View file @
da600bac
...
...
@@ -29,7 +29,7 @@ dependencies:
typed_data
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies
:
test
:
1.6.3
...
...
@@ -48,7 +48,7 @@ dev_dependencies:
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -74,4 +74,4 @@ builders:
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
960c
# PUBSPEC CHECKSUM:
d60e
dev/integration_tests/external_ui/pubspec.yaml
View file @
da600bac
...
...
@@ -35,7 +35,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -61,10 +61,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
960c
# PUBSPEC CHECKSUM:
d60e
dev/integration_tests/flavors/pubspec.yaml
View file @
da600bac
...
...
@@ -35,7 +35,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -61,10 +61,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
960c
# PUBSPEC CHECKSUM:
d60e
dev/integration_tests/image_loading/pubspec.yaml
View file @
da600bac
...
...
@@ -28,7 +28,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -54,10 +54,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
631c
# PUBSPEC CHECKSUM:
bf1e
dev/integration_tests/platform_interaction/pubspec.yaml
View file @
da600bac
...
...
@@ -35,7 +35,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -61,10 +61,10 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
960c
# PUBSPEC CHECKSUM:
d60e
dev/integration_tests/ui/pubspec.yaml
View file @
da600bac
...
...
@@ -6,7 +6,7 @@ environment:
sdk
:
"
>=2.0.0-dev.68.0
<3.0.0"
dependencies
:
image
:
2.1.
0
image
:
2.1.
3
flutter
:
sdk
:
flutter
flutter_driver
:
...
...
@@ -37,7 +37,7 @@ dependencies:
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
meta
:
1.1.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -63,7 +63,7 @@ dependencies:
vector_math
:
2.0.8
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
xml
:
3.5.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -77,4 +77,4 @@ dev_dependencies:
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
a123
# PUBSPEC CHECKSUM:
1b28
dev/snippets/pubspec.yaml
View file @
da600bac
...
...
@@ -50,7 +50,7 @@ dev_dependencies:
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
json_rpc_2
:
2.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_resolver
:
1.0.10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -67,7 +67,7 @@ dev_dependencies:
test_api
:
0.2.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
test_core
:
0.2.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
executables
:
snippets
:
null
...
...
@@ -98,4 +98,4 @@ executables:
vm_service_client
:
0.2.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.9
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM:
312a
# PUBSPEC CHECKSUM:
6b2c
examples/catalog/pubspec.yaml
View file @
da600bac
...
...
@@ -43,7 +43,7 @@ dev_dependencies:
json_rpc_2
:
2.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -67,10 +67,10 @@ dev_dependencies:
test_core
:
0.2.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
05f6
# PUBSPEC CHECKSUM:
5ff8
examples/flutter_gallery/pubspec.yaml
View file @
da600bac
...
...
@@ -8,13 +8,13 @@ dependencies:
flutter
:
sdk
:
flutter
collection
:
1.14.11
device_info
:
0.4.0+
1
device_info
:
0.4.0+
2
intl
:
0.15.8
connectivity
:
0.4.3+
1
connectivity
:
0.4.3+
2
string_scanner
:
1.0.4
url_launcher
:
5.0.2
cupertino_icons
:
0.1.2
video_player
:
0.10.1
video_player
:
0.10.1
+2
scoped_model
:
1.0.1
shrine_images
:
1.1.2
...
...
@@ -57,7 +57,7 @@ dev_dependencies:
json_rpc_2
:
2.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -80,7 +80,7 @@ dev_dependencies:
test_core
:
0.2.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
...
...
@@ -253,4 +253,4 @@ flutter:
-
asset
:
packages/flutter_gallery_assets/fonts/merriweather/Merriweather-Regular.ttf
-
asset
:
packages/flutter_gallery_assets/fonts/merriweather/Merriweather-Light.ttf
# PUBSPEC CHECKSUM:
a9fe
# PUBSPEC CHECKSUM:
8760
examples/platform_channel/pubspec.yaml
View file @
da600bac
...
...
@@ -41,7 +41,7 @@ dev_dependencies:
json_rpc_2
:
2.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
matcher
:
0.12.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
package_config
:
1.0.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -66,10 +66,10 @@ dev_dependencies:
test_core
:
0.2.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
watcher
:
0.9.7+10
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml
:
2.1.15
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
05f6
# PUBSPEC CHECKSUM:
5ff8
examples/platform_channel_swift/pubspec.yaml
View file @
da600bac
...
...
@@ -39,9 +39,9 @@ dev_dependencies:
term_glyph
:
1.1.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
test_api
:
0.2.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM: c
a3f
# PUBSPEC CHECKSUM: c
b40
examples/stocks/pubspec.yaml
View file @
da600bac
...
...
@@ -10,7 +10,7 @@ dependencies:
flutter_localizations
:
sdk
:
flutter
intl
:
0.15.8
intl_translation
:
0.17.
4
intl_translation
:
0.17.
5
http
:
0.12.0+2
isolate
:
2.0.2
...
...
@@ -57,9 +57,9 @@ dev_dependencies:
stream_channel
:
2.0.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
test_api
:
0.2.5
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
vm_service_client
:
0.2.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel
:
1.0.1
3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
flutter
:
uses-material-design
:
true
# PUBSPEC CHECKSUM:
36b5
# PUBSPEC CHECKSUM:
63b7
packages/flutter_driver/pubspec.yaml
View file @
da600bac
...
...
@@ -12,7 +12,7 @@ dependencies:
json_rpc_2
:
2.1.0
meta
:
1.1.6
path
:
1.6.2
web_socket_channel
:
1.0.1
2
web_socket_channel
:
1.0.1
3
vm_service_client
:
0.2.6+2
flutter
:
sdk
:
flutter
...
...
@@ -46,4 +46,4 @@ dev_dependencies:
mockito
:
4.0.0
quiver
:
2.0.3
# PUBSPEC CHECKSUM: b
38c
# PUBSPEC CHECKSUM: b
48d
packages/flutter_tools/lib/executable.dart
View file @
da600bac
...
...
@@ -10,6 +10,8 @@ import 'src/base/context.dart';
// avoid introducing the dependency into google3. Not all build* packages
// are synced internally.
import
'src/build_runner/build_runner.dart'
;
import
'src/build_runner/web_compilation_delegate.dart'
;
import
'src/codegen.dart'
;
import
'src/commands/analyze.dart'
;
import
'src/commands/attach.dart'
;
...
...
@@ -42,6 +44,7 @@ import 'src/commands/update_packages.dart';
import
'src/commands/upgrade.dart'
;
import
'src/commands/version.dart'
;
import
'src/runner/flutter_command.dart'
;
import
'src/web/compile.dart'
;
/// Main entry point for commands.
///
...
...
@@ -94,5 +97,6 @@ Future<void> main(List<String> args) async {
// The build runner instance is not supported in google3 because
// the build runner packages are not synced internally.
CodeGenerator:
()
=>
const
BuildRunner
(),
WebCompilationProxy:
()
=>
BuildRunnerWebCompilationProxy
(),
});
}
packages/flutter_tools/lib/src/artifacts.dart
View file @
da600bac
...
...
@@ -28,6 +28,7 @@ enum Artifact {
engineDartSdkPath
,
engineDartBinary
,
dart2jsSnapshot
,
dartdevcSnapshot
,
kernelWorkerSnapshot
,
flutterWebSdk
,
}
...
...
@@ -80,6 +81,8 @@ String _artifactToFileName(Artifact artifact, [ TargetPlatform platform, BuildMo
return
'dart'
;
case
Artifact
.
dart2jsSnapshot
:
return
'dart2js.dart.snapshot'
;
case
Artifact
.
dartdevcSnapshot
:
return
'dartdevc.dart.snapshot'
;
case
Artifact
.
kernelWorkerSnapshot
:
return
'kernel_worker.dart.snapshot'
;
}
...
...
@@ -212,6 +215,8 @@ class CachedArtifacts extends Artifacts {
return
_getFlutterWebSdkPath
();
case
Artifact
.
dart2jsSnapshot
:
return
fs
.
path
.
join
(
dartSdkPath
,
'bin'
,
'snapshots'
,
_artifactToFileName
(
artifact
));
case
Artifact
.
dartdevcSnapshot
:
return
fs
.
path
.
join
(
dartSdkPath
,
'bin'
,
'snapshots'
,
_artifactToFileName
(
artifact
));
case
Artifact
.
kernelWorkerSnapshot
:
return
fs
.
path
.
join
(
dartSdkPath
,
'bin'
,
'snapshots'
,
_artifactToFileName
(
artifact
));
case
Artifact
.
flutterMacOSFramework
:
...
...
@@ -304,6 +309,8 @@ class LocalEngineArtifacts extends Artifacts {
return
fs
.
path
.
join
(
_hostEngineOutPath
,
'dart-sdk'
,
'bin'
,
_artifactToFileName
(
artifact
));
case
Artifact
.
dart2jsSnapshot
:
return
fs
.
path
.
join
(
_hostEngineOutPath
,
'dart-sdk'
,
'bin'
,
'snapshots'
,
_artifactToFileName
(
artifact
));
case
Artifact
.
dartdevcSnapshot
:
return
fs
.
path
.
join
(
dartSdkPath
,
'bin'
,
'snapshots'
,
_artifactToFileName
(
artifact
));
case
Artifact
.
kernelWorkerSnapshot
:
return
fs
.
path
.
join
(
_hostEngineOutPath
,
'dart-sdk'
,
'bin'
,
'snapshots'
,
_artifactToFileName
(
artifact
));
}
...
...
packages/flutter_tools/lib/src/build_runner/build_runner.dart
View file @
da600bac
...
...
@@ -155,6 +155,7 @@ class BuildRunner extends CodeGenerator {
.
path
;
final
Status
status
=
logger
.
startProgress
(
'starting build daemon...'
,
timeout:
null
);
BuildDaemonClient
buildDaemonClient
;
final
String
path
=
cache
.
getArtifactDirectory
(
'web-sdk'
).
path
;
try
{
final
List
<
String
>
command
=
<
String
>[
engineDartBinaryPath
,
...
...
@@ -162,7 +163,8 @@ class BuildRunner extends CodeGenerator {
buildSnapshot
.
path
,
'daemon'
,
'--skip-build-script-check'
,
'--delete-conflicting-outputs'
'--delete-conflicting-outputs'
,
'--define'
,
'build|ddc=flutter_sdk_dir=
$path
'
,
];
buildDaemonClient
=
await
BuildDaemonClient
.
connect
(
flutterProject
.
directory
.
path
,
...
...
packages/flutter_tools/lib/src/build_runner/web_compilation_delegate.dart
0 → 100644
View file @
da600bac
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: implementation_imports
import
'package:build/build.dart'
;
import
'package:build_config/build_config.dart'
;
import
'package:build_modules/build_modules.dart'
;
import
'package:build_modules/builders.dart'
;
import
'package:build_modules/src/module_builder.dart'
;
import
'package:build_modules/src/platform.dart'
;
import
'package:build_runner_core/build_runner_core.dart'
as
core
;
import
'package:build_runner_core/src/generate/build_impl.dart'
;
import
'package:build_runner_core/src/generate/options.dart'
;
import
'package:build_web_compilers/build_web_compilers.dart'
;
import
'package:build_web_compilers/builders.dart'
;
import
'package:build_web_compilers/src/dev_compiler_bootstrap.dart'
;
import
'package:logging/logging.dart'
;
import
'package:meta/meta.dart'
;
import
'package:path/path.dart'
as
path
;
import
'package:watcher/watcher.dart'
;
import
'../artifacts.dart'
;
import
'../base/file_system.dart'
;
import
'../base/logger.dart'
;
import
'../compile.dart'
;
import
'../dart/package_map.dart'
;
import
'../globals.dart'
;
import
'../web/compile.dart'
;
const
String
ddcBootstrapExtension
=
'.dart.bootstrap.js'
;
const
String
jsEntrypointExtension
=
'.dart.js'
;
const
String
jsEntrypointSourceMapExtension
=
'.dart.js.map'
;
const
String
jsEntrypointArchiveExtension
=
'.dart.js.tar.gz'
;
const
String
digestsEntrypointExtension
=
'.digests'
;
const
String
jsModuleErrorsExtension
=
'.ddc.js.errors'
;
const
String
jsModuleExtension
=
'.ddc.js'
;
const
String
jsSourceMapExtension
=
'.ddc.js.map'
;
final
DartPlatform
flutterWebPlatform
=
DartPlatform
.
register
(
'flutter_web'
,
<
String
>[
'async'
,
'collection'
,
'convert'
,
'core'
,
'developer'
,
'html'
,
'html_common'
,
'indexed_db'
,
'js'
,
'js_util'
,
'math'
,
'svg'
,
'typed_data'
,
'web_audio'
,
'web_gl'
,
'web_sql'
,
'_internal'
,
// Flutter web specific libraries.
'ui'
,
'_engine'
,
'io'
,
'isolate'
,
]);
/// The build application to compile a flutter application to the web.
final
List
<
core
.
BuilderApplication
>
builders
=
<
core
.
BuilderApplication
>[
core
.
apply
(
'flutter_tools|module_library'
,
<
Builder
Function
(
BuilderOptions
)>[
moduleLibraryBuilder
],
core
.
toAllPackages
(),
isOptional:
true
,
hideOutput:
true
,
appliesBuilders:
<
String
>[
'flutter_tools|module_cleanup'
]),
core
.
apply
(
'flutter_tools|ddc_modules'
,
<
Builder
Function
(
BuilderOptions
)>[
(
BuilderOptions
options
)
=>
MetaModuleBuilder
(
flutterWebPlatform
),
(
BuilderOptions
options
)
=>
MetaModuleCleanBuilder
(
flutterWebPlatform
),
(
BuilderOptions
options
)
=>
ModuleBuilder
(
flutterWebPlatform
),
],
core
.
toNoneByDefault
(),
isOptional:
true
,
hideOutput:
true
,
appliesBuilders:
<
String
>[
'flutter_tools|module_cleanup'
]),
core
.
apply
(
'flutter_tools|ddc'
,
<
Builder
Function
(
BuilderOptions
)>[
(
BuilderOptions
builderOptions
)
=>
KernelBuilder
(
platformSdk:
artifacts
.
getArtifactPath
(
Artifact
.
flutterWebSdk
),
summaryOnly:
true
,
sdkKernelPath:
path
.
join
(
'kernel'
,
'flutter_ddc_sdk.dill'
),
outputExtension:
ddcKernelExtension
,
platform:
flutterWebPlatform
,
librariesPath:
'libraries.json'
,
),
(
BuilderOptions
builderOptions
)
=>
DevCompilerBuilder
(
useIncrementalCompiler:
false
,
platform:
flutterWebPlatform
,
platformSdk:
artifacts
.
getArtifactPath
(
Artifact
.
flutterWebSdk
),
sdkKernelPath:
path
.
join
(
'kernel'
,
'flutter_ddc_sdk.dill'
),
),
],
core
.
toAllPackages
(),
isOptional:
true
,
hideOutput:
true
,
appliesBuilders:
<
String
>[
'flutter_tools|ddc_modules'
]),
core
.
apply
(
'flutter_tools|entrypoint'
,
<
BuilderFactory
>[
(
BuilderOptions
options
)
=>
FlutterWebEntrypointBuilder
(
options
.
config
[
'target'
]
??
'lib/main.dart'
),
],
core
.
toRoot
(),
hideOutput:
true
,
defaultGenerateFor:
const
InputSet
(
include:
<
String
>[
'lib/**'
,
'web/**'
,
],
),
),
core
.
applyPostProcess
(
'flutter_tools|module_cleanup'
,
moduleCleanup
,
defaultGenerateFor:
const
InputSet
())
];
/// A build_runner specific implementation of the [WebCompilationProxy].
class
BuildRunnerWebCompilationProxy
extends
WebCompilationProxy
{
BuildRunnerWebCompilationProxy
();
core
.
PackageGraph
_packageGraph
;
BuildImpl
_builder
;
PackageUriMapper
_packageUriMapper
;
@override
Future
<
void
>
initialize
({
@required
Directory
projectDirectory
,
@required
String
target
,
})
async
{
// Override the generated output directory so this does not conflict with
// other build_runner output.
core
.
overrideGeneratedOutputDirectory
(
'flutter_web'
);
_packageUriMapper
=
PackageUriMapper
(
path
.
absolute
(
target
),
PackageMap
.
globalPackagesPath
,
null
,
null
);
_packageGraph
=
core
.
PackageGraph
.
forPath
(
projectDirectory
.
path
);
final
core
.
BuildEnvironment
buildEnvironment
=
core
.
OverrideableEnvironment
(
core
.
IOEnvironment
(
_packageGraph
),
onLog:
(
LogRecord
record
)
{
if
(
record
.
level
==
Level
.
SEVERE
||
record
.
level
==
Level
.
SHOUT
)
{
printError
(
record
.
message
);
}
else
{
printTrace
(
record
.
message
);
}
});
final
LogSubscription
logSubscription
=
LogSubscription
(
buildEnvironment
,
verbose:
false
,
logLevel:
Level
.
FINE
,
);
final
BuildOptions
buildOptions
=
await
BuildOptions
.
create
(
logSubscription
,
packageGraph:
_packageGraph
,
skipBuildScriptCheck:
true
,
trackPerformance:
false
,
deleteFilesByDefault:
true
,
);
final
Status
status
=
logger
.
startProgress
(
'Compiling
$target
for the Web...'
,
timeout:
null
);
try
{
_builder
=
await
BuildImpl
.
create
(
buildOptions
,
buildEnvironment
,
builders
,
<
String
,
Map
<
String
,
dynamic
>>{
'flutter_tools|entrypoint'
:
<
String
,
dynamic
>{
'target'
:
target
,
}
},
isReleaseBuild:
false
,
);
await
_builder
.
run
(
const
<
AssetId
,
ChangeType
>{});
}
finally
{
status
.
stop
();
}
}
@override
Future
<
bool
>
invalidate
({
@required
List
<
Uri
>
inputs
})
async
{
final
Status
status
=
logger
.
startProgress
(
'Recompiling sources...'
,
timeout:
null
);
final
Map
<
AssetId
,
ChangeType
>
updates
=
<
AssetId
,
ChangeType
>{};
for
(
Uri
input
in
inputs
)
{
updates
[
AssetId
.
resolve
(
_packageUriMapper
.
map
(
input
.
toFilePath
()).
toString
())]
=
ChangeType
.
MODIFY
;
}
core
.
BuildResult
result
;
try
{
result
=
await
_builder
.
run
(
updates
);
}
finally
{
status
.
cancel
();
}
return
result
.
status
==
core
.
BuildStatus
.
success
;
}
}
/// A ddc-only entrypoint builder that respects the Flutter target flag.
class
FlutterWebEntrypointBuilder
implements
Builder
{
const
FlutterWebEntrypointBuilder
(
this
.
target
);
final
String
target
;
@override
Map
<
String
,
List
<
String
>>
get
buildExtensions
=>
const
<
String
,
List
<
String
>>{
'.dart'
:
<
String
>[
ddcBootstrapExtension
,
jsEntrypointExtension
,
jsEntrypointSourceMapExtension
,
jsEntrypointArchiveExtension
,
digestsEntrypointExtension
,
],
};
@override
Future
<
void
>
build
(
BuildStep
buildStep
)
async
{
if
(!
buildStep
.
inputId
.
path
.
contains
(
target
))
{
return
;
}
log
.
info
(
'building for target
${buildStep.inputId.path}
'
);
await
bootstrapDdc
(
buildStep
,
platform:
flutterWebPlatform
);
}
}
packages/flutter_tools/lib/src/commands/build_web.dart
View file @
da600bac
...
...
@@ -8,7 +8,8 @@ import '../base/common.dart';
import
'../base/logger.dart'
;
import
'../build_info.dart'
;
import
'../globals.dart'
;
import
'../runner/flutter_command.dart'
show
DevelopmentArtifact
,
FlutterCommandResult
;
import
'../runner/flutter_command.dart'
show
DevelopmentArtifact
,
FlutterCommandResult
;
import
'../web/compile.dart'
;
import
'build.dart'
;
...
...
@@ -16,14 +17,15 @@ class BuildWebCommand extends BuildSubCommand {
BuildWebCommand
()
{
usesTargetOption
();
usesPubOption
();
defaultBuildMode
=
BuildMode
.
release
;
addBuildModeFlags
()
;
}
@override
Future
<
Set
<
DevelopmentArtifact
>>
get
requiredArtifacts
async
=>
const
<
DevelopmentArtifact
>{
DevelopmentArtifact
.
universal
,
DevelopmentArtifact
.
web
,
};
Future
<
Set
<
DevelopmentArtifact
>>
get
requiredArtifacts
async
=>
const
<
DevelopmentArtifact
>{
DevelopmentArtifact
.
universal
,
DevelopmentArtifact
.
web
,
};
@override
final
String
name
=
'web'
;
...
...
@@ -40,8 +42,29 @@ class BuildWebCommand extends BuildSubCommand {
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
final
String
target
=
argResults
[
'target'
];
final
Status
status
=
logger
.
startProgress
(
'Compiling
$target
to JavaScript...'
,
timeout:
null
);
final
int
result
=
await
webCompiler
.
compile
(
target:
target
);
final
Status
status
=
logger
.
startProgress
(
'Compiling
$target
for the Web...'
,
timeout:
null
);
final
BuildInfo
buildInfo
=
getBuildInfo
();
int
result
;
switch
(
buildInfo
.
mode
)
{
case
BuildMode
.
release
:
result
=
await
webCompiler
.
compileDart2js
(
target:
target
);
break
;
case
BuildMode
.
profile
:
result
=
await
webCompiler
.
compileDart2js
(
target:
target
,
minify:
false
);
break
;
case
BuildMode
.
debug
:
throwToolExit
(
'Debug mode is not supported as a build target. Instead use '
'"flutter run -d web".'
);
break
;
case
BuildMode
.
dynamicProfile
:
case
BuildMode
.
dynamicRelease
:
throwToolExit
(
'Build mode
${buildInfo.mode}
is not supported with JavaScript '
'compilation'
);
break
;
}
status
.
stop
();
if
(
result
==
1
)
{
throwToolExit
(
'Failed to compile
$target
to JavaScript.'
);
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
da600bac
...
...
@@ -15,11 +15,13 @@ import '../globals.dart';
import
'../macos/xcode.dart'
;
import
'../project.dart'
;
import
'../resident_runner.dart'
;
import
'../resident_web_runner.dart'
;
import
'../run_cold.dart'
;
import
'../run_hot.dart'
;
import
'../runner/flutter_command.dart'
;
import
'../tracing.dart'
;
import
'../usage.dart'
;
import
'../version.dart'
;
import
'daemon.dart'
;
abstract
class
RunCommandBase
extends
FlutterCommand
with
DeviceBasedDevelopmentArtifacts
{
...
...
@@ -397,10 +399,16 @@ class RunCommand extends RunCommandBase {
);
flutterDevices
.
add
(
flutterDevice
);
}
// Only support "web mode" on non-stable branches with a single web device
// in a "hot mode".
final
bool
webMode
=
!
FlutterVersion
.
instance
.
isStable
&&
devices
.
length
==
1
&&
await
devices
.
single
.
targetPlatform
==
TargetPlatform
.
web
&&
hotMode
;
ResidentRunner
runner
;
final
String
applicationBinaryPath
=
argResults
[
'use-application-binary'
];
if
(
hotMode
)
{
if
(
hotMode
&&
!
webMode
)
{
runner
=
HotRunner
(
flutterDevices
,
target:
targetFile
,
...
...
@@ -416,6 +424,13 @@ class RunCommand extends RunCommandBase {
stayResident:
stayResident
,
ipv6:
ipv6
,
);
}
else
if
(
webMode
)
{
runner
=
ResidentWebRunner
(
flutterDevices
,
target:
targetFile
,
flutterProject:
flutterProject
,
ipv6:
ipv6
,
);
}
else
{
runner
=
ColdRunner
(
flutterDevices
,
...
...
packages/flutter_tools/lib/src/commands/update_packages.dart
View file @
da600bac
...
...
@@ -23,6 +23,7 @@ import '../runner/flutter_command.dart';
const
Map
<
String
,
String
>
_kManuallyPinnedDependencies
=
<
String
,
String
>{
// Add pinned packages here.
'flutter_gallery_assets'
:
'0.1.8'
,
// See //examples/flutter_gallery/pubspec.yaml
'build_daemon'
:
'0.6.1'
,
};
class
UpdatePackagesCommand
extends
FlutterCommand
{
...
...
packages/flutter_tools/lib/src/resident_web_runner.dart
0 → 100644
View file @
da600bac
// Copyright 2019 The Chromium 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'
;
import
'package:meta/meta.dart'
;
import
'asset.dart'
;
import
'base/common.dart'
;
import
'base/file_system.dart'
;
import
'base/terminal.dart'
;
import
'build_info.dart'
;
import
'bundle.dart'
;
import
'dart/package_map.dart'
;
import
'device.dart'
;
import
'globals.dart'
;
import
'project.dart'
;
import
'resident_runner.dart'
;
import
'run_hot.dart'
;
import
'web/asset_server.dart'
;
import
'web/compile.dart'
;
import
'web/web_device.dart'
;
/// A hot-runner which handles browser specific delegation.
class
ResidentWebRunner
extends
ResidentRunner
{
ResidentWebRunner
(
List
<
FlutterDevice
>
flutterDevices
,
{
String
target
,
@required
this
.
flutterProject
,
@required
bool
ipv6
,
})
:
super
(
flutterDevices
,
target:
target
,
usesTerminalUI:
true
,
stayResident:
true
,
saveCompilationTrace:
false
,
debuggingOptions:
DebuggingOptions
.
enabled
(
const
BuildInfo
(
BuildMode
.
debug
,
''
),
),
ipv6:
ipv6
,
);
WebAssetServer
_server
;
ProjectFileInvalidator
projectFileInvalidator
;
DateTime
_lastCompiled
;
final
FlutterProject
flutterProject
;
@override
Future
<
int
>
attach
(
{
Completer
<
DebugConnectionInfo
>
connectionInfoCompleter
,
Completer
<
void
>
appStartedCompleter
})
async
{
connectionInfoCompleter
?.
complete
(
DebugConnectionInfo
());
setupTerminal
();
final
int
result
=
await
waitForAppToFinish
();
await
cleanupAtFinish
();
return
result
;
}
@override
Future
<
void
>
cleanupAfterSignal
()
{
return
_server
?.
dispose
();
}
@override
Future
<
void
>
cleanupAtFinish
()
{
return
_server
?.
dispose
();
}
@override
Future
<
void
>
handleTerminalCommand
(
String
code
)
async
{
if
(
code
==
'R'
)
{
// If hot restart is not supported for all devices, ignore the command.
if
(!
canHotRestart
)
{
return
;
}
await
restart
(
fullRestart:
true
);
}
}
@override
void
printHelp
({
bool
details
})
{
const
String
fire
=
'🔥'
;
const
String
rawMessage
=
' To hot restart (and rebuild state), press "R".'
;
final
String
message
=
terminal
.
color
(
fire
+
terminal
.
bolden
(
rawMessage
),
TerminalColor
.
red
,
);
printStatus
(
message
);
const
String
quitMessage
=
'To quit, press "q".'
;
printStatus
(
'For a more detailed help message, press "h".
$quitMessage
'
);
}
@override
Future
<
int
>
run
({
Completer
<
DebugConnectionInfo
>
connectionInfoCompleter
,
Completer
<
void
>
appStartedCompleter
,
String
route
,
bool
shouldBuild
=
true
,
})
async
{
final
FlutterProject
currentProject
=
FlutterProject
.
current
();
if
(!
fs
.
isFileSync
(
mainPath
))
{
String
message
=
'Tried to run
$mainPath
, but that file does not exist.'
;
if
(
target
==
null
)
{
message
+=
'
\n
Consider using the -t option to specify the Dart file to start.'
;
}
printError
(
message
);
return
1
;
}
// Start the web compiler and build the assets.
await
webCompilationProxy
.
initialize
(
projectDirectory:
currentProject
.
directory
,
target:
target
,
);
_lastCompiled
=
DateTime
.
now
();
final
AssetBundle
assetBundle
=
AssetBundleFactory
.
instance
.
createBundle
();
final
int
build
=
await
assetBundle
.
build
();
if
(
build
!=
0
)
{
throwToolExit
(
'Error: Failed to build asset bundle'
);
}
await
writeBundle
(
fs
.
directory
(
getAssetBuildDirectory
()),
assetBundle
.
entries
);
// Step 2: Start an HTTP server
_server
=
WebAssetServer
(
flutterProject
,
target
,
ipv6
);
await
_server
.
initialize
();
// Step 3: Spawn an instance of Chrome and direct it to the created server.
await
chromeLauncher
.
launch
(
'http:localhost:
${_server.port}
'
);
// We don't support the debugging proxy yet.
appStartedCompleter
?.
complete
();
return
attach
(
connectionInfoCompleter:
connectionInfoCompleter
,
appStartedCompleter:
appStartedCompleter
,
);
}
@override
Future
<
OperationResult
>
restart
(
{
bool
fullRestart
=
false
,
bool
pauseAfterRestart
=
false
,
String
reason
,
bool
benchmarkMode
=
false
})
async
{
final
List
<
Uri
>
invalidatedSources
=
ProjectFileInvalidator
.
findInvalidated
(
lastCompiled:
_lastCompiled
,
urisToMonitor:
<
Uri
>[
for
(
FileSystemEntity
entity
in
flutterProject
.
directory
.
childDirectory
(
'lib'
)
.
listSync
(
recursive:
true
))
if
(
entity
is
File
&&
entity
.
path
.
endsWith
(
'.dart'
))
entity
.
uri
],
// Add new class to track this for web.
packagesPath:
PackageMap
.
globalPackagesPath
,
);
await
webCompilationProxy
.
invalidate
(
inputs:
invalidatedSources
);
printStatus
(
'Sources updated, refresh browser'
);
return
OperationResult
.
ok
;
}
}
packages/flutter_tools/lib/src/web/asset_server.dart
0 → 100644
View file @
da600bac
// Copyright 2019 The Chromium 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
'../artifacts.dart'
;
import
'../base/file_system.dart'
;
import
'../base/io.dart'
;
import
'../build_info.dart'
;
import
'../dart/package_map.dart'
;
import
'../globals.dart'
;
import
'../project.dart'
;
/// Handles mapping requests from a dartdevc compiled application to assets.
///
/// The server will receive size different kinds of requests:
///
/// 1. A request to assets in the form of `/assets/foo`. These are resolved
/// relative to `build/flutter_assets`.
/// 2. A request to a bootstrap file, such as `main.dart.js`. These are
/// resolved relative to the dart tool directory.
/// 3. A request to a JavaScript asset in the form of `/packages/foo/bar.js`.
/// These are looked up relative to the correct package root of the
/// dart_tool directory.
/// 4. A request to a Dart asset in the form of `/packages/foo/bar.dart` for
/// sourcemaps. These either need to be looked up from the application lib
/// directory (if the package is the same), or found in the .packages file.
/// 5. A request for a specific dart asset such as `stack_trace_mapper.js` or
/// `dart_sdk.js`. These have fixed locations determined by [artifacts].
/// 6. A request to `/` which is translated into `index.html`.
class
WebAssetServer
{
WebAssetServer
(
this
.
flutterProject
,
this
.
target
,
this
.
ipv6
);
/// The flutter project corresponding to this application.
final
FlutterProject
flutterProject
;
/// The entrypoint we have compiled for.
final
String
target
;
/// Whether to serve from ipv6 localhost.
final
bool
ipv6
;
HttpServer
_server
;
Map
<
String
,
Uri
>
_packages
;
/// The port being served, or null if not initialized.
int
get
port
=>
_server
?.
port
;
/// Initialize the server.
///
/// Throws a [StateError] if called multiple times.
Future
<
void
>
initialize
()
async
{
if
(
_server
!=
null
)
{
throw
StateError
(
'Already serving.'
);
}
_packages
=
PackageMap
(
PackageMap
.
globalPackagesPath
).
map
;
_server
=
await
HttpServer
.
bind
(
ipv6
?
InternetAddress
.
loopbackIPv6
:
InternetAddress
.
loopbackIPv4
,
0
)
..
autoCompress
=
false
;
_server
.
listen
(
_onRequest
);
}
/// Clean up the server.
Future
<
void
>
dispose
()
{
return
_server
.
close
();
}
/// An HTTP server which provides JavaScript and web assets to the browser.
Future
<
void
>
_onRequest
(
HttpRequest
request
)
async
{
if
(
request
.
method
!=
'GET'
)
{
request
.
response
.
statusCode
=
HttpStatus
.
forbidden
;
await
request
.
response
.
close
();
return
;
}
final
Uri
uri
=
request
.
uri
;
if
(
uri
.
path
==
'/'
)
{
final
File
file
=
flutterProject
.
directory
.
childDirectory
(
'web'
)
.
childFile
(
'index.html'
);
await
_completeRequest
(
request
,
file
,
'text/html'
);
}
else
if
(
uri
.
path
.
contains
(
'stack_trace_mapper'
))
{
final
File
file
=
fs
.
file
(
fs
.
path
.
join
(
artifacts
.
getArtifactPath
(
Artifact
.
engineDartSdkPath
),
'lib'
,
'dev_compiler'
,
'web'
,
'dart_stack_trace_mapper.js'
));
await
_completeRequest
(
request
,
file
,
'text/javascript'
);
}
else
if
(
uri
.
path
.
contains
(
'require.js'
))
{
final
File
file
=
fs
.
file
(
fs
.
path
.
join
(
artifacts
.
getArtifactPath
(
Artifact
.
engineDartSdkPath
),
'lib'
,
'dev_compiler'
,
'kernel'
,
'amd'
,
'require.js'
));
await
_completeRequest
(
request
,
file
,
'text/javascript'
);
}
else
if
(
uri
.
path
.
endsWith
(
'main.dart.js'
))
{
final
File
file
=
fs
.
file
(
fs
.
path
.
join
(
flutterProject
.
dartTool
.
path
,
'build'
,
'flutter_web'
,
flutterProject
.
manifest
.
appName
,
'lib'
,
'
${fs.path.basename(target)}
.js'
,
));
await
_completeRequest
(
request
,
file
,
'text/javascript'
);
}
else
if
(
uri
.
path
.
endsWith
(
'
${fs.path.basename(target)}
.bootstrap.js'
))
{
final
File
file
=
fs
.
file
(
fs
.
path
.
join
(
flutterProject
.
dartTool
.
path
,
'build'
,
'flutter_web'
,
flutterProject
.
manifest
.
appName
,
'lib'
,
'
${fs.path.basename(target)}
.bootstrap.js'
,
));
await
_completeRequest
(
request
,
file
,
'text/javascript'
);
}
else
if
(
uri
.
path
.
contains
(
'dart_sdk'
))
{
final
File
file
=
fs
.
file
(
fs
.
path
.
join
(
artifacts
.
getArtifactPath
(
Artifact
.
flutterWebSdk
),
'kernel'
,
'amd'
,
'dart_sdk.js'
,
));
await
_completeRequest
(
request
,
file
,
'text/javascript'
);
}
else
if
(
uri
.
path
.
startsWith
(
'/packages'
)
&&
uri
.
path
.
endsWith
(
'.dart'
))
{
await
_resolveDart
(
request
);
}
else
if
(
uri
.
path
.
startsWith
(
'/packages'
))
{
await
_resolveJavascript
(
request
);
}
else
if
(
uri
.
path
.
contains
(
'assets'
))
{
await
_resolveAsset
(
request
);
}
else
{
request
.
response
.
statusCode
=
HttpStatus
.
notFound
;
await
request
.
response
.
close
();
}
}
/// Resolves requests in the form of `/packages/foo/bar.js` or
/// `/packages/foo/bar.js.map`.
Future
<
void
>
_resolveJavascript
(
HttpRequest
request
)
async
{
final
List
<
String
>
segments
=
fs
.
path
.
split
(
request
.
uri
.
path
);
final
String
packageName
=
segments
[
2
];
final
String
filePath
=
fs
.
path
.
joinAll
(
segments
.
sublist
(
3
));
final
Uri
packageUri
=
flutterProject
.
dartTool
.
childDirectory
(
'build'
)
.
childDirectory
(
'flutter_web'
)
.
childDirectory
(
packageName
)
.
childDirectory
(
'lib'
)
.
uri
;
await
_completeRequest
(
request
,
fs
.
file
(
packageUri
.
resolve
(
filePath
)),
'text/javascript'
);
}
/// Resolves requests in the form of `/packages/foo/bar.dart`.
Future
<
void
>
_resolveDart
(
HttpRequest
request
)
async
{
final
List
<
String
>
segments
=
fs
.
path
.
split
(
request
.
uri
.
path
);
final
String
packageName
=
segments
[
2
];
final
String
filePath
=
fs
.
path
.
joinAll
(
segments
.
sublist
(
3
));
final
Uri
packageUri
=
_packages
[
packageName
];
await
_completeRequest
(
request
,
fs
.
file
(
packageUri
.
resolve
(
filePath
)));
}
/// Resolves requests in the form of `/assets/foo`.
Future
<
void
>
_resolveAsset
(
HttpRequest
request
)
async
{
final
String
assetPath
=
request
.
uri
.
path
.
replaceFirst
(
'/assets/'
,
''
);
await
_completeRequest
(
request
,
fs
.
file
(
fs
.
path
.
join
(
getAssetBuildDirectory
(),
assetPath
)));
}
Future
<
void
>
_completeRequest
(
HttpRequest
request
,
File
file
,
[
String
contentType
=
'text'
])
async
{
printTrace
(
'looking for
${request.uri}
at
${file.path}
'
);
if
(!
file
.
existsSync
())
{
request
.
response
.
statusCode
=
HttpStatus
.
notFound
;
await
request
.
response
.
close
();
return
;
}
request
.
response
.
statusCode
=
HttpStatus
.
ok
;
if
(
contentType
!=
null
)
{
request
.
response
.
headers
.
add
(
HttpHeaders
.
contentTypeHeader
,
contentType
);
}
await
request
.
response
.
addStream
(
file
.
openRead
());
await
request
.
response
.
close
();
}
}
packages/flutter_tools/lib/src/web/compile.dart
View file @
da600bac
...
...
@@ -17,7 +17,11 @@ import '../globals.dart';
/// The [WebCompiler] instance.
WebCompiler
get
webCompiler
=>
context
.
get
<
WebCompiler
>();
/// A wrapper around dart2js for web compilation.
/// The [WebCompilationProxy] instance.
WebCompilationProxy
get
webCompilationProxy
=>
context
.
get
<
WebCompilationProxy
>();
/// A wrapper around dart tools for web compilation.
class
WebCompiler
{
const
WebCompiler
();
...
...
@@ -25,11 +29,19 @@ class WebCompiler {
///
/// `minify` controls whether minifaction of the source is enabled. Defaults to `true`.
/// `enabledAssertions` controls whether assertions are enabled. Defaults to `false`.
Future
<
int
>
compile
({
@required
String
target
,
bool
minify
=
true
,
bool
enabledAssertions
=
false
})
async
{
final
String
engineDartPath
=
artifacts
.
getArtifactPath
(
Artifact
.
engineDartBinary
);
final
String
dart2jsPath
=
artifacts
.
getArtifactPath
(
Artifact
.
dart2jsSnapshot
);
final
String
flutterWebSdkPath
=
artifacts
.
getArtifactPath
(
Artifact
.
flutterWebSdk
);
final
String
librariesPath
=
fs
.
path
.
join
(
flutterWebSdkPath
,
'libraries.json'
);
Future
<
int
>
compileDart2js
({
@required
String
target
,
bool
minify
=
true
,
bool
enabledAssertions
=
false
,
})
async
{
final
String
engineDartPath
=
artifacts
.
getArtifactPath
(
Artifact
.
engineDartBinary
);
final
String
dart2jsPath
=
artifacts
.
getArtifactPath
(
Artifact
.
dart2jsSnapshot
);
final
String
flutterWebSdkPath
=
artifacts
.
getArtifactPath
(
Artifact
.
flutterWebSdk
);
final
String
librariesPath
=
fs
.
path
.
join
(
flutterWebSdkPath
,
'libraries.json'
);
final
Directory
outputDir
=
fs
.
directory
(
getWebBuildDirectory
());
if
(!
outputDir
.
existsSync
())
{
outputDir
.
createSync
(
recursive:
true
);
...
...
@@ -38,6 +50,7 @@ class WebCompiler {
if
(!
processManager
.
canRun
(
engineDartPath
))
{
throwToolExit
(
'Unable to find Dart binary at
$engineDartPath
'
);
}
/// Compile Dart to JavaScript.
final
List
<
String
>
command
=
<
String
>[
engineDartPath
,
...
...
@@ -55,16 +68,35 @@ class WebCompiler {
}
printTrace
(
command
.
join
(
' '
));
final
Process
result
=
await
processManager
.
start
(
command
);
result
.
stdout
result
.
stdout
.
transform
(
utf8
.
decoder
)
.
transform
(
const
LineSplitter
())
.
listen
(
printStatus
);
result
.
stderr
result
.
stderr
.
transform
(
utf8
.
decoder
)
.
transform
(
const
LineSplitter
())
.
listen
(
printError
);
return
result
.
exitCode
;
}
}
/// An indirection on web compilation.
///
/// Avoids issues with syncing build_runner_core to other repos.
class
WebCompilationProxy
{
const
WebCompilationProxy
();
/// Initialize the web compiler output to `outputDirectory` from a project spawned at
/// `projectDirectory`.
Future
<
void
>
initialize
({
@required
Directory
projectDirectory
,
@required
String
target
,
})
async
{
throw
UnimplementedError
();
}
/// Invalidate the source files in `inputs` and recompile them to JavaScript.
Future
<
void
>
invalidate
({
@required
List
<
Uri
>
inputs
})
async
{
throw
UnimplementedError
();
}
}
packages/flutter_tools/lib/src/web/web_device.dart
View file @
da600bac
...
...
@@ -50,10 +50,10 @@ class WebDevice extends Device {
WebApplicationPackage
_package
;
@override
bool
get
supportsHotReload
=>
fals
e
;
bool
get
supportsHotReload
=>
tru
e
;
@override
bool
get
supportsHotRestart
=>
fals
e
;
bool
get
supportsHotRestart
=>
tru
e
;
@override
bool
get
supportsStartPaused
=>
true
;
...
...
@@ -108,7 +108,7 @@ class WebDevice extends Device {
bool
ipv6
=
false
,
})
async
{
final
Status
status
=
logger
.
startProgress
(
'Compiling
${package.name}
to JavaScript...'
,
timeout:
null
);
final
int
result
=
await
webCompiler
.
compile
(
target:
mainPath
,
minify:
false
,
enabledAssertions:
true
);
final
int
result
=
await
webCompiler
.
compile
Dart2js
(
target:
mainPath
,
minify:
false
,
enabledAssertions:
true
);
status
.
stop
();
if
(
result
!=
0
)
{
printError
(
'Failed to compile
${package.name}
to JavaScript'
);
...
...
@@ -125,7 +125,7 @@ class WebDevice extends Device {
_server
=
await
HttpServer
.
bind
(
InternetAddress
.
loopbackIPv4
,
0
);
_server
.
listen
(
_basicAssetServer
);
printStatus
(
'Serving assets from http:localhost:
${_server.port}
'
);
await
chromeLauncher
.
launch
(
'http:localhost:
${_server.port}
'
);
await
chromeLauncher
.
launch
(
'http:
//
localhost:
${_server.port}
'
);
return
LaunchResult
.
succeeded
(
observatoryUri:
null
);
}
...
...
@@ -201,22 +201,46 @@ class WebDevices extends PollingDeviceDiscovery {
@override
bool
get
supportsPlatform
=>
flutterWebEnabled
;
}
const
String
_klinuxExecutable
=
'google-chrome'
;
const
String
_kMacOSExecutable
=
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
;
const
String
_kWindowsExecutable
=
r'Google\Chrome\Application\chrome.exe'
;
final
List
<
String
>
_kWindowsPrefixes
=
<
String
>[
platform
.
environment
[
'LOCALAPPDATA'
],
platform
.
environment
[
'PROGRAMFILES'
],
platform
.
environment
[
'PROGRAMFILES(X86)'
],
];
// Responsible for launching chrome with devtools configured.
class
ChromeLauncher
{
const
ChromeLauncher
();
static
const
String
_kMacosLocation
=
'/Applications/Google
\
Chrome.app/Contents/MacOS/Google
\
Chrome'
;
Future
<
void
>
launch
(
String
host
)
async
{
/// Launch the chrome browser to a particular `host` page.
Future
<
Process
>
launch
(
String
host
)
async
{
String
executable
;
if
(
platform
.
isMacOS
)
{
return
processManager
.
start
(<
String
>[
_kMacosLocation
,
host
,
]);
executable
=
_kMacOSExecutable
;
}
else
if
(
platform
.
isLinux
)
{
executable
=
_klinuxExecutable
;
}
else
if
(
platform
.
isWindows
)
{
final
String
filePath
=
_kWindowsPrefixes
.
firstWhere
((
String
prefix
)
{
if
(
prefix
==
null
)
{
return
false
;
}
final
String
path
=
fs
.
path
.
join
(
prefix
,
_kWindowsExecutable
);
return
fs
.
file
(
path
).
existsSync
();
},
orElse:
()
=>
'.'
);
executable
=
filePath
;
}
else
{
throwToolExit
(
'Platform
${platform.operatingSystem}
is not supported.'
);
}
if
(!
fs
.
file
(
executable
).
existsSync
())
{
throwToolExit
(
'Chrome executable not found at
$executable
'
);
}
throw
UnsupportedError
(
'
$platform
is not supported'
);
return
processManager
.
start
(<
String
>[
executable
,
host
,
],
mode:
ProcessStartMode
.
detached
);
}
}
packages/flutter_tools/pubspec.yaml
View file @
da600bac
...
...
@@ -32,7 +32,7 @@ dependencies:
stream_channel
:
2.0.0
usage
:
3.4.1
vm_service_client
:
0.2.6+2
web_socket_channel
:
1.0.1
2
web_socket_channel
:
1.0.1
3
xml
:
3.5.0
yaml
:
2.1.15
flutter_goldens_client
:
...
...
@@ -49,8 +49,9 @@ dependencies:
dart_style
:
1.2.7
code_builder
:
3.2.0
build
:
1.1.4
build_modules
:
2.
1.3
build_modules
:
2.
2.0
build_daemon
:
0.6.1
build_web_compilers
:
2.1.0
analyzer
:
0.36.3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
async
:
2.2.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -71,6 +72,7 @@ dependencies:
http_multi_server
:
2.0.6
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
http_parser
:
3.1.3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
io
:
0.3.3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
json_annotation
:
2.4.0
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
kernel
:
0.3.18
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
logging
:
0.11.3+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -100,14 +102,13 @@ dev_dependencies:
collection
:
1.14.11
mockito
:
4.0.0
file_testing
:
2.1.0
vm_service_lib
:
3.1
5.1+2
vm_service_lib
:
3.1
7.0
test
:
1.6.3
build_runner
:
1.4.0
build_vm_compilers
:
1.0.0
build_test
:
0.10.7+3
js
:
0.6.1+1
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
mime
:
0.9.6+3
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
multi_server_socket
:
1.0.2
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble
:
1.4.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
shelf_packages_handler
:
1.0.4
# THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
...
...
@@ -117,4 +118,4 @@ dartdoc:
# Exclude this package from the hosted API docs.
nodoc
:
true
# PUBSPEC CHECKSUM:
087
a
# PUBSPEC CHECKSUM:
b34
a
packages/flutter_tools/test/forbidden_imports_test.dart
View file @
da600bac
...
...
@@ -12,7 +12,6 @@ void main() {
test
(
'no unauthorized imports of dart:io'
,
()
{
final
List
<
String
>
whitelistedPaths
=
<
String
>[
fs
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'base'
,
'io.dart'
),
fs
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'build_runner'
,
'kernel_builder.dart'
),
];
bool
_isNotWhitelisted
(
FileSystemEntity
entity
)
=>
whitelistedPaths
.
every
((
String
path
)
=>
path
!=
entity
.
path
);
...
...
@@ -35,7 +34,7 @@ void main() {
});
test
(
'no unauthorized imports of package:path'
,
()
{
final
String
whitelistedPath
=
fs
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'build_runner'
,
'
kernel_builder
.dart'
);
final
String
whitelistedPath
=
fs
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'build_runner'
,
'
web_compilation_delegate
.dart'
);
for
(
String
dirName
in
<
String
>[
'lib'
,
'bin'
,
'test'
])
{
final
Iterable
<
File
>
files
=
fs
.
directory
(
fs
.
path
.
join
(
flutterTools
,
dirName
))
.
listSync
(
recursive:
true
)
...
...
@@ -57,7 +56,6 @@ void main() {
test
(
'no unauthorized imports of dart:convert'
,
()
{
final
List
<
String
>
whitelistedPaths
=
<
String
>[
fs
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'convert.dart'
),
fs
.
path
.
join
(
flutterTools
,
'lib'
,
'src'
,
'build_runner'
,
'kernel_builder.dart'
),
];
bool
_isNotWhitelisted
(
FileSystemEntity
entity
)
=>
whitelistedPaths
.
every
((
String
path
)
=>
path
!=
entity
.
path
);
...
...
packages/flutter_tools/test/web/compile_test.dart
View file @
da600bac
...
...
@@ -30,7 +30,7 @@ void main() {
});
test
(
'invokes dart2js with correct arguments'
,
()
=>
testBed
.
run
(()
async
{
await
webCompiler
.
compile
(
target:
'lib/main.dart'
);
await
webCompiler
.
compile
Dart2js
(
target:
'lib/main.dart'
);
verify
(
mockProcessManager
.
start
(<
String
>[
'bin/cache/dart-sdk/bin/dart'
,
...
...
packages/flutter_tools/test/web/devices_test.dart
View file @
da600bac
...
...
@@ -21,12 +21,14 @@ void main() {
setUp
(()
async
{
flutterProject
=
FlutterProject
.
fromPath
(
fs
.
path
.
join
(
getFlutterRoot
(),
'dev'
,
'integration_tests'
,
'web'
));
when
(
mockWebCompiler
.
compile
(
when
(
mockWebCompiler
.
compile
Dart2js
(
target:
anyNamed
(
'target'
),
minify:
anyNamed
(
'minify'
),
enabledAssertions:
anyNamed
(
'enabledAssertions'
),
)).
thenAnswer
((
Invocation
invocation
)
async
=>
0
);
when
(
mockChromeLauncher
.
launch
(
any
)).
thenAnswer
((
Invocation
invocation
)
async
{
});
when
(
mockChromeLauncher
.
launch
(
any
)).
thenAnswer
((
Invocation
invocation
)
async
{
return
null
;
});
});
testUsingContext
(
'can build and connect to chrome'
,
()
async
{
...
...
packages/fuchsia_remote_debug_protocol/pubspec.yaml
View file @
da600bac
...
...
@@ -10,7 +10,7 @@ environment:
dependencies
:
json_rpc_2
:
2.1.0
process
:
3.0.9
web_socket_channel
:
1.0.1
2
web_socket_channel
:
1.0.1
3
flutter_test
:
sdk
:
flutter
flutter_driver
:
...
...
@@ -44,4 +44,4 @@ dependencies:
dev_dependencies
:
mockito
:
4.0.0
# PUBSPEC CHECKSUM: b
38c
# PUBSPEC CHECKSUM: b
48d
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