Skip to content

Commit cb08b93

Browse files
authored
[vector_graphics_compiler] wasm compatibility (#8021)
Make vector_graphics_compiler WASM compatible. - x] I updated `pubspec.yaml` with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].
1 parent 7219431 commit cb08b93

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

packages/vector_graphics_compiler/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.14
2+
3+
* Makes the package WASM compatible.
4+
15
## 1.1.13
26

37
* Relaxes dependency constraint on vector_graphics_codec.

packages/vector_graphics_compiler/lib/vector_graphics_compiler.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import 'src/svg/theme.dart';
1818
import 'src/vector_instructions.dart';
1919

2020
export 'src/_initialize_path_ops_io.dart'
21-
if (dart.library.html) 'src/_initialize_path_ops_web.dart';
21+
if (dart.library.js_interop) 'src/_initialize_path_ops_web.dart';
2222
export 'src/_initialize_tessellator_io.dart'
23-
if (dart.library.html) 'src/_initialize_tessellator_web.dart';
23+
if (dart.library.js_interop) 'src/_initialize_tessellator_web.dart';
2424
export 'src/geometry/basic_types.dart';
2525
export 'src/geometry/matrix.dart';
2626
export 'src/geometry/path.dart';

packages/vector_graphics_compiler/pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: vector_graphics_compiler
22
description: A compiler to convert SVGs to the binary format used by `package:vector_graphics`.
33
repository: https://github.com/flutter/packages/tree/main/packages/vector_graphics_compiler
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_graphics%22
5-
version: 1.1.13
5+
version: 1.1.14
66

77
executables:
88
vector_graphics_compiler:
@@ -31,8 +31,7 @@ dev_dependencies:
3131
flutter_test:
3232
sdk: flutter
3333
test: ^1.20.1
34-
# See https://github.com/flutter/flutter/issues/157626
35-
vector_graphics: ">=1.1.11+1 <= 1.1.12"
34+
vector_graphics: ^1.1.13
3635
vector_math: ^2.1.2
3736

3837
platforms:

0 commit comments

Comments
 (0)