* feat: Specify RN version in iOS
* Set RN version
* docs
* fix: Adjust scripts and add bootstrap
* fix: Fix react-native path again
* feat: Add `REACT_NATIVE_VERSION` flag to gradle
* fix: Use `tasks.register` to avoid reconfiguration
* fix: Use `project.layout.buildDirectory` instead of `project.buildDir`
* fix: arguments with comma
* fix: Use `buildDir` again
* fix: Pass `YES`
* feat: Add CMake C++ flags now
* fix: Indicate default overridden `HybridObject` constructor
* perf: Make `equals()` a bit faster
* feat: Add `ArrayBuffer::copyBuffer(..)` API
* feat: Add `wrap` API for Kotlin
* feat: Add `ArrayBuffer.copy(data:)`
* perf: Copy Data a bit more effectively
* fix: Rename a bunch of things
* docs: Add creating docs
* feat: Add `ArrayBufferHolder.toData()`
* feat: Add `ArrayBuffer::copy(std::vector&)`
* perf: Change type of `.data` to `uint8_t*` to avoid upcast
* feat: Add `copyIfNeeded` flag
* Update array-buffers.md
* fix: Reject Promise with timeout if it gets destroyed
If a Promise gets destroyed without ever being resolved or rejected, it goes stale.
This PR fixes this and rejects a Promise with a timeout error if it gets destructed and is still pending
* Add promise typename
* Reject swift promise as well
* Update Promise.hpp
* fix: Build
* Update Dispatcher.cpp
* fix: Also reject `JPromise` if it gets destroyed
* feat: Create `PromiseHolder<T>`
* fix: Fix PromiseHolder
* partial fix
* It works now
* fix: Make `_mutex` a value
* Move ctor
* perf: Move functions
* Add back deprecated func
* more explicit
* fix: Mark all types that are used only in `std::shared_ptr<T>` as `SWIFT_UNSAFE_REFERENCE`
* Update AnyMap.hpp
* fix: Add `SWIFT_PRIVATE`
* fix: Use `SWIFT_NONCOPYABLE` instead!! THAT WORKS
* test: Add test where a callback is called multiple times
* chore: Format
* fix: Fix types (int double)
* fix: fix loops
* Update HybridTestObjectKotlin.kt
* fix: Fix apple's breaking change for type infos
* feat: Use `std::shared_ptr<Promise<T>>` instead of `std::future<T>` for callbacks that return a value
* Update FunctionType.ts
* chore: Lint
* Update Dispatcher.hpp
* chore: Update Podfile.lock
* 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