Skip to content

Commit 20570b2

Browse files
committed
fix: nitrogen autolinking files
1 parent 7afb7f9 commit 20570b2

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

package/nitrogen/generated/android/RNQuickSQLite+autolinking.cmake

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ target_link_libraries(
4343
RNQuickSQLite
4444
fbjni::fbjni # <-- Facebook C++ JNI helpers
4545
ReactAndroid::jsi # <-- RN: JSI
46-
ReactAndroid::react_nativemodule_core # <-- RN: TurboModules Core
4746
react-native-nitro-modules::NitroModules # <-- NitroModules Core :)
4847
)
48+
49+
# Link react-native (different prefab between RN 0.75 and RN 0.76)
50+
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
51+
target_link_libraries(
52+
RNQuickSQLite
53+
ReactAndroid::reactnative # <-- RN: Native Modules umbrella prefab
54+
)
55+
else()
56+
target_link_libraries(
57+
RNQuickSQLite
58+
ReactAndroid::react_nativemodule_core # <-- RN: TurboModules Core
59+
)
60+
endif()

package/nitrogen/generated/android/RNQuickSQLite+autolinking.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
/// apply from: '../nitrogen/generated/android/RNQuickSQLite+autolinking.gradle'
1414
/// ```
1515

16+
logger.warn("[NitroModules] 🔥 RNQuickSQLite is boosted by nitro!")
17+
1618
android {
1719
sourceSets {
1820
main {

package/nitrogen/generated/ios/RNQuickSQLite+autolinking.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# ```
2121

2222
def add_nitrogen_files(spec)
23-
Pod::UI.puts "[NitroModules] Adding RNQuickSQLite specs..."
23+
Pod::UI.puts "[NitroModules] 🔥 RNQuickSQLite is boosted by nitro!"
2424

2525
spec.dependency "NitroModules"
2626

package/nitrogen/generated/ios/RNQuickSQLite-Swift-Cxx-Bridge.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77

88
#pragma once
99

10-
#if __has_include(<NitroModules/NitroDefines.hpp>)
11-
#include <NitroModules/NitroDefines.hpp>
12-
#else
13-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14-
#endif
15-
1610
// Forward declarations of C++ defined types
1711

1812

0 commit comments

Comments
 (0)