react-native-nitro-ark 0.0.24 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,11 +11,16 @@ set(LIBS_DIR "${ANDROID_DIR}/src/main/jniLibs/${ANDROID_ABI}")
11
11
 
12
12
  # Check for required files
13
13
  set(BARK_LIB "${LIBS_DIR}/libbark_cpp.a")
14
+ set(BARK_CXX_LIB "${LIBS_DIR}/libcxxbridge1.a")
14
15
 
15
16
  if(NOT EXISTS "${BARK_LIB}")
16
17
  message(FATAL_ERROR "libbark_cpp.a not found at: ${BARK_LIB}")
17
18
  endif()
18
19
 
20
+ if(NOT EXISTS "${BARK_CXX_LIB}")
21
+ message(FATAL_ERROR "libcxxbridge1.a not found at: ${BARK_CXX_LIB}")
22
+ endif()
23
+
19
24
  message(STATUS "Using libraries from: ${LIBS_DIR}")
20
25
 
21
26
  # Define C++ library and add all sources
@@ -30,6 +35,7 @@ add_library(
30
35
  target_include_directories(${PROJECT_NAME}
31
36
  PRIVATE
32
37
  ${CPP_DIR}
38
+ ${CPP_DIR}/generated
33
39
  ${ANDROID_DIR}/src/main/cpp
34
40
  ${LIBS_DIR}
35
41
  )
@@ -43,6 +49,11 @@ set_target_properties(bark_lib PROPERTIES
43
49
  IMPORTED_LOCATION "${BARK_LIB}"
44
50
  )
45
51
 
52
+ add_library(bark_cxx_lib STATIC IMPORTED)
53
+ set_target_properties(bark_cxx_lib PROPERTIES
54
+ IMPORTED_LOCATION "${BARK_CXX_LIB}"
55
+ )
56
+
46
57
  # Additional compiler flags
47
58
  target_compile_options(${PROJECT_NAME}
48
59
  PRIVATE
@@ -57,6 +68,7 @@ include(${CMAKE_SOURCE_DIR}/../nitrogen/generated/android/NitroArk+autolinking.c
57
68
  target_link_libraries(
58
69
  ${PROJECT_NAME}
59
70
  bark_lib
71
+ bark_cxx_lib
60
72
  ${LOG_LIB}
61
73
  dl
62
74
  m