about summary refs log tree commit diff
path: root/patches
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-08-15 12:03:19 -0700
committerGitHub <noreply@github.com>2024-08-15 12:03:19 -0700
commitf3b57dd45600c0c8197ce45a0f927b57e0799760 (patch)
treee661dc97fb375fcb14777506f5c38abcc866300f /patches
parent11061b628ef5b5805c6435155ca2a571001e4643 (diff)
downloadvoidsky-f3b57dd45600c0c8197ce45a0f927b57e0799760.tar.zst
Hack patch for testing OTA update crash behavior (#4942)
Diffstat (limited to 'patches')
-rw-r--r--patches/expo-modules-core+1.12.11.patch19
1 files changed, 16 insertions, 3 deletions
diff --git a/patches/expo-modules-core+1.12.11.patch b/patches/expo-modules-core+1.12.11.patch
index a4ee027c8..bc759f21f 100644
--- a/patches/expo-modules-core+1.12.11.patch
+++ b/patches/expo-modules-core+1.12.11.patch
@@ -4,16 +4,16 @@ index bb74e80..0aa0202 100644
 +++ b/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/NativeModulesProxy.java
 @@ -90,8 +90,8 @@ public class NativeModulesProxy extends ReactContextBaseJavaModule {
      mModuleRegistry.ensureIsInitialized();
-
+ 
      KotlinInteropModuleRegistry kotlinModuleRegistry = getKotlinInteropModuleRegistry();
 -    kotlinModuleRegistry.emitOnCreate();
      kotlinModuleRegistry.installJSIInterop();
 +    kotlinModuleRegistry.emitOnCreate();
-
+ 
      Map<String, Object> constants = new HashMap<>(3);
      constants.put(MODULES_CONSTANTS_KEY, new HashMap<>());
 diff --git a/node_modules/expo-modules-core/build/uuid/uuid.js b/node_modules/expo-modules-core/build/uuid/uuid.js
-index 109d3fe..c7fce9e 100644
+index 109d3fe..c421931 100644
 --- a/node_modules/expo-modules-core/build/uuid/uuid.js
 +++ b/node_modules/expo-modules-core/build/uuid/uuid.js
 @@ -1,5 +1,7 @@
@@ -24,3 +24,16 @@ index 109d3fe..c7fce9e 100644
  const nativeUuidv4 = globalThis?.expo?.uuidv4;
  const nativeUuidv5 = globalThis?.expo?.uuidv5;
  function uuidv4() {
+diff --git a/node_modules/expo-modules-core/ios/Core/SharedObjects/SharedObjectRegistry.swift b/node_modules/expo-modules-core/ios/Core/SharedObjects/SharedObjectRegistry.swift
+index ee2268a..4851b67 100644
+--- a/node_modules/expo-modules-core/ios/Core/SharedObjects/SharedObjectRegistry.swift
++++ b/node_modules/expo-modules-core/ios/Core/SharedObjects/SharedObjectRegistry.swift
+@@ -173,7 +173,7 @@ public final class SharedObjectRegistry {
+   }
+ 
+   internal func clear() {
+-    Self.lockQueue.async {
++    DispatchQueue.main.sync {
+       self.pairs.removeAll()
+     }
+   }