Skip to content

Commit

Permalink
Fix type, and update testing for newer dart sdk.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLugg committed Apr 22, 2024
1 parent 93bd974 commit 0937a00
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [stable, 3.0.0]
sdk: [stable, 3.3, 3.2, 3.1]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,10 @@ announcements on the StageXL forum or use one of the support links below:
* StageXL GitHub <https://github.com/bp74/StageXL/issues>
* StageXL StackOverflow: <http://stackoverflow.com/questions/ask?tags=stagexl>

### 2.2.1
* Add support for loading audio from data url.
* Update latest lints and cleanup

### 2.2.0
* Support the latest version of `package:xml`.
* Update Dart SDK restraint to ^3.0.0
Expand Down
2 changes: 1 addition & 1 deletion lib/src/resources/resource_manager.dart
Expand Up @@ -112,7 +112,7 @@ class ResourceManager {
bool containsSound(String name) => _containsResource('Sound', name);

void addSound(String name, String url, [SoundLoadOptions? options]) {
var loader;
Future loader;
if (url.startsWith('data:')) {
loader = Sound.loadDataUrl(url, options);
} else {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,5 +1,5 @@
name: stagexl
version: 2.2.0
version: 2.2.1
description: A fast and universal 2D rendering engine for HTML5 and Dart.
homepage: http://www.stagexl.org
repository: https://github.com/bp74/StageXL
Expand Down

0 comments on commit 0937a00

Please sign in to comment.