Commit Graph

17 Commits

Author SHA1 Message Date
bodymovin
6362192a61 data bind artboards rcp file (#10214) c542b9b7ac
* make file ref counted

* migrate File to refcnt

* add bindable artboard class to keep file reference

* feat(unity): support rcp file and BindableArtboard class (#10228)

* refactor(apple): use updated file bindable artboard apis (#10229)

* update command queue to support bindable artboards

* use bindable artboards on command queue

* self manage view model instances in js runtime

* change remaining viewModelInstanceRuntimes to rcp

* refactor(apple): update view model instances to use rcp (#10298)

* refactor(unity): support rcp ViewModelInstanceRuntime (#10309)

* rebase fix

* deprecate getArtboard in favor of getBindableArtboard

* fix merge

* remove unused lambda capture

* fix rive binding

* feat(Android): RCP File, VMI, and add bindable artboards (#10456)

* refactor: C++ refactors

- Import from long (incorrect) -> jlong
- Header clang-tidy fix
- Use reinterpret_cast instead of C-style cast
- Break out some variables instead of long one liners
- Use auto
- Remove unused env and thisObj

# Conflicts:
#	packages/runtime_android/kotlin/src/main/cpp/src/helpers/general.cpp

* docs: Improve documentation on the File class

* feat: Support bindable artboard type and RCP VMIs

# Conflicts:
#	packages/runtime_android/kotlin/src/androidTest/java/app/rive/runtime/kotlin/core/RiveDataBindingTest.kt

* feat: Support RCP files

* refactor: Change from +1/-1 ref to just release

* fix: Moved to the more appropriate null pointer for GetStringUTFChars

* replace unref with release

Co-authored-by: Adam <67035612+damzobridge@users.noreply.github.com>
Co-authored-by: David Skuza <david@rive.app>
Co-authored-by: Erik <erik@rive.app>
Co-authored-by: hernan <hernan@rive.app>
2025-09-30 00:01:40 +00:00
csmartdalton
163f1beef3 Drop the ColumnLimit to 80 for clang-format
This gives better support for smaller screens and side-by-side windows.

Also standardize the formatting check on GitHub on version 17.

Diffs=
e52e9fff29 Drop the ColumnLimit to 80 for clang-format (#8320)

Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
2024-10-11 19:22:48 +00:00
bodymovin
2b9cfe13fc add bindable properties for state machines
This PR sets the fundamental pieces for PRs that will be coming afterward to support data binding state machines.
The most important parts are:
- bindable properties that will be used as binding points for conditions, listeners, and blend animations
- data bind objects don't extend from Component anymore to decouple them from artboards
- because of that, now data bind objects are written in the context of their bound object so there is a unified way for setting data bind targets

The rest is the usual boilerplate code from core objects and some inheritance changes

Diffs=
b5f342002 add bindable properties for state machines (#7640)

Co-authored-by: hernan <hernan@rive.app>
2024-07-22 22:50:42 +00:00
csmartdalton
9c3168ef9d clang-format updates
- Put braces on their own line
- Turn off single-line case labels

Diffs=
32e79999a clang-format updates
2022-10-03 20:23:45 +00:00
Luigi Rosso
fc1a4dde4c Rename event->listener and update defs. 2022-05-31 12:04:46 -07:00
Mike Reed
538b9f846c Store layer and input as unique_ptrs 2022-04-25 19:34:17 -04:00
Luigi Rosso
682381b8db Loading input changes 2022-04-25 12:07:55 -04:00
Luigi Rosso
8943034441 Starting to load events and tests. 2022-04-25 12:07:55 -04:00
Luigi Rosso
af80f46e91 Core int to uint_32t 2022-04-02 16:09:34 -07:00
Chris Dalton
5157aa292c Bump .clang-format to 100 columns 2022-03-28 13:11:18 -06:00
Mike Reed
e60d5ab532 apply new format 2022-02-17 07:09:03 -05:00
Mike Reed
ea01b85195 Convert tags to spaces 2022-02-10 10:01:57 -05:00
JCash
d1af34bec2 Moved header files, updated cpp files 2021-08-09 13:23:13 -07:00
Luigi Rosso
7140f05a4b Getting the bulk of the refactor for blend states in. 2021-05-17 20:25:13 -07:00
Luigi Rosso
92fbbf5570 Getting more of the state machine instance in. 2021-04-12 11:39:59 -07:00
Luigi Rosso
448deae118 Getting more of the state machine importing and dealing with missing objects. Also added imgui to viewer. 2021-04-12 11:39:59 -07:00
Luigi Rosso
1584bb8159 Adding state machine importing and core exitTime. 2021-04-12 11:39:59 -07:00