Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix HybridObjectRegistry not being found with JNI in release #316

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// JHybridObjectInitializer.hpp
// DoubleConversion
// react-native-nitro
//
// Created by Marc Rousavy on 22.07.24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// JHybridObjectRegistry.cpp
// DoubleConversion
// react-native-nitro
//
// Created by Marc Rousavy on 22.07.24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// JHybridObjectRegistry.hpp
// DoubleConversion
// react-native-nitro
//
// Created by Marc Rousavy on 22.07.24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package com.margelo.nitro.core;

import androidx.annotation.Keep;
import com.facebook.proguard.annotations.DoNotStrip;
import com.margelo.nitro.JNIOnLoad;

/**
* A registry that holds initializers for HybridObjects.
* This will be used to initialize them from JS using `NitroModules.createHybridObject<T>(name)`.
* @noinspection JavaJniMissingFunction
*/
@Keep
@DoNotStrip
public class HybridObjectRegistry {
static {
JNIOnLoad.initializeNativeNitro();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// HybridObjectRegistry.cpp
// DoubleConversion
// react-native-nitro
//
// Created by Marc Rousavy on 22.07.24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// HybridObjectRegistry.hpp
// DoubleConversion
// react-native-nitro
//
// Created by Marc Rousavy on 22.07.24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// NativeNitroModules+NewArch.mm
// DoubleConversion
// react-native-nitro
//
// Created by Marc Rousavy on 21.06.24.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// NativeNitroModules+OldArch.mm
// DoubleConversion
// react-native-nitro
//
// Created by Marc Rousavy on 21.06.24.
//
Expand Down
Loading