Tommy Nguyen and GitHub
bff32c0755
fix: Fix crash when no modules are registered ( #536 )
2025-02-12 12:30:56 -08:00
Marc Rousavy and GitHub
98575fd5d2
fix: Log all hybrid object names as joined string to help user ( #508 )
...
* fix: Log all hybrid object names as joined string to help user
* fix: Avoid `std::string` call
* fix: Include
* Rename something
* perf: even more
2025-01-22 14:59:51 +01:00
Marc Rousavy and GitHub
33871840a9
feat: Create HybridView code generator base ( #494 )
...
* feat: Create `HybridView` Swift and Kotlin base
* fix: HybridView
* feat: Add `HybridView.ts` to nitrogen
* feat: Add necessary changes to nitrogen
* fix: Actually resolve type to find base types (HybridView -> HybridObject)
* feat: Generate TestView.nitro.ts 🎉
* fix: Fix hybrid view base accidentally
* fix: Pass `HybridData` to super
* fix: Finally fix `HybridView` recursion
* fix: Make `HybridView` the protocol's base instead
* Always inherit HybridObject
* run nitrogen
* feat: Create props file
* Name it component
* fix: Indent
* Add warn for RN 78 requirement
* move into `views`
* Create `.mm` file as well
* Add super.load
* fix: Fix namespace
* fix: indent
* fix it?
* Update NitroDefines.hpp
* fix: Make `/views/` private header
* Add filter func and some docs
* feat: More docs
* sort
* feat: Also create Android part
* feat: Implement actual prop parsing
* ah fix
* fix: Runtime type
* fix: Add `hashString(string_view)` equivalent
* fix: Add string_view and string overloads
* fix: indent shadownode
* whoops
* fix: Wrap in state
* comments
* fix: Fix throw when RN isnt present
* fix: Fix `Any?` type
* fix: Includes
* feat: Autolink it and implement it..?
* fix: Load native part of `NitroImage` in shared OnLoad.kt file
* fix: Actually add view-manager to Package
* fix: Rename to Hybrid* prefix
* fix: Use the `*OnLoad` init func now
* fix: Remove duplicate JNI registrations
2025-01-15 20:18:15 +01:00
Marc Rousavy and GitHub
4ffa3ae4ce
fix: Replace placeholders to make them windows compatible (<<*>> -> $$*$$) ( #385 )
2024-12-03 15:59:19 +01:00
Marc Rousavy and GitHub
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 Rousavy and GitHub
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 Rousavy and GitHub
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 Rousavy and GitHub
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 Rousavy and GitHub
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 Rousavy and GitHub
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 Rousavy and GitHub
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 Rousavy and GitHub
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