about summary refs log tree commit diff
path: root/patches
diff options
context:
space:
mode:
authorSnow Pettersen <aickck@gmail.com>2024-12-11 20:28:15 -0800
committerGitHub <noreply@github.com>2024-12-12 04:28:15 +0000
commit20ac42a5a324ad553324d15ad868a1fea1868641 (patch)
tree04edf4888d2f32d3b1da073b1aa1845292dc3990 /patches
parentc8745a9ab0a99ac3cf484e00760e72d1e9f28dfc (diff)
downloadvoidsky-20ac42a5a324ad553324d15ad868a1fea1868641.tar.zst
configure the bitdrift Capture SDK (#6979)
* configure bitdrift Capture SDK

* remove console log

* use the new url

* add patch to fix devtool interaction

* update patches

* fix patch

* add BITDRIFT_API_KEY to .env.example
Diffstat (limited to 'patches')
-rw-r--r--patches/expo-modules-core+2.1.1.md3
-rw-r--r--patches/expo-modules-core+2.1.1.patch15
2 files changed, 18 insertions, 0 deletions
diff --git a/patches/expo-modules-core+2.1.1.md b/patches/expo-modules-core+2.1.1.md
new file mode 100644
index 000000000..a71324c19
--- /dev/null
+++ b/patches/expo-modules-core+2.1.1.md
@@ -0,0 +1,3 @@
+## expo-modules-core Patch
+
+This patch fixes an issue where bitdrift's API stream gets blocked by the Expo interceptor used to power the devtools
diff --git a/patches/expo-modules-core+2.1.1.patch b/patches/expo-modules-core+2.1.1.patch
new file mode 100644
index 000000000..f3d9bfd14
--- /dev/null
+++ b/patches/expo-modules-core+2.1.1.patch
@@ -0,0 +1,15 @@
+diff --git a/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/ExpoNetworkInspectOkHttpInterceptors.kt b/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/ExpoNetworkInspectOkHttpInterceptors.kt
+index 47c4d15..afe138d 100644
+--- a/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/ExpoNetworkInspectOkHttpInterceptors.kt
++++ b/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/ExpoNetworkInspectOkHttpInterceptors.kt
+@@ -125,6 +125,10 @@ internal fun peekResponseBody(
+ }
+ 
+ internal fun shouldParseBody(response: Response): Boolean {
++  if (response.request.url.encodedPath == "/bitdrift_public.protobuf.client.v1.ApiService/Mux") {
++    return false
++  }
++
+   // Check for Content-Type
+   val skipContentTypes = listOf(
+     "text/event-stream", // Server Sent Events