Commit Graph
14 Commits
Author SHA1 Message Date
Marc RousavyandGitHub 4ffa3ae4ce fix: Replace placeholders to make them windows compatible (<<*>> -> $$*$$) (#385) 2024-12-03 15:59:19 +01:00
Marc RousavyandGitHub b916d5fd46 fix: Check std::exception_ptr for null (#381)
* fix: Check `std::exception_ptr` for null

* Replace `nullptr` with `null` in some errors
2024-12-02 15:21:38 +01:00
Marc RousavyandGitHub 1f3a004552 fix: Fix HybridObjectRegistry not being found with JNI in release (#316)
* fix: Fix `HybridObjectRegistry` not being found with JNI in release

* chore: Rename comment
2024-11-11 11:46:36 +01:00
Marc RousavyandGitHub 46c9ca0a1b fix: Make string literals throw again, and test optional enums (#135)
* fix: Make string literals throw again, and test optional enums

* Update Podfile.lock

* fix tests

* hm compiler doesnt work

* fix: Fix nitrogen for optional enums

* fix: Optional enums or ArrayBuffers can be bridged directly

* fix: Disable codegen for Nitro Modules

* fix: Rename `Spec` to avoid running codegen

* fix: Disable autolinking by renaming the file so codegen doesnt find it

* fix: Format

* Update HybridObjectRegistry.cpp

* Update HybridObjectRegistry.cpp
2024-09-16 17:34:14 +02:00
Marc RousavyandGitHub 03e1a716cf fix: Fix NITRO_DEBUG debug/release preprocessor directive (#132)
* fix: Use `NITRO_DEBUG` flag to predictably run debug/release code

* feat: Add `NitroModules.buildType`

* fix: Style `debug` label
2024-09-16 16:18:05 +02:00
Marc RousavyandGitHub 0f04af9a89 feat: Fully automatic autolinking for Nitrogen (#117)
* move to folders

* Refactor autolinking

* Generate code

* fix: Fix `map` undefined in `unregisterHybridObjectConstructor`

* Create `<ModuleName>OnLoad.mm`

* feat: Add register calls

* hmm

* Update createHybridObjectInitializer.ts

* i am stupid

* Add `autolinking` to `nitro.json`

* Fix missing includes

* feat: Create Swift part for iOS autolinking... 👀

* fix duplicate symbols...

* feat: Properly create Swift types

* Rename to `Autolinking`

* docs: Update docs on new autogenerate setup

* Android base

* It works

* Base

* Initialize natives

* fix: Set up autolinking Cpp file

* Update NitroImageOnLoad.hpp

* feat: Try

* fix: Fix Promise using `global_ref`

* Update index.ts

* fix: Replace `CriticalNative` with `FastNative`

* feat: Generate the code to register JNI.. almost there!

* fix: Fix JNI paths (`L*;`)

* Update nitrogen.md
2024-09-12 17:19:50 +02:00
Marc Rousavy 9f2fd827c9 feat: Add unregisterHybridObjectConstructor(...) method for @jpudysz
don't use this lol
2024-09-09 17:23:35 +02:00
Marc RousavyandGitHub e7b9f412eb fix: Rewrite Logger to use platform NSLog / __android_log_print (#54)
* 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
2024-08-20 16:20:44 +02:00
Marc RousavyandGitHub acca5baaa4 fix: Replace #if DEBUG with #ifndef NDEBUG to make it work on Android (#53)
* fix: Fix `hasNativeState` checks and provide better errors

* fix: Replace `#if DEBUG` with `#ifndef NDEBUG` to make it work on Android
2024-08-20 15:30:03 +02:00
Marc RousavyandGitHub 6d2338d096 feat: Add NitroModules.hasHybridObject(..) and NitroModules.getAllHybridMethodNames() (#30)
* feat: Add `NitroModules.hasHybridObject(..)` and `NitroModules.getAllHybridMethodNames()`

* Fix docs
2024-08-14 01:13:09 +02:00
Marc Rousavy ec910a7b27 fix: Add nullptr check to HybridObjectRegistry 2024-08-08 20:28:43 +02:00
Marc Rousavy 9d69ba04ab chore: Run clang format 2024-07-31 17:39:56 +02:00
Marc Rousavy b2a86c8433 Try link JNI 2024-07-29 15:51:09 +02:00
Marc Rousavy 54753bbd7d Successfully register hybrid objects!! woohoo 2024-07-22 02:06:12 +02:00