This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -173,15 +173,8 @@ Future<void> copyCanvasKitFiles({bool useLocalCanvasKit = false}) async {
173
173
targetDir.path,
174
174
pathlib.basename (file.path),
175
175
));
176
- final io.File profileTargetFile = io.File (pathlib.join (
177
- targetDir.path,
178
- 'profiling' ,
179
- pathlib.basename (file.path),
180
- ));
181
176
await normalTargetFile.create (recursive: true );
182
- await profileTargetFile.create (recursive: true );
183
177
await file.copy (normalTargetFile.path);
184
- await file.copy (profileTargetFile.path);
185
178
}
186
179
} else {
187
180
final io.Directory canvasKitDir = io.Directory (pathlib.join (
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import 'package:ui/ui.dart' as ui;
19
19
20
20
import '../configuration.dart' ;
21
21
import '../dom.dart' ;
22
- import '../initialization.dart' ;
23
22
import '../profiler.dart' ;
24
23
25
24
/// Entrypoint into the CanvasKit API.
@@ -2662,8 +2661,7 @@ void patchCanvasKitModule(DomHTMLScriptElement canvasKitScript) {
2662
2661
domDocument.head! .appendChild (canvasKitScript);
2663
2662
}
2664
2663
2665
- String get canvasKitBuildUrl =>
2666
- configuration.canvasKitBaseUrl + (kProfileMode ? 'profiling/' : '' );
2664
+ String get canvasKitBuildUrl => configuration.canvasKitBaseUrl;
2667
2665
String get canvasKitJavaScriptBindingsUrl =>
2668
2666
'${canvasKitBuildUrl }canvaskit.js' ;
2669
2667
String canvasKitWasmModuleUrl (String canvasKitBase, String file) =>
Original file line number Diff line number Diff line change @@ -160,10 +160,8 @@ class FlutterConfiguration {
160
160
///
161
161
/// The expected directory structure nested under this URL is as follows:
162
162
///
163
- /// /canvaskit.js - the release build of CanvasKit JS API bindings
164
- /// /canvaskit.wasm - the release build of CanvasKit WASM module
165
- /// /profiling/canvaskit.js - the profile build of CanvasKit JS API bindings
166
- /// /profiling/canvaskit.wasm - the profile build of CanvasKit WASM module
163
+ /// /canvaskit.js - the build of CanvasKit JS API bindings
164
+ /// /canvaskit.wasm - the build of CanvasKit WASM module
167
165
///
168
166
/// The base URL can be overridden using the `FLUTTER_WEB_CANVASKIT_URL`
169
167
/// environment variable or using the configuration API for JavaScript.
You can’t perform that action at this time.
0 commit comments