Skip to content

Commit 5f12ec6

Browse files
update README, update pod name to match android
1 parent 53637bb commit 5f12ec6

File tree

6 files changed

+77
-1824
lines changed

6 files changed

+77
-1824
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88

99
- 🫳 Drop-in replacement for `crypto.getRandomValues`
1010
- ⚡ Uses JSI for faster operations between Native and JS
11-
- 🔒 Native C++ randomization using [libsodium](https://github.com/jedisct1/libsodium)
12-
- ✅ Supports both old and new architecture
11+
- 🔒 Native C++ secure randomization using [libsodium](https://github.com/jedisct1/libsodium)
1312

1413
### Installation
1514

1615
```sh
17-
npm install @korekoi/react-native-get-random-values
16+
npm install react-native-nitro-modules @korekoi/react-native-get-random-values
1817
```
1918

2019
![NPM Version](https://img.shields.io/npm/v/@korekoi/react-native-get-random-values?color=blue&style=flat-square)

react-native-get-random-values.podspec renamed to RNSodium.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
44
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
55

66
Pod::Spec.new do |s|
7-
s.name = "react-native-get-random-values"
7+
s.name = "RNSodium"
88
s.version = package["version"]
99
s.summary = package["description"]
1010
s.homepage = package["homepage"]

example/ios/Podfile.lock

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -956,28 +956,6 @@ PODS:
956956
- React-Mapbuffer (0.74.2):
957957
- glog
958958
- React-debug
959-
- react-native-get-random-values (0.1.0):
960-
- DoubleConversion
961-
- glog
962-
- hermes-engine
963-
- NitroModules
964-
- RCT-Folly (= 2024.01.01.00)
965-
- RCTRequired
966-
- RCTTypeSafety
967-
- React-Codegen
968-
- React-Core
969-
- React-debug
970-
- React-Fabric
971-
- React-featureflags
972-
- React-graphics
973-
- React-ImageManager
974-
- React-NativeModulesApple
975-
- React-RCTFabric
976-
- React-rendererdebug
977-
- React-utils
978-
- ReactCommon/turbomodule/bridging
979-
- ReactCommon/turbomodule/core
980-
- Yoga
981959
- React-nativeconfig (0.74.2)
982960
- React-NativeModulesApple (0.74.2):
983961
- glog
@@ -1207,6 +1185,28 @@ PODS:
12071185
- React-logger (= 0.74.2)
12081186
- React-perflogger (= 0.74.2)
12091187
- React-utils (= 0.74.2)
1188+
- RNSodium (0.1.0):
1189+
- DoubleConversion
1190+
- glog
1191+
- hermes-engine
1192+
- NitroModules
1193+
- RCT-Folly (= 2024.01.01.00)
1194+
- RCTRequired
1195+
- RCTTypeSafety
1196+
- React-Codegen
1197+
- React-Core
1198+
- React-debug
1199+
- React-Fabric
1200+
- React-featureflags
1201+
- React-graphics
1202+
- React-ImageManager
1203+
- React-NativeModulesApple
1204+
- React-RCTFabric
1205+
- React-rendererdebug
1206+
- React-utils
1207+
- ReactCommon/turbomodule/bridging
1208+
- ReactCommon/turbomodule/core
1209+
- Yoga
12101210
- SocketRocket (0.7.0)
12111211
- Yoga (0.0.0)
12121212

@@ -1244,7 +1244,6 @@ DEPENDENCIES:
12441244
- React-jsitracing (from `../node_modules/react-native/ReactCommon/hermes/executor/`)
12451245
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
12461246
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
1247-
- react-native-get-random-values (from `../..`)
12481247
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
12491248
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
12501249
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
@@ -1268,6 +1267,7 @@ DEPENDENCIES:
12681267
- React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`)
12691268
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
12701269
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
1270+
- RNSodium (from `../..`)
12711271
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
12721272

12731273
SPEC REPOS:
@@ -1338,8 +1338,6 @@ EXTERNAL SOURCES:
13381338
:path: "../node_modules/react-native/ReactCommon/logger"
13391339
React-Mapbuffer:
13401340
:path: "../node_modules/react-native/ReactCommon"
1341-
react-native-get-random-values:
1342-
:path: "../.."
13431341
React-nativeconfig:
13441342
:path: "../node_modules/react-native/ReactCommon"
13451343
React-NativeModulesApple:
@@ -1386,6 +1384,8 @@ EXTERNAL SOURCES:
13861384
:path: "../node_modules/react-native/ReactCommon/react/utils"
13871385
ReactCommon:
13881386
:path: "../node_modules/react-native/ReactCommon"
1387+
RNSodium:
1388+
:path: "../.."
13891389
Yoga:
13901390
:path: "../node_modules/react-native/ReactCommon/yoga"
13911391

@@ -1421,7 +1421,6 @@ SPEC CHECKSUMS:
14211421
React-jsitracing: 0fa7f78d8fdda794667cb2e6f19c874c1cf31d7e
14221422
React-logger: 29fa3e048f5f67fe396bc08af7606426d9bd7b5d
14231423
React-Mapbuffer: bf56147c9775491e53122a94c423ac201417e326
1424-
react-native-get-random-values: 54acc352b99d2dbeb3c05ec81586c4d0805b6b2c
14251424
React-nativeconfig: 9f223cd321823afdecf59ed00861ab2d69ee0fc1
14261425
React-NativeModulesApple: ff7efaff7098639db5631236cfd91d60abff04c0
14271426
React-perflogger: 32ed45d9cee02cf6639acae34251590dccd30994
@@ -1445,9 +1444,10 @@ SPEC CHECKSUMS:
14451444
React-runtimescheduler: 56b642bf605ba5afa500d35790928fc1d51565ad
14461445
React-utils: 4476b7fcbbd95cfd002f3e778616155241d86e31
14471446
ReactCommon: ecad995f26e0d1e24061f60f4e5d74782f003f12
1447+
RNSodium: c24e4858c15ac237385164906944b91fd71e595e
14481448
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
14491449
Yoga: 2f71ecf38d934aecb366e686278102a51679c308
14501450

14511451
PODFILE CHECKSUM: 2b476e664f3e7c6b87013748402bfab7c78276e5
14521452

1453-
COCOAPODS: 1.14.3
1453+
COCOAPODS: 1.15.2

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"dependencies": {
1313
"react": "18.2.0",
14-
"react-native": "0.74.2"
14+
"react-native": "0.74.2",
15+
"react-native-nitro-modules": "^0.9.2"
1516
},
1617
"devDependencies": {
1718
"@babel/core": "^7.20.0",
@@ -20,8 +21,7 @@
2021
"@react-native/babel-preset": "0.74.84",
2122
"@react-native/metro-config": "0.74.84",
2223
"@react-native/typescript-config": "0.74.84",
23-
"babel-plugin-module-resolver": "^5.0.0",
24-
"react-native-nitro-modules": "^0.9.2"
24+
"babel-plugin-module-resolver": "^5.0.0"
2525
},
2626
"engines": {
2727
"node": ">=18"

package.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,16 @@
6767
"react": "18.2.0",
6868
"react-native": "0.74.2",
6969
"react-native-builder-bob": "^0.20.0",
70-
"release-it": "^15.0.0",
7170
"turbo": "^1.10.7",
7271
"typescript": "^5.2.2"
7372
},
74-
"dependencies": {
75-
"react-native-nitro-modules": "^0.9.2"
76-
},
7773
"resolutions": {
7874
"@types/react": "^18.2.44"
7975
},
8076
"peerDependencies": {
8177
"react": "*",
82-
"react-native": "*"
78+
"react-native": "*",
79+
"react-native-nitro-modules": "*"
8380
},
8481
"workspaces": [
8582
"example"
@@ -92,23 +89,6 @@
9289
"<rootDir>/lib/"
9390
]
9491
},
95-
"release-it": {
96-
"git": {
97-
"commitMessage": "chore: release ${version}",
98-
"tagName": "v${version}"
99-
},
100-
"npm": {
101-
"publish": true
102-
},
103-
"github": {
104-
"release": true
105-
},
106-
"plugins": {
107-
"@release-it/conventional-changelog": {
108-
"preset": "angular"
109-
}
110-
}
111-
},
11292
"eslintIgnore": [
11393
"node_modules/",
11494
"lib/",

0 commit comments

Comments
 (0)