Skip to content

Commit

Permalink
Ensure rive_common wasm module gets pulled into rive_flutter properly
Browse files Browse the repository at this point in the history
In rive_flutter, we were doing a check to see if the file had any text before we loaded the rive_common wasm module. However, since all rive_common deps (text, audio, layout) are bundled together, we need to make sure to check for existence of those as well, and since Artboard extends LayoutComponent, we pretty much always need to load the module.

Diffs=
024f95b10 Ensure rive_common wasm module gets pulled into rive_flutter properly (#7040)
cb2ea5b2d Exposing artboard volume (#7022)
8ecc99130 Fixing audio runtimes. (#7007)

Co-authored-by: Philip Chung <philterdesign@gmail.com>
  • Loading branch information
philter and philter committed Apr 11, 2024
1 parent 4ede8c8 commit a22fc5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cf43d9fdf8ab24146fd3c350121d200c43ca544d
024f95b100f1e76940c4dad707e54bb4f48e86d4
5 changes: 5 additions & 0 deletions lib/src/rive_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ class RiveFile {
final coreType = _peekRuntimeObjectType(reader, propertyToField);
switch (coreType) {
case TextBase.typeKey:
// Since all rive_common wasm modules are currently bundled together
// we need to check for existance of any of these. And since Artboard
// extends LayoutComponent, we will always need to load it
case ArtboardBase.typeKey:
case AudioAssetBase.typeKey:
return true;
}
}
Expand Down

0 comments on commit a22fc5f

Please sign in to comment.