Skip to content

Commit 0c2683b

Browse files
committed
fix: tweaks to developer setup
1 parent 6d98d44 commit 0c2683b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Standard
44
BasedOnStyle: llvm
5-
Standard: c++14
5+
Standard: c++20
66

77
# Indentation
88
IndentWidth: 2

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"react-native-bouncy-checkbox": "4.1.2",
3838
"react-native-nitro-modules": "0.25.2",
3939
"react-native-quick-base64": "2.2.0",
40-
"react-native-quick-crypto": "1.0.0-beta.20",
40+
"react-native-quick-crypto": "workspace:*",
4141
"react-native-safe-area-context": "5.1.0",
4242
"react-native-screens": "3.35.0",
4343
"react-native-vector-icons": "^10.1.0",

scripts/setup_clang_env.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88
# Set BUILD_DIR to the packages/react-native-quick-crypto/build directory
99
BUILD_DIR="$SCRIPT_DIR/../packages/react-native-quick-crypto/build"
1010

11+
# Create build directory if it doesn't exist
12+
mkdir -p "$BUILD_DIR"
13+
1114
# Convert to absolute path
1215
BUILD_DIR="$(cd "$BUILD_DIR" && pwd)"
1316

@@ -40,7 +43,7 @@ include_directories(
4043
"cpp/random"
4144
"cpp/utils"
4245
"deps/fastpbkdf2"
43-
"deps/ncrypto"
46+
"deps/ncrypto/include"
4447
"build/includes"
4548
"nitrogen/generated/shared/c++"
4649
"../../node_modules/react-native/ReactCommon/jsi"
@@ -62,6 +65,7 @@ add_library(QuickCrypto STATIC
6265
cpp/pbkdf2/HybridPbkdf2.cpp
6366
cpp/random/HybridRandom.cpp
6467
deps/fastpbkdf2/fastpbkdf2.c
68+
deps/ncrypto/src/ncrypto.cpp
6569
)
6670
EOF
6771

0 commit comments

Comments
 (0)