[web] Migrate Flutter Web to JS static interop - 1. (flutter/engine#32407)

This is the first CL in a series of cls to migrate Flutter Web to JS
static interop.
This commit is contained in:
joshualitt
2022-04-05 12:07:22 -07:00
committed by GitHub
parent 0679c5d5af
commit a90e631f77
4 changed files with 7 additions and 5 deletions

View File

@@ -162,8 +162,10 @@ external JsFlutterConfiguration? get _jsConfiguration;
/// The JS bindings for the object that's set as `window.flutterConfiguration`.
@JS()
@anonymous
class JsFlutterConfiguration {
@staticInterop
class JsFlutterConfiguration {}
extension JsFlutterConfigurationExtension on JsFlutterConfiguration {
external String? get canvasKitBaseUrl;
external bool? get canvasKitForceCpuOnly;
external bool? get debugShowSemanticsNodes;

View File

@@ -6,7 +6,7 @@ environment:
sdk: ">=2.12.0-0 <3.0.0"
dependencies:
js: 0.6.3
js: 0.6.4
meta: 1.3.0
dev_dependencies:

View File

@@ -5,7 +5,7 @@ environment:
sdk: ">=2.12.0-0 <3.0.0"
dependencies:
js: 0.6.3
js: 0.6.4
stream_channel: 2.1.0
test: 1.17.7
webkit_inspection_protocol: 1.0.0

View File

@@ -8,7 +8,7 @@ dependencies:
collection: 1.15.0
crypto: 3.0.1
image: 3.0.1
js: 0.6.3
js: 0.6.4
meta: 1.3.0
path: 1.8.0
process: 4.2.3