Skip to content

Commit aeb1d45

Browse files
authored
feat: add xsalsa20 cipher from libsodium (#689)
1 parent 9492fbc commit aeb1d45

27 files changed

+987
-1345
lines changed

.clangd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CompileFlags:
2+
Add: [
3+
# C++ Standard
4+
-std=c++20,
5+
6+
# Project include paths
7+
-Ipackages/react-native-quick-crypto/cpp/**,
8+
9+
# Dependencies
10+
-Ipackages/react-native-quick-crypto/deps/**,
11+
12+
# Libsodium includes
13+
-Ipackages/react-native-quick-crypto/ios/libsodium-stable/src/libsodium/include,
14+
15+
# Nitro Modules includes
16+
-Ipackages/react-native-quick-crypto/nitrogen/generated/shared/c++,
17+
-Inode_modules/react-native-nitro-modules/cpp/**,
18+
19+
# OpenSSL includes
20+
-I/opt/homebrew/Cellar/openssl@3/3.*/include,
21+
]

.github/dependabot.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,33 @@ updates:
77
schedule:
88
interval: "weekly"
99
ignore:
10-
- "react"
11-
- "react-native"
12-
- "@react-native/eslint-plugin"
13-
- "@react-native/metro-config"
14-
- "@react-native/eslint-config"
15-
- "@react-native/gradle-plugin"
16-
- "@react-native-community/cli"
17-
- "@react-native-community/cli-platform-android"
18-
- "@react-native-community/cli-platform-ios"
19-
- "@types/react"
20-
- "chai"
21-
- "@types/chai"
10+
- dependency-name: "react"
11+
- dependency-name: "react-native"
12+
- dependency-name: "@react-native/eslint-plugin"
13+
- dependency-name: "@react-native/metro-config"
14+
- dependency-name: "@react-native/eslint-config"
15+
- dependency-name: "@react-native/gradle-plugin"
16+
- dependency-name: "@react-native-community/cli"
17+
- dependency-name: "@react-native-community/cli-platform-android"
18+
- dependency-name: "@react-native-community/cli-platform-ios"
19+
- dependency-name: "@types/react"
20+
- dependency-name: "chai"
21+
versions: [ "<5.0.0" ]
22+
- dependency-name: "@types/chai"
23+
versions: [ "<5.0.0" ]
2224
- package-ecosystem: "bun"
2325
target-branch: "0.x"
2426
directory: "/"
2527
schedule:
2628
interval: "weekly"
2729
ignore:
28-
- "react"
29-
- "react-native"
30-
- "@react-native/eslint-plugin"
31-
- "@react-native/metro-config"
32-
- "@react-native/eslint-config"
33-
- "@react-native/gradle-plugin"
34-
- "@react-native-community/cli"
35-
- "@react-native-community/cli-platform-android"
36-
- "@react-native-community/cli-platform-ios"
37-
- "@types/react"
30+
- dependency-name: "react"
31+
- dependency-name: "react-native"
32+
- dependency-name: "@react-native/eslint-plugin"
33+
- dependency-name: "@react-native/metro-config"
34+
- dependency-name: "@react-native/eslint-config"
35+
- dependency-name: "@react-native/gradle-plugin"
36+
- dependency-name: "@react-native-community/cli"
37+
- dependency-name: "@react-native-community/cli-platform-android"
38+
- dependency-name: "@react-native-community/cli-platform-ios"
39+
- dependency-name: "@types/react"

.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Every time you choose to apply a rule(s), explicitly state the rule(s) in the ou
2222

2323
## Rules
2424

25-
- For C++ includes, do not try to add absolute or relative paths. They have to be resolved by the build system.
25+
- For C++ includes, do not try to add absolute paths. They have to be resolved by the build system.
2626
- Use smart pointers in C++.
2727
- Use modern C++ features.
2828
- Attempt to reduce the amount of code rather than add more.

bun.lock

Lines changed: 61 additions & 820 deletions
Large diffs are not rendered by default.
-1.07 KB
Loading

docs/test_suite_results_ios.png

-974 Bytes
Loading

example/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ ruby ">= 2.6.10"
77
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'xcodeproj', '< 1.26.0'
10+
gem 'concurrent-ruby', '< 1.3.4'

example/Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ GEM
6565
netrc (~> 0.11)
6666
cocoapods-try (1.2.0)
6767
colored2 (3.1.2)
68-
concurrent-ruby (1.3.4)
68+
concurrent-ruby (1.3.3)
6969
connection_pool (2.4.1)
7070
drb (2.2.1)
7171
escape (0.0.4)
@@ -108,6 +108,7 @@ PLATFORMS
108108
DEPENDENCIES
109109
activesupport (>= 6.1.7.5, != 7.1.0)
110110
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
111+
concurrent-ruby (< 1.3.4)
111112
xcodeproj (< 1.26.0)
112113

113114
RUBY VERSION

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
compileSdkVersion = 35
66
targetSdkVersion = 34
77
ndkVersion = "26.1.10909125"
8-
kotlinVersion = "1.9.24"
8+
kotlinVersion = "1.9.25"
99
}
1010
repositories {
1111
google()

0 commit comments

Comments
 (0)