8 Commits

Author SHA1 Message Date
7db34cd180 feat: update build gradle to latest versions
Addresses: https://github.com/rive-app/rive-flutter/issues/398

I also created a fresh plugin using the latest Flutter and copied over the differences.

How to use:
In `android/local.properties` add:
```
rive.ndk.version=25.2.9519653 # set desired version
```

If not specified in a project, it will use the default.

Rive-Android still uses the same ndk version. Should we update that as well?

Diffs=
49bf612fd feat: update build gradle to latest versions (#7475)
a134ab656 Layout joysticks runtime (#7923)
728ac6286 runtime: add tiling to n-slicing (#7934)
e1b4a53ec Revive the WebGL backend (#7948)
813db58e7 Nnnn data binding editor native runtime (#7815)
c71a37173 fix for syntax issue (#7910)
e89437ef6 windows editor: fix format check and use raster ordering disabled (#7937)
7d00d35d3 Fix viewer tess builds (#7935)
455ebad60 Update rive cpp for submodules (#7932)
75e0f9aea runtime: support files with n-slicing defined (#7920)
85b28c39a Update readme of PLS (#7931)
21ecf2775 Fix actions yaml with rive-renderer (#7930)
c33d5d81b Update rive renderer readme (#7929)
b03895fcf Update pls README (#7927)
3316d15ca Refactor pls into runtime (#7914)
b2d27b6bd mark dirty when constraint changes (#7909)
5c14a4a30 Fix Android goldens (#7902)
46a3045ae Improve Vulkan loading and organization (#7873)
160d9eefb Add webp decoder. (#7883)
e992059d6 iOS images unpremult SIMD support (#7875)
ad34dd4da add arithmetic operation and group converters (#7801)
f99c93181 editor: setting up the update callbacks for n-slicing (#7869)
85343a4e1 Fix for bug in Runtime LayoutComponent proxy (#7867)

Co-authored-by: Gordon <pggordonhayes@gmail.com>
2024-08-27 15:46:27 +00:00
7d814a782a Update compileSdkVersion for flutter android example
Thanks @umberto-sonnino!

Diffs=
33fb6021a Update  compileSdkVersion for flutter android example (#7647)

Co-authored-by: Philip Chung <philterdesign@gmail.com>
2024-07-22 17:36:23 +00:00
9951f912df Flutter Android example project fix
Updating the flutter tests to build with 3.22.2 results in an error finding MultiDex. Fix is found here: https://github.com/flutter/flutter/issues/148368

Diffs=
59df9ce73 Flutter Android example project fix (#7455)
a4439ee42 Renames for Yoga and libjpeg (#7446)
97578005c Update LayoutComponentStyle bitfields to be compatible with older C++ versions (#7436)

Co-authored-by: Philip Chung <philterdesign@gmail.com>
2024-06-21 02:34:21 +00:00
98040494a8 feat: expose wrapper event class to runtime
The goal of this PR is to improve the usability of events for the Flutter runtime and to hide unnecessary editor implementation detail. This also ensures that an event is not modifiable after it has been reported (from the runtime's perspective)

This is achieved by exposing runtime specific classes `RiveEvent`, `RiveOpenURLEvent` and `RiveGeneralEvent` (similar to the other runtimes), and mapping the current `Event` to these classes as an immutable object. It also maps the list of events to a Map called `properties`.

This PR also:
- Adds more event examples and fixes the audio example (`.stop` resulted in issues, and calling dispose, etc.)
- Adds tests for events

TODO:
- Will need to potentially change things (and expose the `delay`) when this lands: https://github.com/rive-app/rive/pull/5951

Diffs=
eae01824d feat: expose wrapper event class to runtime (#5956)

Co-authored-by: Gordon <pggordonhayes@gmail.com>
2023-09-18 17:54:53 +00:00
c6791d7b6d Timeline events & Core Callback type
Introduces a new Core field type which does not produce stored fields. Instead it provides a callback which can be keyed and unique per type so time based events can trigger against their property keys.

This is to allow things like nested trigger inputs and triggering events from the timeline.

Draft as there's a bunch more work to do for actually invoking them from the StateMachine & LinearAnimations. In the meantime the tests can do some sanity testing.

- [x] Generate core types that do not produce stored fields.
- [x] Massage Keyframe hierarchy to allow for non stored value Keyframes (markers for trigger).
- [x] Key those core types with specialized keyframes.
- [x] Pass context (like StateMachine) to those triggers and see it all tie together.

Diffs=
6058b52ce Timeline events & Core Callback type (#5877)

Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
2023-09-05 20:14:25 +00:00
e618def5cd Text
Uses it in the artboard title but also updates the flutter runtime massively to support FFI & WASM C++ Rive Text. PRing to let the tests run.

Diffs=
3be5ff0d8 Text (#4372)
90245a5e1 Fix the Android debug build
0a0f3c267 Fix for missing animation in a blend state. (#4415)
440512dca Add simd::if_then_else (#4403)
ec9fb5bfc Revert "Update SIMD booleans to use bitwise logic operators"
701d8dee2 Update SIMD booleans to use bitwise logic operators
e98b93a61 Add SIMD fallbacks for missing builtins
466f68e3a Add some more core math and SIMD functions
2022-11-15 23:07:11 +00:00
cfc5a5d10e Upgrade Android Flutter app to work with newer version 2022-05-16 15:30:16 +01:00
d31388d6e4 Initial checkin of Rive 2 runtime. 2020-07-08 16:36:55 -07:00