* feat: Allow using `Error` as type
* feat: Add `throwError(error)` func to test object
* feat: Test `throwError(error)`
* Update getTests.ts
* fix: Fix bridging `std::exception_ptr` to Swift `Error`
* fix: Fix `__rejecter` still using `std.exception_ptr`
* fix: Fix Java `JThrowable` conversion
* fix: Update error message
* fix: Fix `__ndk1` prefix on Android
* fix: Make `reject` just forward to `exception_ptr`
* fix: Use `std::exception_ptr` to preserve message
* fix: Catch exception
* fix: Fix `JSIConverter`
* Update AssertPromiseState.hpp
* Ok kinda fix?
* ugh
* fix again
* Update JSIConverter+Promise.hpp
* chore: Rename `_result` to `_state`
* feat: Allow comparing message
* fix: Fix `RuntimeError.description`
* feat: Test all of those error messages as well
* feat: Support passing `Promise` to Kotlin
* feat: Add `onResolvedListener`
* feat: Add `.then`, `.catch` and `.await` to Promise!
* feat: Use `await`
* feat: Use `Throwable` instead of `String` for error on Android
* Update Promise.kt
* chore: Remove unused `reject(string)` function now
* Update Promise.hpp
* Update Promise.hpp
* feat: Implement `awaitPromise(..)` on iOS
* feat: Add `RuntimeError` and `.toCpp` to Swift
* fix: Fix duplicate symbol in `RuntimeError`
* feat: Add `ErrorType`
* feat: Add `const&` funcs to `Promise` for Swift
* feat: Add `dependencies` to SwiftCxxBridge
* fix: `error` type
* feat: Add `RuntimeError.from(std.exception)`
* feat: Add `getFunctionCopy()` to `SwiftClosure`
* fix: Account for `Promise<void>` resolver
* fix: Fix `UnsafeMutableRawPointer` being nullable (wrong type)
* nitrogen
* clean
* Update HybridTestObjectSwiftKotlinSpecCxx.swift
* feat: Add actual Promise listeners!!
* fix: Add `addOnResolvedListenerCopy` func for some cases
* chore: Format
* fix: Make `getFunctionCopy()` const
* feat: Support `Promise<void>` from JS!
* feat: Add `awaitAndGet` and `awaitAndGetComplex` promise tests
* feat: Test both new functions
* Slap a good ol' `mutex` on `Promise`
* fix: Fix `Promise<void>` never resolving because args count was `1` (`undefined`)
* fix: Fix Android wrong return type
* Update HybridTestObjectCpp.cpp
* feat: Allow converting `Promise` from JS to C++
* feat: Only expose `create()` in Promise
* fix: Use new `create()` fn
* feat: Add test for `awaitPromise(...)`
* fix: Call `.then` / `.catch`
* Delete `JSPromise`
* fix: Don't swallow errors in timeouted promise
* chore: Add `exception` include
* fix: Fix promise test
* fix: Properly chain .then and .catch functions
* Update getTests.ts
* chore: Format
* fix: Implement `canConvert` for Promise
* 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