Skip to content

Commit e94bbba

Browse files
committed
Added patch that make works ios simulator and force pbkdf2 resolution to safe version
1 parent 438d3b2 commit e94bbba

File tree

3 files changed

+212
-24
lines changed

3 files changed

+212
-24
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "GNU",
66
"scripts": {
77
"prepare": "husky install",
8+
"postinstall": "patch-package",
89
"start": "expo start --dev-client",
910
"android": "expo run:android",
1011
"ios": "expo run:ios",
@@ -166,8 +167,10 @@
166167
"jest": "^29.3.1",
167168
"jest-expo": "~50.0.4",
168169
"metro-react-native-babel-transformer": "^0.77.0",
170+
"patch-package": "^8.0.1",
169171
"path": "^0.12.7",
170172
"postcss": "^8.2.15",
173+
"postinstall-postinstall": "^2.1.0",
171174
"prettier": "^2.3.2",
172175
"react-native-svg-transformer": "^0.14.3",
173176
"react-test-renderer": "^18.2.0",
@@ -179,5 +182,8 @@
179182
},
180183
"engines": {
181184
"node": ">=16.16.0"
185+
},
186+
"resolutions": {
187+
"pbkdf2": "^3.1.3"
182188
}
183189
}

patches/expo-device+5.9.4.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/node_modules/expo-device/ios/UIDevice.swift b/node_modules/expo-device/ios/UIDevice.swift
2+
index 7d58ee8..9c2969e 100644
3+
--- a/node_modules/expo-device/ios/UIDevice.swift
4+
+++ b/node_modules/expo-device/ios/UIDevice.swift
5+
@@ -184,9 +184,13 @@ public extension UIDevice {
6+
// swiftlint:enable closure_body_length
7+
8+
// Credit: https://github.com/developerinsider/isJailBroken/blob/master/IsJailBroken/Extension/UIDevice%2BJailBroken.swift
9+
- var isSimulator: Bool {
10+
- return TARGET_OS_SIMULATOR != 0
11+
- }
12+
+ var isSimulator: Bool {
13+
+ #if targetEnvironment(simulator)
14+
+ return true
15+
+ #else
16+
+ return false
17+
+ #endif
18+
+ }
19+
20+
var isJailbroken: Bool {
21+
if UIDevice.current.isSimulator {

0 commit comments

Comments
 (0)