mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
* 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