Created
January 20, 2025 04:25
-
-
Save peterpme/8b4f3ada698364d817fc66bc67d74ea0 to your computer and use it in GitHub Desktop.
react-native-bignumber patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/react-native-bignumber/android/CMakeLists.txt b/node_modules/react-native-bignumber/android/CMakeLists.txt | |
index b08d42b..2b86481 100644 | |
--- a/node_modules/react-native-bignumber/android/CMakeLists.txt | |
+++ b/node_modules/react-native-bignumber/android/CMakeLists.txt | |
@@ -1,5 +1,5 @@ | |
project("react-native-bignumber") | |
-cmake_minimum_required(VERSION 3.9.0) | |
+cmake_minimum_required(VERSION 3.10.2) | |
set(PACKAGE_NAME "reactnativeBigNumber") | |
set(BUILD_DIR ${CMAKE_SOURCE_DIR}/build) | |
@@ -8,6 +8,8 @@ set(CMAKE_CXX_STANDARD 17) | |
# Consume shared libraries and headers from prefabs | |
find_package(fbjni REQUIRED CONFIG) | |
find_package(ReactAndroid REQUIRED CONFIG) | |
+find_package(openssl REQUIRED CONFIG) | |
+find_library(log-lib log) | |
include_directories( | |
"../cpp" | |
@@ -45,24 +47,13 @@ set_target_properties( | |
POSITION_INDEPENDENT_CODE ON | |
) | |
-file(GLOB LIBRN_DIR "${BUILD_DIR}/react-native-0*/jni/${ANDROID_ABI}") | |
- | |
-find_library( | |
- log-lib | |
- log | |
-) | |
- | |
-find_package(openssl REQUIRED CONFIG) | |
- | |
target_link_libraries( | |
${PACKAGE_NAME} | |
- ReactAndroid::turbomodulejsijni | |
fbjni::fbjni | |
${log-lib} | |
ReactAndroid::jsi | |
- ReactAndroid::reactnativejni | |
- ReactAndroid::react_nativemodule_core | |
- android | |
+ ReactAndroid::reactnative | |
openssl::crypto | |
openssl::ssl | |
+ android | |
) | |
diff --git a/node_modules/react-native-bignumber/android/build.gradle b/node_modules/react-native-bignumber/android/build.gradle | |
index e5e68db..5660875 100644 | |
--- a/node_modules/react-native-bignumber/android/build.gradle | |
+++ b/node_modules/react-native-bignumber/android/build.gradle | |
@@ -90,12 +90,14 @@ android { | |
'**/libreactnativejni.so', | |
'**/libjsi.so', | |
'**/libreact_nativemodule_core.so', | |
- '**/libturbomodulejsijni.so' | |
+ '**/libturbomodulejsijni.so', | |
+ '**/libreactnative.so' | |
] | |
} | |
resources { | |
excludes += ['**/MANIFEST.MF'] | |
} | |
+ exclude 'META-INF/LICENSE.md' | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment