From 2eb6dbed79a5ca5c8d5321f9a203c19fba8b704c Mon Sep 17 00:00:00 2001 From: HayesGordon Date: Thu, 25 Jul 2024 22:33:33 +0000 Subject: [PATCH] chore: release flutter 0.13.12 Fixes: https://github.com/rive-app/rive-flutter/issues/410 Diffs= 462725b07 chore: release flutter 0.13.12 (#7693) 1c067cba8 Implement layout scale type in CPP runtime (#7665) Co-authored-by: Gordon --- .rive_head | 2 +- CHANGELOG.md | 4 ++++ lib/rive.dart | 5 +++-- .../dynamic_library_helper/dynamic_library_helper_ffi.dart | 2 ++ .../dynamic_library_helper/dynamic_library_helper_stub.dart | 3 +++ .../dynamic_library_helper/dynamic_library_helper_web.dart | 2 ++ lib/src/rive_core/data_bind/data_bind.dart | 1 + pubspec.yaml | 2 +- test/asset_gc_test.dart | 1 - 9 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 lib/src/dynamic_library_helper/dynamic_library_helper_ffi.dart create mode 100644 lib/src/dynamic_library_helper/dynamic_library_helper_stub.dart create mode 100644 lib/src/dynamic_library_helper/dynamic_library_helper_web.dart diff --git a/.rive_head b/.rive_head index e93f329a..f4c209dd 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -e5920f4a03339ac7c3b12ce2287404b7ed38687c +462725b0766c65fe6b69530e86cd0de46a8795b3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 733fa068..6894818f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.13.12 + +- Fix [410](https://github.com/rive-app/rive-flutter/issues/410) Rive not compatible with Flutter web. + ## 0.13.11 - Add `applyWorkaroundToRiveOnOldAndroidVersions`. Experimental workaround when loading native libraries on Android 6 (see [this issue](https://github.com/rive-app/rive-flutter/issues/403)). The method should be called before using any Rive APIs. diff --git a/lib/rive.dart b/lib/rive.dart index c93b2b95..a287b92e 100644 --- a/lib/rive.dart +++ b/lib/rive.dart @@ -46,5 +46,6 @@ export 'package:rive/src/runtime_event.dart'; export 'package:rive/src/runtime_mounted_artboard.dart'; export 'package:rive/src/runtime_nested_artboard.dart'; export 'package:rive/src/widgets/rive_animation.dart'; -export 'package:rive_common/src/dynamic_library_helper.dart' - show applyWorkaroundToRiveOnOldAndroidVersions; +export 'src/dynamic_library_helper/dynamic_library_helper_stub.dart' + if (dart.library.js_interop) 'src/dynamic_library_helper/dynamic_library_helper_web.dart' + if (dart.library.ffi) 'src/dynamic_library_helper/dynamic_library_helper_ffi.dart'; diff --git a/lib/src/dynamic_library_helper/dynamic_library_helper_ffi.dart b/lib/src/dynamic_library_helper/dynamic_library_helper_ffi.dart new file mode 100644 index 00000000..395663ab --- /dev/null +++ b/lib/src/dynamic_library_helper/dynamic_library_helper_ffi.dart @@ -0,0 +1,2 @@ +export 'package:rive_common/src/dynamic_library_helper.dart' + show applyWorkaroundToRiveOnOldAndroidVersions; diff --git a/lib/src/dynamic_library_helper/dynamic_library_helper_stub.dart b/lib/src/dynamic_library_helper/dynamic_library_helper_stub.dart new file mode 100644 index 00000000..19d5be97 --- /dev/null +++ b/lib/src/dynamic_library_helper/dynamic_library_helper_stub.dart @@ -0,0 +1,3 @@ +void applyWorkaroundToRiveOnOldAndroidVersions() { + throw UnsupportedError('Platform not supported'); +} diff --git a/lib/src/dynamic_library_helper/dynamic_library_helper_web.dart b/lib/src/dynamic_library_helper/dynamic_library_helper_web.dart new file mode 100644 index 00000000..f7bf9679 --- /dev/null +++ b/lib/src/dynamic_library_helper/dynamic_library_helper_web.dart @@ -0,0 +1,2 @@ +// Mock implementation for web +void applyWorkaroundToRiveOnOldAndroidVersions() {} diff --git a/lib/src/rive_core/data_bind/data_bind.dart b/lib/src/rive_core/data_bind/data_bind.dart index a20a5fa8..9d76260a 100644 --- a/lib/src/rive_core/data_bind/data_bind.dart +++ b/lib/src/rive_core/data_bind/data_bind.dart @@ -49,6 +49,7 @@ class DataBind extends DataBindBase { } @override + // ignore: override_on_non_overriding_member void targetIdChanged(int from, int to) { // TODO: @hernan implement nameChanged } diff --git a/pubspec.yaml b/pubspec.yaml index 94f7b0bb..7bddd41f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: rive -version: 0.13.11 +version: 0.13.12 homepage: https://rive.app description: Rive Flutter Runtime. This package provides runtime functionality for playing back and interacting with animations built with the Rive editor available at https://rive.app. repository: https://github.com/rive-app/rive-flutter diff --git a/test/asset_gc_test.dart b/test/asset_gc_test.dart index 857e47b9..4fc8cc88 100644 --- a/test/asset_gc_test.dart +++ b/test/asset_gc_test.dart @@ -1,6 +1,5 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:rive/rive.dart'; -import 'package:rive/src/rive_core/shapes/image.dart'; import 'src/utils.dart';