Skip to content

Commit bd45ebf

Browse files
authored
Merge pull request #82 from prathameshmm02/react-native-81-support
React Native 0.81 support
2 parents a8614e4 + 5b6731c commit bd45ebf

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

android/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.4.1)
22

33
set (CMAKE_VERBOSE_MAKEFILE ON)
4-
set (CMAKE_CXX_STANDARD 14)
4+
set (CMAKE_CXX_STANDARD 20)
55

66
# add directories to "include" search paths
77
include_directories(
@@ -39,5 +39,8 @@ add_library(libsodium
3939
cpp-adapter.cpp
4040
)
4141

42+
# Enable Android 16kb native library alignment
43+
target_link_options(libsodium PRIVATE "-Wl,-z,max-page-size=16384")
44+
4245
# link the sodium lib with our "libsodium" library target defined earlier
4346
target_link_libraries(libsodium sodium)

libsodium/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
55
cd $script_dir
66

7-
source_file='libsodium-1.0.19-stable.tar.gz'
7+
source_file='libsodium-1.0.20-stable.tar.gz'
88
source_dir='libsodium-stable'
99
build_dir='build'
1010

@@ -22,7 +22,7 @@ cd $source_dir
2222
current_platform=`uname`
2323

2424
if [ "$current_platform" == 'Darwin' ]; then
25-
IOS_VERSION_MIN=10.0.0 dist-build/apple-xcframework.sh
25+
LIBSODIUM_MINIMAL_BUILD=1 IOS_VERSION_MIN=15.1.0 dist-build/apple-xcframework.sh
2626
fi
2727

2828
NDK_PLATFORM=android-21 dist-build/android-armv7-a.sh

libsodium/build.tgz

3.99 MB
Binary file not shown.

libsodium/libsodium-1.0.19-stable.tar.gz.minisig

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
untrusted comment: signature from minisign secret key
2+
RUQf6LRCGA9i5/aZkktGE+xoBxT9uY/XFSJq4Fu0FOD9lrOdhj3+T4OgDrQA9OeYcOqO7Ek0xac9/mXr5RVyK6Qbkn5abF+UmwA=
3+
trusted comment: timestamp:1758411195 file:libsodium-stable.tar.gz hashed
4+
4iAbqfj2hAV1MFmmv4rESpEs2ALLmnoFJNdpFK5TJPHGgI/DkJm1joc/UnRHGTtkyN6CllqowFo2lzZzsD/5BQ==

react-native-libsodium.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Pod::Spec.new do |s|
2929
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
3030
}
3131
s.dependency "React-Codegen"
32-
s.dependency "RCT-Folly"
32+
if ENV['RCT_USE_RN_DEP'] != '1'
33+
s.dependency 'RCT-Folly'
34+
end
3335
s.dependency "RCTRequired"
3436
s.dependency "RCTTypeSafety"
3537
s.dependency "ReactCommon/turbomodule/core"

0 commit comments

Comments
 (0)