* fix: Add `Promise.hpp` to podspec
* feat: Use new `Promise<T>` type for C++ and Swift
just a minor bug left
* chore: Format
* fix: Fix nitrogen to use old `future` for function return types FOR NOW
* feat: Use new `Promise<T>` on Kotlin!
* chore: Remove unused `PromiseHolder` now
* chore: Format
* feat: Create `Promise.hpp`
* feat: Add `JSIConverter+Exception`
* feat: Base for `Promise` and `Exception`
* fix: Implement Exception conversion
* Implement `Promise::awaitFuture`
* Revive `+Future`
* fix: Speed up creating `ThreadPool`
* fix: Make `+Future` also just use `+Promise` impl
* fix: Thread pool has 10 threads now.
* feat: Allow `ThreadPool` to grow dynamically
* chore: Format C++
* 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
* feat: Prettify Prototype names
* perf: Make it fast in release as well.
* Update TypeInfo.hpp
* fix: Remove unnecessary method now
* perf: Make namespace removal `::` faster
* Update TypeInfo.hpp
* fix: Make Nitro core compile on non-react-native environments
Guards `CallInvokerDispatcher` only if CallInvoker is available
* docs: Remove "Markdown page example" lol
* fix: Try generating Variants for Swift
* Update SwiftCxxBridgedType.ts
* feat: Create Variant Wrapper struct
* feat: Implement Kotlin Variant
* Update Variant.kt
* feat: Try this Variant
* feat: Stub out variant conversion for JNI for now
* fix: Do not strip in Proguard
* Update Variant.kt
* Format
* Update JVariant.hpp
* feat: Implement JVariant2
* Update JVariant.hpp
* fix: Make it fully dynamic/templated
* feat: Try using JVariant<...>
* fix: Kinda works?
* Update JVariant.hpp
* feat: Fuck all this, we generate variants now
* okay creating works
* Create helper
* feat: Implement Variant parsing to C++ as well
* fix: Clean up and remove `J`
* Same line
* Rename
* feat: Add `NitroModules.box(...)` to support using Nitro Modules from any Runtime/Worklets context
* feat: Add `getPropertyNames` for `BoxedHybridObject`
* docs: Create Worklets/Threading docs
* fix: Fix `SwiftClosure` not reading `void*` properly - use `Unmanaged<T>` again
* feat: Add a `dispose()` method to `HybridObject`
* feat: Split `registerRawHybridMethod` out of `registerHybridMethod`
* fix: Throw better error for when `NativeState` is nullptr
* Better debug info
* `FunctionType` -> `FunctionKind`
* fix: Either dynamically get name, or statically through typeinfo.
* feat: Safely wrap a Swift closure in a `SwiftClosure` struct callable from C++
* Unsafely unwrap (`!`)
* fix: Fix visibility modifiers
* fix: Rename `ClosureWrapper` -> `SwiftClosure`
* Update SwiftClosure.hpp
* Update SwiftClosure.hpp
* Create `SwiftFunction` base
* regen
* feat: Properly create `std::function` from Swift closure
* fix: Forward params I think
* Update SwiftCxxBridgedType.ts
* feat: Use static function pointer to allow for C++ types
* fix: Only do this for Swift
* Update SwiftCxxBridgedType.ts
* fix: Properly unwrap using `Unmanaged`
* fix: Fix Swift compiler crash by moving function to `std::shared_ptr` before capturing it
* feat: Properly share func before capturing it
* Update SwiftCxxTypeHelper.ts
* feat: Create `AnyMapHolder` for Swift
* feat: Bridge other types
* fix: Fix types
* feat: Make all public
* fix: Remove Arrays because of the Swift compiler bug
* feat: Create `AnyMapHolder`
* fix: Rename record `someMap` to `someRecord`
* feat: Use `someMap`
* fix: Fix "22 duplicate symbols" by making the funcs inline
* Update README.md
* fix: Fix wrong include..?
* fix: Reimplement NitroLogger as a platform-specific logger
* fix: Copy args, and use proper tag
* fix: Fix sprintf crash because of wrong format argument
* fix: Fix Logger usage on iOS
* feat: Base for Kotlin modules
* fix: Properly make sure Nitro C++ is initialized
* Update JNIOnLoad.java
* feat: Set up `initHybrid()` in JHybridObject
* chore: Fix a bunch of linter issues
* fix: Fix fbjni codegen
* Update JHybridObject.hpp
* fix: Make `initHybrid()` JVM static
* feat: Make `mHybridData` private member of each in inheritance chain
* Generate specs
* feat: Set up proper inheritance graph in FBJNI using virtual inheritance `HybridObject` (#46)
* feat: Try to set up proper inheritance in FBJNI
* Virtual inheritance
* Update JHybridImageFactorySpec.cpp
* It works...
* feat: Virtual base
* Update HybridTestObject.hpp
* Update CMakeLists.txt
* Update JHybridObject.hpp
* Virtual dtor
* Dynamic cast to NativeState 🤔
* Virtual proper
* feat: Generate as virtual base?
* chore: Change to `updateNative`
* feat: Cannot default-construct HybridObject
* fix: Use `dynamic` pointer cast for `HybridContext` because `HybridObject` is now a virtual base
* Update README.md
* feat: Allow converting a Swift closure to a C++ function
* Use `bind`
* return `func`
* feat: Generate std::bind placeholders
* Update ClosureWrapper.swift
* feat: Allow creating C++ func from (no argument) Swift callback!
* throw if func with more parameters is used bi-directionally
* Use helper function `ClosureWrapper.wrap`
* Update ClosureWrapper.swift
* feat: Support `ArrayBuffer` in Swift
* feat: Create `ArrayBufferHolder` that holds a `std::shared_ptr<ArrayBuffer>`
* fix: Fix `void*` cast in Swift
* feat: Create `.allocate(..)` helper init
* fix: Fix `initializeToZero`
* feat: Add `createNewBuffer`
* fix: regenerate missing specs
* fix: Move import to iOS only, on Android we dont have that
* chore: Format
* feat: Convert `swift::String`
* Add arrays to swift
* Update createSwiftUmbrellaHeader.ts
* fix: Return values directly now, no more result types (breaks exceptions, fixes generics)
* Expose Swift test object
* feat: Try functions
* fix: Include pragma once
* Pragma
* feat: Create `Callback_...` for Swift
* add comments
* Create `Callback_*` in `bridge/`
* feat: `AnyMap` reserve ctor
* Create SwiftCxxTypeHelper.ts
* feat: Create Swift -> C++ bridged helper types
* feat: i dont even know what im doing anymore
* feat: Convert optionals
* indent
* feat: Fix umbrella
* indent
* feat: Cache `toObject(...)` using `jsi::WeakObject` and set `externalMemoryPressure` properly
* feat: Support caching different JSI types - strongly typed
* feat: Make `HybridObject` a `NativeState`
* feat: Get `NativeState` inside `callMethod(...)`, no more passing `this*`
* Update HybridObject.hpp
* fix: Convert NativeState to `jsi::Value` again
* Use `Object.create`
* fix broken test
* feat: Add `__type` hidden state to objects
* chore: Format
* `makeGlobal` -> `makeShared`
* feat: Extract to `HybridObjectPrototype`
* Update HybridObject.hpp
* feat: Properly build Prototype chain
* Cache prototypes
* fix: Fix prototype caching
* Extract to separate file
* fix: Some comments
* chore: Format
* feat: Freeze prototypes
* Remove freeze
* feat: Optimize `NativeState` performance, make it 56x faster (#12)
* fix: Fix `HybridFunction` usage
* Update HybridFunction.hpp
* mark final
* feat: Add new `registerHybrids(...)` API
* fix: Remove logs
* perf: Make `registerHybrids` faster by using function pointer instead of `std::function<...>`
* fix: Turn off memory allocations debugger
* refactor
* Format
* fix: Fix cyclic includes for `JSIConverter+HybridObject`
* DO_NULL_CHECKS
* fix: Use `jsi::Value` directly to avoid down and up casting again
* Add `__type` to `HybridObject` declaration
* feat: Throw `jsi::JSError` again
* feat: Add prototype tests
* feat: Set `__type` on Prototypes as well
* Delete PointerHolder.hpp
* Delete `JSIPrototypeCache`
* fix: Use `jsi::Value` directly