diff --git a/.changeset/choredependencies_upgrade_uniffi_rs_to_v0280.md b/.changeset/choredependencies_upgrade_uniffi_rs_to_v0280.md deleted file mode 100644 index 53d1a654..00000000 --- a/.changeset/choredependencies_upgrade_uniffi_rs_to_v0280.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -default: patch ---- - -# chore(dependencies): 🤖 upgrade uniffi-rs to v0.28.0 diff --git a/.changeset/chorewasm_reduce_wasm_binary_size.md b/.changeset/chorewasm_reduce_wasm_binary_size.md deleted file mode 100644 index daba26f2..00000000 --- a/.changeset/chorewasm_reduce_wasm_binary_size.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -default: minor ---- - -# chore(wasm): 🤖 reduce WASM binary size - -- **WASM Binary Optimization:** - - - Applied the `-Oz` flag with `emcc` for size optimization. - - Used the compact `emmalloc` allocator. - - Used the rust nightly toolchain to remove location details and panic string formatting for a smaller binary size. - - Reduced binary size by ~142 KB (from 1,245,102 bytes to 1,099,243 bytes). - -- **JavaScript Glue Optimization:** - - - Enabled the Closure compiler with the `--closure=1` flag. - - Reduced glue code size by ~36.88 KB (from 67,964 bytes to 30,197 bytes). diff --git a/CHANGELOG.md b/CHANGELOG.md index bc446c12..fe4cf3fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,49 @@ +## 0.1.26 (2024-07-12) + +### Fixes + +#### chore(dependencies): 🤖 upgrade thorvg@0.14.1 + +## 0.1.25 (2024-07-05) + +### Features + +#### chore: 🤖 upgrade thorvg@0.14.0 + +## 0.1.24 (2024-06-27) + +### Features + +#### 🎸 expose lottie animation original size (#180) + +#### added context methods (#191) + +#### added load_state_machine_data (#190) + +#### chore(wasm): 🤖 reduce WASM binary size + +- **WASM Binary Optimization:** + + - Applied the `-Oz` flag with `emcc` for size optimization. + - Used the compact `emmalloc` allocator. + - Used the rust nightly toolchain to remove location details and panic string formatting for a smaller binary size. + - Reduced binary size by ~142 KB (from 1,245,102 bytes to 1,099,243 bytes). + +- **JavaScript Glue Optimization:** + + - Enabled the Closure compiler with the `--closure=1` flag. + - Reduced glue code size by ~36.88 KB (from 67,964 bytes to 30,197 bytes). + +### Fixes + +#### removed commented out target_arch (#184) + +#### iOS bundle minimum supported version on AppStore fix (#185) + +#### 🐛 manifest_string() panics when no manifest available (#189) + +#### chore(dependencies): 🤖 upgrade uniffi-rs to v0.28.0 + ## 0.1.23 (2024-06-19) ### Features diff --git a/deps/modules/thorvg b/deps/modules/thorvg index 30aa742b..70b2f2da 160000 --- a/deps/modules/thorvg +++ b/deps/modules/thorvg @@ -1 +1 @@ -Subproject commit 30aa742b26e35e170f927c8e5ebdaa68dea6f48f +Subproject commit 70b2f2dad158316dd08166d613b425248b36fd27 diff --git a/dotlottie-ffi/Cargo.toml b/dotlottie-ffi/Cargo.toml index 9ea45634..078ea0e3 100644 --- a/dotlottie-ffi/Cargo.toml +++ b/dotlottie-ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dotlottie-ffi" -version = "0.1.23" +version = "0.1.26" edition = "2021" build = "build.rs" diff --git a/dotlottie-ffi/src/dotlottie_player_cpp.udl b/dotlottie-ffi/src/dotlottie_player_cpp.udl index ebf8fae8..6e696f55 100644 --- a/dotlottie-ffi/src/dotlottie_player_cpp.udl +++ b/dotlottie-ffi/src/dotlottie_player_cpp.udl @@ -84,6 +84,9 @@ interface DotLottiePlayer { boolean start_state_machine(); boolean stop_state_machine(); boolean post_serialized_event(string event); + boolean set_state_machine_numeric_context([ByRef] string key, f32 value); + boolean set_state_machine_string_context([ByRef] string key, [ByRef] string value); + boolean set_state_machine_boolean_context([ByRef] string key, boolean value); sequence state_machine_framework_setup(); boolean load_state_machine_data([ByRef] string state_machine); };