Commit Graph
4 Commits
Author SHA1 Message Date
Marc RousavyandGitHub d62dbfbed8 feat: Update memorySize when a HybridObject makes a round-trip (#510)
* feat: Update `memorySize` when a HybridObject makes a round-trip

* feat: Add `NitroModules.updateMemorySize(..)` to imperatively update mem size

* feat: Add test for `NitroModules.updateMemorySize`

* feat: Add some more tests for `NitroModules.*`

* feat: Add even more tests

* fix: Use `jsi::Object`

* fix: use `getObject`

* fix: Register `updateMemorySize()`

* Update HybridNitroModulesProxy.cpp
2025-01-22 15:00:01 +01:00
Marc RousavyandGitHub 04e73d8c1d feat: Add native NITRO_VERSION to C++ codebase and warn if it's out of sync (#398)
* feat: Add `NITRO_VERSION` to NitroDefines.hpp and update it post bump

* feat: Log warning if nitro versions don't match
2024-12-05 15:01:37 +01:00
Marc RousavyandGitHub c491d394c1 fix: Perform safer checks for toContain(..) in example, and add NitroModules.hasNativeState(value) (#324)
* chore: Perform safer checks for `toContain(..)` in example

* feat: Add `NitroModules.hasNativeState(value)` to avoid crashing eaxmple in release

* fix: Explicitly check for `toString()` if it has NativeState
2024-11-12 18:18:44 +01:00
Marc RousavyandGitHub dc8f8668f4 feat: Make Nitro itself a Nitro Module and add old-architecture support 🔥 (#175)
* feat: Create `HybridNitroModulesProxy`

* feat: Create `InstallNitro`

* docs: Create `entry-point.md` docs

* fix: Create `JSIConverter<HostObject>` (for BoxedHybridObject)

* Update NitroModulesProxy.ts

* feat: Refactor JS for new module

* feat: Refactor JS again

* feat: Create iOS TurboModule that installs Nitro

* feat: Implement `install()` for old arch (iOS)

* chore: Format

* feat: Implement TurboModule `install()` on Android

* fix: Use `CallInvokerHolderImpl`

* feat: Add CI that tests the build for old architecture

* fix: Fix iOS CI

* fix: Fix CI

* fix: Exclude RN `.so` libraries (like `libjsi.so`) from `packagingOptions`
2024-10-07 15:47:31 +02:00